@conciergus/chat - v0.3.1
    Preparing search index...

    Interface ConversationMessage

    interface ConversationMessage {
        id: string;
        conversationId: string;
        role: "user" | "assistant" | "system" | "tool";
        content: string;
        agentId?: string;
        agentInfo?: AgentInfo;
        createdAt: Date;
        updatedAt?: Date;
        tokens?: number;
        model?: string;
        status?: "pending" | "completed" | "failed" | "streaming";
        metadata?: {
            performance?: {
                responseTime?: number;
                processingTime?: number;
                generationTime?: number;
            };
            ui?: {
                generativeUI?: any;
                toolResults?: any[];
                attachments?: ConversationAttachment[];
            };
            handoff?: {
                fromAgentId?: string;
                toAgentId?: string;
                reason?: string;
                context?: Record<string, any>;
            };
            searchable?: boolean;
            tags?: string[];
            [key: string]: any;
        };
    }
    Index

    Properties

    id: string

    Unique message identifier

    conversationId: string

    Conversation this message belongs to

    role: "user" | "assistant" | "system" | "tool"

    Message role: user, assistant, system, or tool

    content: string

    Message content

    agentId?: string

    Agent that created this message (if role is 'assistant')

    agentInfo?: AgentInfo

    Agent information at time of message creation

    createdAt: Date

    Message creation timestamp

    updatedAt?: Date

    Message last updated timestamp

    tokens?: number

    Token count for this message

    model?: string

    Model used to generate this message

    status?: "pending" | "completed" | "failed" | "streaming"

    Message status

    metadata?: {
        performance?: {
            responseTime?: number;
            processingTime?: number;
            generationTime?: number;
        };
        ui?: {
            generativeUI?: any;
            toolResults?: any[];
            attachments?: ConversationAttachment[];
        };
        handoff?: {
            fromAgentId?: string;
            toAgentId?: string;
            reason?: string;
            context?: Record<string, any>;
        };
        searchable?: boolean;
        tags?: string[];
        [key: string]: any;
    }

    Message metadata

    Type declaration

    • [key: string]: any

      Custom metadata

    • Optionalperformance?: { responseTime?: number; processingTime?: number; generationTime?: number }

      Performance metrics

    • Optionalui?: {
          generativeUI?: any;
          toolResults?: any[];
          attachments?: ConversationAttachment[];
      }

      UI/UX related data

    • Optionalhandoff?: {
          fromAgentId?: string;
          toAgentId?: string;
          reason?: string;
          context?: Record<string, any>;
      }

      Agent handoff information

    • Optionalsearchable?: boolean

      Search and indexing

    • Optionaltags?: string[]