Strands Agents Typescript SDK
    Preparing search index...

    Class Message

    A message in a conversation between user and assistant. Each message has a role (user or assistant) and an array of content blocks.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: "message" = ...

    Discriminator for message type.

    role: Role

    The role of the message sender.

    content: ContentBlock[]

    Array of content blocks that make up this message.

    Methods