agent

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeepAgent

func CreateDeepAgent(model llms.Model, opts ...Option) (*graph.StateRunnable, error)

CreateDeepAgent creates a new deep agent

Types

type DeepAgentOptions

type DeepAgentOptions struct {
	RootDir         string
	SystemPrompt    string
	SubAgentHandler tools.SubAgentHandler
}

DeepAgentOptions contains options for creating a deep agent

type Option

type Option func(*DeepAgentOptions)

Option is a function that configures DeepAgentOptions

func WithRootDir

func WithRootDir(rootDir string) Option

WithRootDir sets the root directory for filesystem tools

func WithSubAgentHandler

func WithSubAgentHandler(handler tools.SubAgentHandler) Option

WithSubAgentHandler sets the handler for subagent tasks

func WithSystemPrompt

func WithSystemPrompt(prompt string) Option

WithSystemPrompt sets the system prompt

Jump to

Keyboard shortcuts

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