@jataware/beaker-client
    Preparing search index...

    Interface IMessage

    The flattened message shape consumed by the UI.

    The serialized records carried in INotebookChatHistory store their message in LangChain's message_to_dict form ({type, data: {...}}). The UI, however, expects a flat message with a derived text field, so ChatHistory adapts each record into this shape.

    interface IMessage {
        additionalKwargs?: { [key: string]: any };
        content: string | (string | { [key: string]: any })[];
        id?: string;
        name?: string;
        responseMetadata: { [key: string]: any };
        text: string;
        tool_call_id?: string;
        tool_calls?: any[];
        type: string;
    }
    Index
    additionalKwargs?: { [key: string]: any }
    content: string | (string | { [key: string]: any })[]
    id?: string
    name?: string
    responseMetadata: { [key: string]: any }
    text: string
    tool_call_id?: string
    tool_calls?: any[]
    type: string