Agent Client Protocol - v2.12.0
    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 or [] clears it. A non-empty array replaces all content.

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

    Omitted leaves metadata unchanged. null removes it.

    Implementations MUST NOT make assumptions about values in _meta.