@yamlresume/ai
    Preparing search index...

    Function generateResume

    • Generate a YAMLResume for a given position and language using an LLM.

      The generated text is parsed and validated against the YAMLResume schema. If validation fails, the request is retried up to maxRetries times.

      Parameters

      • position: string

        The target position or job title for the resume.

      • language:
            | "en"
            | "zh-hans"
            | "zh-hant-hk"
            | "zh-hant-tw"
            | "es"
            | "fr"
            | "no"
            | "nl"
            | "ja"
            | "de"
            | "id"
            | "pt-br"

        The target locale language for the resume.

      • options: GenerateResumeOptions

        Generation options.

      Returns Promise<string>

      A raw YAML string representing the generated resume.

      When generation or validation ultimately fails.