agent

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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