Circle V2 API Docs
    Preparing search index...

    Function resolvePrompt

    • Resolve a prompt with override-first precedence:

      1. a local override (via the injected readOverride) — wins unconditionally
      2. the LangSmith hub (when enabled) → 3. the committed snapshot fallback

      readOverride is injected so this stays pure (no filesystem) — the consuming package supplies the fs read. Checking the override FIRST means local dev never depends on LANGSMITH_PROMPTS: the override always wins locally, while deployed envs (where there is no override) keep the hub-or-snapshot behavior.

      Model config follows the same precedence (override → hub → committed.model).

      Parameters

      Returns Promise<ResolvedPrompt>