Interface MessageInterface

Message entity interface

Mirrors macs-node-sdk/lib/logs/models/message.js.

interface MessageInterface {
    external_id?: string;
    extensors?: { [key: string]: string };
    record_history?: RecordHistory;
    id?: string;
    org?: string;
    user?: string;
    log: string;
    role?: MessageRole;
    content?: string;
    tool_calls?: { [key: string]: any }[];
    tool_call_id?: string;
    type?: MessageType;
    creator?: MessageActor;
    recipient?: MessageActor;
    associated_conversation_ids?: string[];
    metadata?: { [key: string]: any };
    keywords?: string[];
    tags?: string[];
    active?: boolean;
}

Hierarchy (View Summary)

Properties

external_id?: string

External system identifier for integration with third-party systems

extensors?: { [key: string]: string }

Extended properties for custom integrations

record_history?: RecordHistory

Record history tracking information

id?: string

Unique identifier for the entity

org?: string
user?: string
log: string

Parent AgentLog (required)

Role of the message author (required server-side; default 'user')

content?: string

Message body (may be empty for tool-call messages)

tool_calls?: { [key: string]: any }[]

Outbound tool calls attached to this message

tool_call_id?: string

Inbound tool-call id this message is replying to (for role='tool')

Classification (INFO/WARNING/ERROR)

creator?: MessageActor

Structured creator descriptor (supersedes role for non-human creators)

recipient?: MessageActor

Structured recipient descriptor (for direct addressing)

associated_conversation_ids?: string[]

Linked conversation ids for cross-conversation recall

metadata?: { [key: string]: any }

Arbitrary metadata

keywords?: string[]
tags?: string[]
active?: boolean

Whether the entity is active