Documentation
¶
Index ¶
- func WithAnthropic(key string, opts ...client.ClientOpt) llm.Opt
- func WithGemini(key string, opts ...client.ClientOpt) llm.Opt
- func WithMistral(key string, opts ...client.ClientOpt) llm.Opt
- func WithOllama(endpoint string, opts ...client.ClientOpt) llm.Opt
- func WithOpenAI(key string, opts ...client.ClientOpt) llm.Opt
- type Agent
- func (a *Agent) AgentNames() []string
- func (a *Agent) AgentsWithName(name ...string) []llm.Agent
- func (a *Agent) GetModel(ctx context.Context, name string, agentnames ...string) (llm.Model, error)
- func (a *Agent) ListModels(ctx context.Context, names ...string) ([]llm.Model, error)
- func (a *Agent) Model(ctx context.Context, name string) llm.Model
- func (a *Agent) Models(ctx context.Context) ([]llm.Model, error)
- func (a *Agent) Name() string
- func (a *Agent) ToolNames() []string
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
func (*Agent) AgentsWithName ¶
Return a list of agents
func (*Agent) GetModel ¶
Return a model by name. If no agents are specified, then all agents are considered. If multiple agents are specified, then the first model found is returned.
func (*Agent) ListModels ¶
Return the models from list of agents
Click to show internal directories.
Click to hide internal directories.