Member Junction
    Preparing search index...

    Interface ChatReasoningBlock

    Provider-opaque reasoning from one assistant turn, kept so the turn can be replayed exactly.

    Anthropic asks for a tool-use turn's thinking blocks to come back unchanged, signatures intact, or the model loses its reasoning between tool calls; Gemini signs thought and text parts the same way. Only the driver that produced a block reads it — every other driver ignores blocks whose provider is not its own, so a conversation that fails over to another provider stays valid. Never shown to the model as text and never read by the agent loop.

    interface ChatReasoningBlock {
        data?: string;
        kind: ChatReasoningKind;
        origin?: string;
        provider: string;
        signature?: string;
        text?: string;
    }
    Index

    Properties

    data?: string

    Encrypted payload of a redacted_thinking block.

    origin?: string

    Where the signature validates, when the provider scopes it (Gemini: endpoint plus model). A driver drops a block whose origin differs from the request it is building.

    provider: string

    The driver family that produced the block, e.g. 'anthropic' or 'gemini'.

    signature?: string

    The provider signature that must be replayed with the block.

    text?: string

    The reasoning text (thinking, thought), or the visible part's text (signed_text).