Skip to main content

Interface: StepFinishedChunkPayload

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:419

Content of a STEP_FINISHED chunk.

Properties​

cacheDiagnostics?​

optional cacheDiagnostics: unknown

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:435


finishReason​

finishReason: string | null

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:424


hop​

hop: number

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:428

0 for the primary, n for the n-th fallback hop.


modelId​

modelId: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:426


providerId​

providerId: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:425


providerMessageId?​

optional providerMessageId: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:434

Provider message id of the step's final chunk.


responseModel?​

optional responseModel: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:431

Model id the provider reported serving the step.


serviceTier?​

optional serviceTier: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:432


stepIndex​

stepIndex: number

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:421

0-based index of the model step within the turn.


structuredOutput?​

optional structuredOutput: unknown

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:443

The step's schema answer when the turn asked for structured output and a completion-gateway hop on Anthropic returned it, as JSON text on the JSON output format or as a forced schema tool call, and it parsed; other hops return the JSON as the step's text. An answer that does not parse, and any answer the output limit stopped (max_tokens), whose JSON can parse though it was cut, is not set here: it stays the step's text, with the step's own finish reason.


text​

text: string

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:423

The step's text: its deltas joined, or the final message content when the provider sent no deltas.


thinkingBlocks?​

optional thinkingBlocks: ThinkingBlock[]

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:445

The step's extended-thinking blocks (Anthropic), so a session store can replay the step.


usage?​

optional usage: ModelUsage

Defined in: packages/agentos/src/cognition/substrate/IGMI.ts:429