IChatCompletionCollector
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Diagnostics¶
IChatCompletionCollector Interface¶
Provides access to per-LLM-call completion diagnostics captured by the chat client middleware. Used by pipeline run extensions to correlate LLM call timing with agent turns.
Derived
↳ ChatCompletionCollectorHolder
Methods¶
IChatCompletionCollector.DrainCompletions() Method¶
Drains all captured completions since the last drain. Thread-safe. Returns an empty list if no completions have been recorded.
System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.AgentFramework.Diagnostics.ChatCompletionDiagnostics> DrainCompletions();
Returns¶
System.Collections.Generic.IReadOnlyList<ChatCompletionDiagnostics>