DiagnosticsExtensions
NexusLabs.Needlr.AgentFramework.Workflows¶
NexusLabs.Needlr.AgentFramework.Workflows.Diagnostics¶
DiagnosticsExtensions Class¶
Extension methods for wiring agent diagnostics into the NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe.
Inheritance System.Object 🡒 DiagnosticsExtensions
Methods¶
DiagnosticsExtensions.UsingDiagnostics(this AgentFrameworkSyringe) Method¶
Enables agent-run diagnostics for every agent created by the factory.
Wires the agent-run, chat-completion, and function-calling middleware layers,
and emits NexusLabs.Needlr.AgentFramework.Diagnostics.IAgentMetrics counters/histograms for OpenTelemetry.
Automatically includes token tracking via UsingTokenTracking().
public static NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe UsingDiagnostics(this NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe syringe);
Parameters¶
syringe NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe