ADK for TypeScript: API Reference
    Preparing search index...

    Function runWithClientLabel

    • Runs the given callback within a context that has the specified client label. All LLM calls made within this callback will include the client label in their tracking headers.

      Type Parameters

      • R

      Parameters

      • clientLabel: string

        The custom client label to apply.

      • callback: () => R

        The callback function to execute.

      Returns R

      The result of the callback.