Skip to main content

Module agent_composition

Module agent_composition 

Source
Expand description

Agent composition builtins for the DSL

Provides async builtins for spawning agents, sending messages, and executing concurrent patterns: spawn_agent, ask, send_to, parallel, and race.

Functionsยง

builtin_ask
Execute the ask builtin: send a message to a named agent and wait for response.
builtin_parallel
Execute the parallel builtin: run multiple agent calls concurrently.
builtin_race
Execute the race builtin: run multiple agent calls, return first to complete.
builtin_send_to
Execute the send_to builtin: fire-and-forget message to a named agent.
builtin_spawn_agent
Execute the spawn_agent builtin: register a new named agent.