Documentation
¶
Overview ¶
Package agenttool wraps an Agent as a Toolkit, allowing one agent to be invoked as a tool by another agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentToolkit ¶
type AgentToolkit struct {
*toolkit.BaseToolkit
// contains filtered or unexported fields
}
AgentToolkit wraps an Agent as a single-function toolkit. The registered function is named "ask_<agent_name>" and accepts an "input" string parameter. When invoked, it spawns the wrapped agent using agent.Spawn and returns its output content.
Click to show internal directories.
Click to hide internal directories.