Documentation
¶
Index ¶
- type Agent
- type Option
- func WithGuardrails(guardrails interfaces.Guardrails) Option
- func WithLLM(llm interfaces.LLM) Option
- func WithMemory(memory interfaces.Memory) Option
- func WithOrgID(orgID string) Option
- func WithSystemPrompt(prompt string) Option
- func WithTools(tools ...interfaces.Tool) Option
- func WithTracer(tracer interfaces.Tracer) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent represents an AI agent
type Option ¶
type Option func(*Agent)
Option represents an option for configuring an agent
func WithGuardrails ¶
func WithGuardrails(guardrails interfaces.Guardrails) Option
WithGuardrails sets the guardrails for the agent
func WithMemory ¶
func WithMemory(memory interfaces.Memory) Option
WithMemory sets the memory for the agent
func WithSystemPrompt ¶
WithSystemPrompt sets the system prompt for the agent
func WithTools ¶
func WithTools(tools ...interfaces.Tool) Option
WithTools sets the tools for the agent
func WithTracer ¶
func WithTracer(tracer interfaces.Tracer) Option
WithTracer sets the tracer for the agent
Click to show internal directories.
Click to hide internal directories.