Bluestep JS Documentation
    Preparing search index...

    Interface AiChatHistoryEntry

    One entry in the chatHistory seed array passed to B.ai.call.

    Example: ```javascript B.ai.call({ chatHistory: [ { role: "user", content: "What is the resident's diet order?" }, { role: "assistant", content: "Low sodium, pureed." }, ], message: "Does that conflict with the new MAR entry?", }); ```

    interface AiChatHistoryEntry {
        content: string;
        role: "user" | "assistant" | "tool";
        toolCallId?: string;
    }
    Index
    content: string

    Text content of the message (or, for tool entries, the tool result body).

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

    Sender role: "user", "assistant", or "tool".

    toolCallId?: string

    Tool-call id this entry is a result for. Only meaningful when role is "tool".