WithInstanceId and task queue suffix. Required when multiple agents share a Temporal namespace without colliding on workflow identity.
Source: examples/multiple_agents/
What it demonstrates
WithInstanceIdfor distinct Temporal workflow IDs- Per-agent task queue suffixes from the shared base queue
- Concurrent
Runcalls on separate agent instances
Run
Fromexamples/ with Temporal:
Key code
Expected output
WithInstanceId suffixes the Temporal workflow key — no collision on shared namespace.
Learn more
Multiple Agents
Instance IDs and task queues
Sub-agents
Delegation vs separate root agents