What problem does it solve?
Awaited agent-to-agent calls in Golem can block execution or cause deadlocks when agents call each other cyclically. This Skill shows how to enqueue agent method invocations that return immediately, letting the target agent process work asynchronously.
Core Features & Use Cases
- Fire-and-Forget Invocation: Uses the
.trigger() method on per-method client wrappers to enqueue calls without waiting for results.
- Deadlock Prevention: Breaks 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 tasks without blocking the caller.
- CLI Equivalent: Supports
golem agent invoke --trigger for command-line fire-and-forget calls.
- Use Case: A data pipeline agent needs to notify a monitoring agent when a batch finishes. Instead of awaiting the notification (which risks a deadlock if the monitor calls back), it uses
.trigger() to enqueue the notification and continue processing.
Quick Start
Show me how to make a fire-and-forget call to another agent from my Scala Golem agent using the trigger method.