@microsoft/opentelemetry
    Preparing search index...

    Interface MiddlewareLike

    Middleware interface compatible with agents-hosting adapters.

    interface MiddlewareLike {
        onTurn(
            context: TurnContextLike,
            next: () => Promise<void>,
        ): Promise<void>;
    }

    Implemented by

    Index
    • Processes a turn and invokes the next middleware.

      Parameters

      • context: TurnContextLike

        The current turn context.

      • next: () => Promise<void>

        Invokes the next middleware in the pipeline.

      Returns Promise<void>