@yamlresume/ai
    Preparing search index...

    Interface AIOptions

    Common options shared by AI resume operations.

    interface AIOptions {
        maxRetries?: number;
        maxTokens?: number;
        model: LanguageModelV1;
        onChunk?: (chunk: string) => void;
        temperature?: number;
    }

    Hierarchy (View Summary)

    Index
    maxRetries?: number

    Maximum number of retries when the generated output fails validation.

    2
    
    maxTokens?: number

    Maximum number of tokens to generate.

    16384
    
    model: LanguageModelV1

    The Vercel AI SDK language model to use.

    onChunk?: (chunk: string) => void

    Optional callback invoked with each text chunk streamed from the model. When provided, the LLM response is streamed instead of returned all at once.

    Type Declaration

      • (chunk: string): void
      • Parameters

        • chunk: string

          The incremental text chunk from the model.

        Returns void

    temperature?: number

    Sampling temperature. Lower values produce more deterministic output.

    Some models (kimi-k2.6 with my test) only accept a temperature of 1.0.

    1