Documentation
¶
Index ¶
- type NewAgentConfig
- type NewAgentConfigFunc
- func WithLogger(l *logr.Logger) NewAgentConfigFunc
- func WithMaxMemoryWindowContext(size int) NewAgentConfigFunc
- func WithMaxSteps(steps int) NewAgentConfigFunc
- func WithMemory(m core.MemoryBackend) NewAgentConfigFunc
- func WithProvider(provider core.Provider) NewAgentConfigFunc
- func WithSystemPrompt(prompt string) NewAgentConfigFunc
- func WithTools(tool ...*core.Tool) NewAgentConfigFunc
- func WithVectorStore(vecStore core.VectorStorer) NewAgentConfigFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewAgentConfig ¶
type NewAgentConfig struct {
// The core.Provider the agent will use
Provider core.Provider
// Maximum number of steps before forcing stop
MaxSteps int
// Tools the agent has access to execute with
Tools []*core.Tool
// VecStore is the vector store configured for the agent
VecStore core.VectorStorer
// System prompt
SystemPrompt string
// The provided logr.Logger
Logger *logr.Logger
// The configured memory backend that stores messages across agent runs.
Memory core.MemoryBackend
// Maximum number of messages restored from memory
// default 10
MaxMemoryWindowContext int
}
NewAgentConfig holds configuration for agent initialization
type NewAgentConfigFunc ¶
type NewAgentConfigFunc func(*NewAgentConfig)
RunOptionFunc is a function type that modifies RunOptions
func WithLogger ¶
func WithLogger(l *logr.Logger) NewAgentConfigFunc
func WithMaxMemoryWindowContext ¶
func WithMaxMemoryWindowContext(size int) NewAgentConfigFunc
func WithMaxSteps ¶
func WithMaxSteps(steps int) NewAgentConfigFunc
func WithMemory ¶
func WithMemory(m core.MemoryBackend) NewAgentConfigFunc
func WithProvider ¶
func WithProvider(provider core.Provider) NewAgentConfigFunc
func WithSystemPrompt ¶
func WithSystemPrompt(prompt string) NewAgentConfigFunc
func WithTools ¶
func WithTools(tool ...*core.Tool) NewAgentConfigFunc
func WithVectorStore ¶
func WithVectorStore(vecStore core.VectorStorer) NewAgentConfigFunc
Click to show internal directories.
Click to hide internal directories.