LocalLm types documentation
    Preparing search index...

    Interface HistoryTurn

    Represents a single turn in a conversation history.

    HistoryTurn

    The user's message in this turn.

    The assistant's response in this turn.

    The assistant's thoughts in this turn.

    Images associated with this turn.

    Tool calls and results for this turn.

    const historyTurn: HistoryTurn = {
    user: "What's the weather like?",
    assistant: "The weather is sunny with a temperature of 72°F.",
    tools: [
    {
    call: { id: '1', name: 'getWeather', arguments: { location: 'New York' } },
    response: { content: 'Sunny, 72°F' }
    }
    ]
    };
    interface HistoryTurn {
        assistant?: string;
        images?: ImgData[];
        think?: string;
        tools?: ToolTurn[];
        user?: string;
    }
    Index

    Properties

    assistant?: string
    images?: ImgData[]
    think?: string
    tools?: ToolTurn[]
    user?: string