Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { Name string Model string Instructions interface{} // Can be either string or a function returning string Functions []AgentFunction // openai.ChatCompletionToolChoiceOptionBehaviorNone // openai.ChatCompletionToolChoiceOptionBehaviorAuto // openai.ChatCompletionToolChoiceOptionBehaviorRequired ToolChoice openai.ChatCompletionToolChoiceOptionUnionParam ParallelToolCalls bool }
Agent represents an agent with various attributes, including name, model, instructions, and functions.
type AgentFunction ¶
type AgentFunction any
AgentFunction is a type alias for functions that return either a string, an Agent, or a map.
type ContextVariables ¶
func (ContextVariables) Set ¶
func (a ContextVariables) Set(key string, val any)
Click to show internal directories.
Click to hide internal directories.