What problem does it solve?
When building distributed agent systems in Golem with Rust, awaiting every agent-to-agent call can cause deadlocks (cyclic RPC calls) or unnecessary blocking. This Skill shows how to trigger agent invocations that return immediately while the target agent processes the work asynchronously.
Core Features & Use Cases
- Trigger Variants: Every generated
<AgentName>Client method has a trigger_ counterpart that enqueues the call and returns immediately.
- Deadlock Prevention: Break RPC cycles when agent A calls agent B and B needs to call back into A.
- Fan-Out and Background Work: Trigger work on many agents in parallel or enqueue background processing without blocking the caller.
- CLI Equivalent: Use
golem agent invoke --enqueue to fire-and-forget from the command line.
- Use Case: A data pipeline agent fans out batch processing jobs to dozens of worker agents using
trigger_process_batch, then continues its own work without waiting for each worker to finish.
Quick Start
Show me how to make a fire-and-forget call to another Golem agent in Rust using the trigger_ method variant.