The remote service in this repository is
examples/langgraph-a2a-agent. LangGraph stays in that process. The device speaks A2A 1.0 to it. The catalog in that example is fictional and marks every recommendation as simulated.
Start the remote agent
From a checkout of this repository, on the computer that will receive the delegation:GET http://127.0.0.1:8791/.well-known/agent-card.json. Use 127.0.0.1 when the runtime and the server are on the same computer. A phone must use the computer’s LAN address, such as http://192.168.1.20:8791. localhost on the phone is the phone.
No model credential is required for the deterministic server. Setting LARKX_LANGGRAPH_MODEL is optional and is not part of this quickstart.
Register it from the device
The scripted model below is only so this page has a complete, deterministic client. It is not the remote agent’s model. ReplacescriptedModel with Cactus when the device should choose the delegation itself. The model asks for the remote agent by name, then writes the local conclusion after the delegation completes.
Expected result
result.message is "Saved the supplier recommendation." when the scripted model runs both responses and the remote task completes. delegations[0].transport is "a2a". delegations[0].state is "COMPLETED" after the server finishes the task.
If the server asks for a model number, the local run waits. run.provideInput("Model P-104") answers that question on the existing task. Do not put a password or token there. Authentication stays in the transport headers function.
The deterministic server’s catalog text includes a simulated supplier. That text belongs to the LangGraph process. The local result above is the scripted final message.
Recovery
A known remote task id is polled after restart. It is not submitted again. A send whose acknowledgement was lost stays blocked for A2A, because A2A does not enable dedupe or lookup.resume. The server process has to still be running if the task was stored only in its memory. This example does not survive a restart of the LangGraph process. Automated tests cover a kill of the Node client during the remote task. That sequence has not been run on a phone.
HTTP delegation uses the same remoteAgents list with transport.type: "http". See HTTP.