Documentation
¶
Index ¶
- func BuildRunResponse(params ...chat.Parameter) (*chat.RunResponse, 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, runResponse *chat.RunResponse) error
- func (a *Agent) RunStreaming(ctx context.Context, runResponse *chat.RunResponse, bufferSize int) (provider.ResponseChannel, error)
- func (a *Agent) RunStreamingWithParams(ctx context.Context, bufferSize int, params ...chat.Parameter) (*chat.RunResponse, provider.ResponseChannel, error)
- func (a *Agent) RunWithParams(ctx context.Context, params ...chat.Parameter) (*chat.RunResponse, error)
- func (a *Agent) Skills() ([]tools.SkillCard, error)
- type AgentImpl
- type AgentOption
- func WithChatOptions(chatOptions chat.Options) AgentOption
- func WithDescription(description string) AgentOption
- func WithExpectedOutput(expectedOutput string) AgentOption
- func WithGoal(goal 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 WithRole(role string) AgentOption
- func WithSubordinate(subordinate AgentImpl) AgentOption
- func WithTool(tool tools.Tool) AgentOption
- type AgentOptionFunc
- type ErrBuilderParams
- type ErrModelResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRunResponse ¶
func BuildRunResponse(params ...chat.Parameter) (*chat.RunResponse, error)
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 (a *Agent) RunStreaming(ctx context.Context, runResponse *chat.RunResponse, bufferSize int) (provider.ResponseChannel, error)
func (*Agent) RunStreamingWithParams ¶
func (*Agent) RunWithParams ¶
func (a *Agent) RunWithParams(ctx context.Context, params ...chat.Parameter) (*chat.RunResponse, error)
Convenience method to run an agent without [run.Parameters] declaration
type AgentOption ¶
func WithChatOptions ¶
func WithChatOptions(chatOptions chat.Options) AgentOption
func WithDescription ¶
func WithDescription(description string) AgentOption
func WithExpectedOutput ¶
func WithExpectedOutput(expectedOutput string) AgentOption
func WithGoal ¶
func WithGoal(goal 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 WithRole ¶
func WithRole(role 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.