Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / AgentModelFellbackEvent
Interface: AgentModelFellbackEvent
Defined in: packages/core/src/types/agent-event.ts:304
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
| Property | Modifier | Type | Defined in |
|---|---|---|---|
agentId | readonly | string | packages/core/src/types/agent-event.ts:308 |
attempt | readonly | number | packages/core/src/types/agent-event.ts:313 |
from | readonly | string | packages/core/src/types/agent-event.ts:309 |
reason | readonly | "rate-limit" | "capacity" | "context-length" | "transient" | packages/core/src/types/agent-event.ts:311 |
runId | readonly | string | packages/core/src/types/agent-event.ts:306 |
sessionId | readonly | string | packages/core/src/types/agent-event.ts:307 |
stepNumber | readonly | number | packages/core/src/types/agent-event.ts:312 |
to | readonly | string | packages/core/src/types/agent-event.ts:310 |
type | readonly | "agent.model.fellback" | packages/core/src/types/agent-event.ts:305 |