bootstrap

package
v0.0.0-...-3d45783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL