Documentation
    Preparing search index...

    Interface MockLlmGenerationRequest

    A validated GenerationRequest (pr134 fields plus pr138 additions).

    const request: MockLlmGenerationRequest = { handle: 'h-0123456789ab', messages: [], format: 'json' };
    
    interface MockLlmGenerationRequest {
        format?: "json" | "text";
        handle: string;
        maxTokens?: number;
        messages: MockLlmMessage[];
        samplingParams?: Record<string, unknown>;
        temperature?: number;
        toolChoice?: MockLlmToolChoice;
        tools?: MockLlmTool[];
    }
    Index

    Properties

    format?: "json" | "text"

    Output format; defaults to text.

    handle: string

    A live Model handle.

    maxTokens?: number

    Output token limit.

    messages: MockLlmMessage[]

    Ordered conversation.

    samplingParams?: Record<string, unknown>

    Provider-neutral sampling parameters (dropped by the mock).

    temperature?: number

    Sampling temperature.

    toolChoice?: MockLlmToolChoice

    Tool selection policy.

    tools?: MockLlmTool[]

    Tools the model may call.