Help us shape the future of Go! Take the 2026 Go Developer Survey

agent

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatModelWithTools added in v0.3.23

func ChatModelWithTools(model_ model.ChatModel, toolCallingModel model.ToolCallingChatModel,
	toolInfos []*schema.ToolInfo) (model.BaseChatModel, error)

func GetComposeOptions

func GetComposeOptions(opts ...AgentOption) []compose.Option

GetComposeOptions returns all compose options from the given agent options.

func GetImplSpecificOptions

func GetImplSpecificOptions[T any](base *T, opts ...AgentOption) *T

GetImplSpecificOptions returns the implementation-specific options from the given agent options.

Types

type AgentOption

type AgentOption struct {
	// contains filtered or unexported fields
}

AgentOption is the common option type for various agent and multi-agent implementations. For options intended to use with underlying graph or components, use WithComposeOptions to specify. For options intended to use with particular agent/multi-agent implementations, use WrapImplSpecificOptFn to specify.

func WithComposeOptions

func WithComposeOptions(opts ...compose.Option) AgentOption

WithComposeOptions returns an agent option that specifies compose options.

func WrapImplSpecificOptFn

func WrapImplSpecificOptFn[T any](optFn func(*T)) AgentOption

WrapImplSpecificOptFn returns an agent option that specifies a function to modify the implementation-specific options.

Directories

Path Synopsis
multiagent
host
Package host implements the host pattern for multi-agent system.
Package host implements the host pattern for multi-agent system.

Jump to

Keyboard shortcuts

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