Documentation
¶
Index ¶
- Constants
- func BuildRun(params ...types.Parameter) (*types.Run, error)
- type Agent
- func (a *Agent) ComputeSystemMessage() (string, error)
- func (a *Agent) Description() (string, error)
- func (a *Agent) Name() (string, error)
- func (a *Agent) Run(ctx context.Context, run *types.Run) error
- func (a *Agent) RunStreaming(ctx context.Context, run *types.Run, bufferSize int) (streaming.ResponseChannel, error)
- func (a *Agent) RunStreamingWithParams(ctx context.Context, bufferSize int, params ...types.Parameter) (*types.Run, streaming.ResponseChannel, error)
- func (a *Agent) RunWithParams(ctx context.Context, params ...types.Parameter) (*types.Run, error)
- func (a *Agent) Tools() ([]tools.Tool, error)
- type AgentImpl
- type AgentOption
- func WithChatOptions(chatOptions types.Options) AgentOption
- func WithDescription(description string) AgentOption
- func WithExpectedOutput(expectedOutput string) AgentOption
- func WithID(id uuid.UUID) AgentOption
- func WithInstructions(instructions string) AgentOption
- func WithMCP(ctx context.Context, session *mcp.ClientSession) AgentOption
- func WithName(name string) AgentOption
- func WithSubordinate(subordinate AgentImpl) AgentOption
- func WithTool(tool tools.Tool) AgentOption
- type AgentOptionFunc
- type ErrBuilderParams
- type ErrModelResponse
Constants ¶
View Source
const DELEGATE_TASK_TOOL_DESC = "Delegates the task to one or more subordinates"
View Source
const DELEGATE_TASK_TOOL_NAME = "delegate_task"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) ComputeSystemMessage ¶
Build the system message for the Agent
func (*Agent) Description ¶
func (*Agent) RunStreaming ¶
func (*Agent) RunStreamingWithParams ¶
func (*Agent) RunWithParams ¶
Convenience method to run an agent without [run.Parameters] declaration
type AgentOption ¶
func WithChatOptions ¶
func WithChatOptions(chatOptions types.Options) AgentOption
func WithDescription ¶
func WithDescription(description string) AgentOption
func WithExpectedOutput ¶
func WithExpectedOutput(expectedOutput string) AgentOption
func WithID ¶
func WithID(id uuid.UUID) AgentOption
func WithInstructions ¶
func WithInstructions(instructions string) AgentOption
func WithMCP ¶
func WithMCP(ctx context.Context, session *mcp.ClientSession) AgentOption
func WithName ¶
func WithName(name string) AgentOption
func WithSubordinate ¶
func WithSubordinate(subordinate AgentImpl) AgentOption
func WithTool ¶
func WithTool(tool tools.Tool) AgentOption
type AgentOptionFunc ¶
func (AgentOptionFunc) Apply ¶
func (s AgentOptionFunc) Apply(r *Agent) error
type ErrBuilderParams ¶
func (ErrBuilderParams) Error ¶
func (e ErrBuilderParams) Error() string
type ErrModelResponse ¶
type ErrModelResponse struct {
Msg string
}
func (ErrModelResponse) Error ¶
func (e ErrModelResponse) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.