Strands Agents Typescript SDK
    Preparing search index...

    Class ContentBlockEvent

    Event triggered when a content block completes during model inference. Wraps completed content blocks (TextBlock, ToolUseBlock, ReasoningBlock) from model streaming. This is intentionally separate from ModelStreamUpdateEvent. The model's streamAggregated() yields two kinds of output: ModelStreamEvent (transient streaming deltas — partial data arriving while the model generates) and ContentBlock (fully assembled results after all deltas accumulate). These represent different granularities with different semantics, so they are wrapped in distinct event classes rather than combined into a single event.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    type: "contentBlockEvent" = ...
    agent: AgentData
    contentBlock: ContentBlock

    Methods