main
md 22 lines 909 Bytes
Rendered Raw
1 ### a2a_chat
2 chat with a remote FastA2A-compatible agent; remote context is preserved automatically per `agent_url`
3 args: `agent_url`, `message`, optional `attachments[]`, optional `reset`
4 - `agent_url`: base url, accepts `host:port`, `http://host:port`, or a full `/a2a` url
5 - `message`: text to send to the remote agent
6 - `attachments[]`: optional absolute uris or paths to send with the message
7 - `reset`: json boolean; use `true` to start a fresh conversation with the same `agent_url`
8 do not send `context_id`; the tool handles that internally
9 example:
10 ~~~json
11 {
12 "thoughts": ["I need to ask a remote agent and keep the session for follow-up."],
13 "headline": "Contacting remote FastA2A agent",
14 "tool_name": "a2a_chat",
15 "tool_args": {
16 "agent_url": "http://weather.example.com:8000/a2a",
17 "message": "What's the forecast for Berlin today?",
18 "attachments": [],
19 "reset": false
20 }
21 }
22 ~~~