Skip to main content

Module agent_node

Module agent_node 

Source
Expand description

AgentNode — delegates execution to a local or remote agent.

§Routing

agent_id_or_urlRouting
Starts with http:// or https://Remote — calls the URL via A2A JSON-RPC 2.0
Any other stringLocal — spawns a persisted child through the host’s thread service

§State keys read

  • _agent_input — the message text to send (falls back to the last user message in state.messages, or an empty string).

§State keys written

  • _agent_result_{node_id} — typed persisted child outcome.
  • _agent_thread_id_{node_id} — persisted child identity.
  • _agent_output_{node_id} — text returned by either a local or remote agent.

Structs§

AgentNode
A graph node that delegates to another agent through the run’s thread service (local IDs) or A2A (remote URLs).