Documentation
    Preparing search index...

    Interface LlmMessage

    One conversation message.

    interface LlmMessage {
        content: LlmPart[];
        isError?: boolean;
        role: LlmRole;
        toolCallId?: string;
        toolName?: string;
    }
    Index

    Properties

    content: LlmPart[]

    Ordered, nonempty content parts. thinking and toolCall parts belong only to assistant messages; toolResult content permits only text and image parts.

    isError?: boolean

    For toolResult only: whether the tool failed. Defaults to false.

    role: LlmRole
    toolCallId?: string

    For toolResult only: the toolCallId of the call this message answers.

    toolName?: string

    For toolResult only: the name of the tool that produced the result.