Strands Agents Typescript SDK
    Preparing search index...

    Class ReasoningBlock

    Reasoning content block within a message.

    Implements

    Index

    Constructors

    Properties

    type: "reasoningBlock" = ...

    Discriminator for reasoning content.

    text?: string

    The text content of the reasoning process.

    signature?: string

    A cryptographic signature for verification purposes.

    redactedContent?: Uint8Array

    The redacted content of the reasoning process.

    Methods

    • Serializes the ReasoningBlock to a JSON-compatible ContentBlockData object. Called automatically by JSON.stringify(). Uint8Array redactedContent is encoded as base64 string.

      Returns { reasoning: { text?: string; signature?: string; redactedContent?: string } }

    • Creates a ReasoningBlock instance from its wrapped data format. Base64-encoded redactedContent is decoded back to Uint8Array.

      Parameters

      • data: {
            reasoning: {
                text?: string;
                signature?: string;
                redactedContent?: string | Uint8Array<ArrayBufferLike>;
            };
        }

        Wrapped ReasoningBlockData to deserialize (accepts both string and Uint8Array for redactedContent)

      Returns ReasoningBlock

      ReasoningBlock instance