Member Junction
    Preparing search index...
    BridgeSessionRunFinalizer: (
        agentSessionID: string,
        success: boolean,
        contextUser?: UserInfo,
        provider?: IMetadataProvider,
    ) => Promise<void>

    Finalizes the co-agent observability run(s) for an agent session when a bridge is torn down WITHOUT a live in-memory session — a prior-boot orphan or a cross-host reap, where the agent layer's Close()-wrapped finalizer can't run, so the co-agent AIAgentRun would otherwise dangle in Running forever. The agent layer registers it via AIBridgeEngine.SetSessionRunFinalizer at startup (it lives in @memberjunction/ai-agents, not reachable from this package). Idempotent: for a clean same-process teardown the run is already Completed, so this is a harmless no-op.

    Type Declaration

      • (
            agentSessionID: string,
            success: boolean,
            contextUser?: UserInfo,
            provider?: IMetadataProvider,
        ): Promise<void>
      • Parameters

        Returns Promise<void>