GenAgentEnsemble.Strategies.Solo (gen_agent_ensemble v0.2.0)

Copy Markdown View Source

Trivial single-agent strategy. Every tell/ask dispatches the prompt straight to the one sub-agent; every response closes the most recent pending token.

Options

  • :agent -- required. {name, module, opts} spec for the one sub-agent.

State

%{agent: name, pending_by_agent: %{agent_name => token}}

Because Solo has exactly one agent, there is at most one in-flight token per agent at any time. If a second tell/ask arrives while one is in flight, the new prompt is dispatched and queues up inside GenAgent's own mailbox -- the tokens are still tracked per-agent in FIFO order via a small queue.