Skip to content

IToolCallCollector

NexusLabs.Foundry.MicrosoftAgentFramework

NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics

IToolCallCollector Interface

Provides access to per-tool-call diagnostics captured by the function-calling middleware. Used by pipeline run extensions to prevent silent tool call data loss when AsyncLocal diagnostics builders don't propagate across workflow infrastructure.

public interface IToolCallCollector

Derived
↳ ToolCallCollectorHolder

Methods

IToolCallCollector.DrainToolCalls() Method

Drains all captured tool calls since the last drain. Thread-safe. Returns an empty list if no tool calls have been recorded.

System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics.ToolCallDiagnostics> DrainToolCalls();

Returns

System.Collections.Generic.IReadOnlyList<ToolCallDiagnostics>