ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias SessionMessage

    An upsert for an inter-session message.

    type SessionMessage = {
        messageId: MessageId;
        senderSessionId?: SessionId | null;
        recipientSessionId?: SessionId | null;
        senderMessageId?: MessageId | null;
        recipientMessageId?: MessageId | null;
        content?: ContentBlock[] | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    messageId: MessageId

    Identifier of this message within the enclosing session's transcript.

    senderSessionId?: SessionId | null

    The sending session.

    Omitted leaves the stored value unchanged. null clears it. A value replaces it.

    recipientSessionId?: SessionId | null

    The receiving session.

    Omitted leaves the stored value unchanged. null clears it. A value replaces it.

    senderMessageId?: MessageId | null

    On an incoming view, the messageId of the same message's outgoing view in the sender's transcript.

    Omitted leaves the stored value unchanged. null clears it. A value replaces it. It can arrive after the message starts streaming.

    recipientMessageId?: MessageId | null

    On an outgoing view, the messageId of the same message's incoming view in the recipient's transcript.

    Omitted leaves the stored value unchanged. null clears it. A value replaces it. It can arrive after the message starts streaming.

    content?: ContentBlock[] | null

    Omitted leaves content unchanged. null clears it. A concrete array replaces the whole content collection.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted leaves the stored metadata unchanged. null clears it. An object patches the stored metadata by top-level key: keys it omits are unchanged, a key set to null is removed, and any other value replaces that key's stored value without merging nested objects. Beyond this patch rule, implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Metadata Patches