Full agency configuration including the agents roster, optional
strategy, controls, hitl, and observability settings.
An AgencyInstance whose generate / stream / session methods
invoke the compiled strategy over the configured sub-agents; generate()
resolves to a PanelResult for a panel agency.
When the configuration is structurally invalid (e.g. no agents defined, emergent enabled without hierarchical strategy, HITL approvals configured without a handler, parallel/debate without a synthesis model).
For a panel whose roster names a seat 'chair'.
Creates a multi-agent agency: the same factory, for any strategy. See the overload above for what it validates and returns.
Full agency configuration.
An AgencyInstance whose generate() resolves to an AgencyResult.
When the configuration is structurally invalid.
For a panel whose roster names a seat 'chair'.
Creates a multi-agent agency that coordinates a named roster of sub-agents using the specified orchestration strategy.
The agency validates configuration immediately and throws an AgencyConfigError on any structural problem so issues surface at wiring time rather than the first call.
With a
modelPoolorstrategy: 'panel', every call is guarded, seated and masked: a per-call option that would move every seat off its seating is refused, the roster is seated from the pool, and no credential the call can send reaches a record, a thrown error or a callback.