createFallbackAgent
Purpose and behavior
Section titled “Purpose and behavior”Order at least two agents into a frozen FallbackAgent that dispatch runs in one sandbox and workspace, without reset. A candidate hands over only on a quota or outage fault listed in on, and the next one restarts from the original brief; every other failure is rethrown. Fewer than two candidates, a nested fallback agent or an invalid on list throws code configuration.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”agentsRequiredreadonly [Agent, Agent, ...Agent[]]Ordered candidates, at least two, each composed with createAgent() or createReplayAgent(); the first is tried first.optionsRequiredFallbackAgentOptionsFallback policy: the on list of failure categories.options.onRequiredreadonly FallbackTrigger[]Failure categories that move to the next candidate: quota, unavailable or both. An empty, repeated or unknown entry throws code configuration.