Documentation
    Preparing search index...

    Interface MockLlmMessage

    One conversation message.

    const message: MockLlmMessage = { role: 'user', content: [{ type: 'text', text: 'Hi' }] };
    
    interface MockLlmMessage {
        content: MockLlmPart[];
        isError?: boolean;
        role: "user" | "system" | "assistant" | "toolResult";
        toolCallId?: string;
        toolName?: string;
    }
    Index

    Properties

    content: MockLlmPart[]

    Ordered, non-empty parts.

    isError?: boolean

    toolResult only: whether the tool failed.

    role: "user" | "system" | "assistant" | "toolResult"

    Role; toolResult is a pr138 addition.

    toolCallId?: string

    toolResult only: the call this answers.

    toolName?: string

    toolResult only: tool name.