adk_agent_tool (erlang_adk v0.7.0)

View Source

adk_agent_tool - Wraps an agent as a tool.

This module allows exposing one agent as a tool to another agent, enabling agent-to-agent delegation in multi-agent systems.

Summary

Functions

Execute the agent as a tool.

Define the schema for the agent tool.

Functions

execute(AgentRef, Args, Opts)

-spec execute(AgentRef :: pid() | atom() | binary() | string(), Args :: map(), Opts :: map()) ->
                 {ok, term()} | {error, term()}.

Execute the agent as a tool.

schema(AgentConfig)

-spec schema(AgentConfig :: map()) -> map().

Define the schema for the agent tool.