Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/core / / AgentModelFellbackEvent

Interface: AgentModelFellbackEvent

Defined in: packages/core/src/types/agent-event.ts:373

Emitted exactly once per agent-level model-fallback transition. Identifies the failed primary, the next model in Agent.fallbackModels, the eligible reason taxonomy, the 1-based step number and the 1-based attempt index within the step.

The event fires BEFORE the new model's stream starts so that observers see the transition before any of the new model's subsequent events flow.

Stable

Properties

PropertyModifierTypeDefined in
agentIdreadonlystringpackages/core/src/types/agent-event.ts:377
attemptreadonlynumberpackages/core/src/types/agent-event.ts:382
fromreadonlystringpackages/core/src/types/agent-event.ts:378
reasonreadonly"rate-limit" | "capacity" | "context-length" | "transient"packages/core/src/types/agent-event.ts:380
runIdreadonlystringpackages/core/src/types/agent-event.ts:375
sessionIdreadonlystringpackages/core/src/types/agent-event.ts:376
stepNumberreadonlynumberpackages/core/src/types/agent-event.ts:381
toreadonlystringpackages/core/src/types/agent-event.ts:379
typereadonly"agent.model.fellback"packages/core/src/types/agent-event.ts:374