Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressXML ¶
CompressXML removes unnecessary whitespace and formatting from XML to minimize tokens
func PruneSnapshot ¶
PruneSnapshot removes redundant information from the snapshot to reduce token usage. It removes: - The static datamodel definition (since runtime:datamodel has the actual values) - event:schema attributes (since they're in the function declarations) - All action/executable content elements while preserving state structure
Types ¶
type SendFunction ¶
type SendFunction struct {
Name string
Description string
Schema *jsonschema.Schema
}
SendFunction represents a send_* function declaration for LLMs
func BuildSendFunctions ¶
func BuildSendFunctions(transitions []xmldom.Element) []SendFunction
BuildSendFunctions builds function declarations for send events from available transitions. This is used by multiple LLM integrations (Gemini, Ollama, etc.) to create consistent function declarations for state machine event sending.