# `ADK.A2A.RemoteAgentTool`
[🔗](https://github.com/zeroasterisk/adk-elixir/blob/main/lib/adk/a2a/remote_agent_tool.ex#L2)

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"
    )

# `t`

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

# `new`

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

Create a new remote agent tool.

# `run`

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

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
