Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgExtractor ¶
ArgExtractor extracts the input string from parsed tool arguments. The default extractor reads the "input" field; custom extractors can handle richer parameter schemas.
type Option ¶
type Option func(*config)
Option is a functional option for configuring agent-as-tool registration.
func WithArgExtractor ¶
func WithArgExtractor(fn ArgExtractor) Option
WithArgExtractor overrides how raw JSON arguments are converted to the input string sent to the agent. This is useful when the parameter schema contains fields beyond the default "input" property.
func WithDescription ¶
WithDescription overrides the tool description (defaults to agent.Description()).
func WithParameters ¶
WithParameters overrides the JSON Schema parameters. When using a custom schema, also provide WithArgExtractor to match the new schema, otherwise the default extractor (which reads "input") is used.