• Executes a provided function within a schema context, with optional overrides for schema services such as agents, completions, and pipelines.

    Type Parameters

    • T = any

      Type of the result returned by the run function.

    Parameters

    • runFn: () => Promise<void | T>

      Function to execute within the managed scope, receiving clientId and agentName as arguments.

    • Optionaloptions: Partial

      Configuration options for schema service overrides.

    Returns Promise<T>