ADK.A2A.RemoteAgentTool (ADK v0.0.1-alpha.1)

Copy Markdown View Source

Wraps a remote A2A agent as an ADK tool.

When called, sends a task to the remote agent and returns the result text.

Examples

tool = ADK.A2A.RemoteAgentTool.new(
  name: "researcher",
  url: "http://researcher:4000/a2a",
  description: "Research any topic"
)

Summary

Functions

Create a new remote agent tool.

Execute the remote agent tool — sends a task and returns the result.

Types

t()

@type t() :: %ADK.A2A.RemoteAgentTool{
  description: String.t(),
  name: String.t(),
  parameters: map(),
  url: String.t()
}

Functions

new(opts)

@spec new(keyword()) :: t()

Create a new remote agent tool.

run(tool, ctx, args)

@spec run(t(), ADK.ToolContext.t(), map()) :: ADK.Tool.result()

Execute the remote agent tool — sends a task and returns the result.