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.