Circle V2 API Docs
    Preparing search index...

    Function withResolvedLlmGatewayScope

    • Opens a routing scope, records the flag's verdict for it, and runs fn inside. The read never throws — it runs ahead of the tracked path, where a rejection would escape unlogged.

      Type Parameters

      • T

      Parameters

      • resolveContext: () => Promise<FlagContext | undefined>
      • logger: WarnLogger
      • fn: () => Promise<T>

      Returns Promise<T>