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 worker separation
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
Worker Separation
Production split-process guide
Durable Agent
Advanced durability scenarios
Agent Chat
Full app using same pattern