IToolCallCollector
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.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.
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.Needlr.AgentFramework.Diagnostics.ToolCallDiagnostics> DrainToolCalls();
Returns¶
System.Collections.Generic.IReadOnlyList<ToolCallDiagnostics>