Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrepareResult ¶ added in v0.3.0
type PrepareResult struct {
SessionMeta schema.SessionMeta // Merged GeneratorMeta + agent name + labels
Text string // Rendered user message from template
Tools []string // Tool names the agent is allowed to use
}
PrepareResult holds the output of Prepare — everything needed to create a session and send the first message.
func Prepare ¶ added in v0.3.0
func Prepare(agent *schema.Agent, parentID string, defaults schema.GeneratorMeta, input json.RawMessage) (*PrepareResult, error)
Prepare validates the input against the agent's input schema, executes the agent's Go template to produce the user message, and merges the agent's GeneratorMeta with the provided defaults (agent fields win). If parentID is non-empty, it is stored in the session labels. The agent name and version are stored in session labels for traceability.
Click to show internal directories.
Click to hide internal directories.