agent

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name              = opts.ForName[defaultAgent, string]("name")
	Model             = opts.ForName[defaultAgent, api.Model]("model")
	Instructions      = opts.ForName[defaultAgent, string]("instructions")
	ParallelToolCalls = opts.ForName[defaultAgent, bool]("parallelToolCalls")
)
View Source
var Global = registry.New[api.Agent]()

Functions

func Add

func Add(agent api.Agent)

func Del

func Del(name string)

func Get

func Get(name string) (api.Agent, bool)

func New

func New(options ...opts.Option[defaultAgent]) api.Agent

New creates a new DefaultAgent with the provided parameters.

func Tools

func Tools(tool tool.Definition, extraTools ...tool.Definition) opts.Option[defaultAgent]

Types

This section is empty.

Jump to

Keyboard shortcuts

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