Temporal runtime.
NewAgentWorker and DisableLocalWorker apply to the Temporal runtime. For Restate durability labs, see Durable Agent (Restate).DisableLocalWorker.
Source: examples/agent_with_worker/
What it demonstrates
NewAgentWorkerwith the same options asNewAgentDisableLocalWorkeron the client processStreamfrom the remote agent process- Foundation pattern for production distributed agents
Run
Fromexamples/ with Temporal running:
Key code
worker/main.go — polls Temporal, executes workflows and activities:Expected output
Terminal 1 (worker) shows Temporal polling logs atLOG_LEVEL=info.
Terminal 2 (agent) prints the streamed reply:
Learn more
Distributed Execution
Production split-process guide
Durable Agent (Temporal)
Advanced durability scenarios