LocalLm types documentation
    Preparing search index...

    Interface InferenceResult

    Represents the result returned after an inference request.

    InferenceResult

    const inferenceResult: InferenceResult = {
    text: 'The quick brown fox jumps over the lazy dog.',
    stats: {
    ingestionTime: 150,
    inferenceTime: 300,
    totalTime: 450,
    ingestionTimeSeconds: 0.15,
    inferenceTimeSeconds: 0.3,
    totalTimeSeconds: 0.45,
    totalTokens: 200,
    tokensPerSecond: 444
    },
    serverStats: { someServerKey: 'someServerValue' }
    };
    interface InferenceResult {
        serverStats: Record<string, any>;
        stats: InferenceStats;
        text: string;
        toolCalls?: ToolCallSpec[];
    }
    Index

    Properties

    serverStats: Record<string, any>

    Additional server-related statistics.

    Additional statistics or metadata related to the inference.

    text: string

    The textual representation of the generated inference.

    toolCalls?: ToolCallSpec[]