Skip to content
Français

ModelReasoningBlock

import type { ModelReasoningBlock } from "@elie-laloum/outpost";
  • textOptional
    string | undefined
    Readable reasoning exposed by the service: the Anthropic thinking text or the Responses summary. The harness emits it as a reasoning event; replay uses data.
  • typeRequired
    "reasoning"
    Block discriminator: reasoning.
  • providerRequired
    string
    Identity of the provider that produced the block; other providers never receive it.
  • modelRequired
    string
    Model that produced the block; it is replayed only to the same model.
  • dataRequired
    unknown
    Opaque service payload: an Anthropic thinking or redacted_thinking block with its signature, or an OpenAI Responses reasoning item. Replay it unchanged.
export interface ModelReasoningBlock {
  readonly text?: string;
  readonly type: "reasoning";
  readonly provider: string;
  readonly model: string;
  readonly data: unknown;
}