Skip to content

DiagnosticsExtensions

NexusLabs.Needlr.AgentFramework.Workflows

NexusLabs.Needlr.AgentFramework.Workflows.Diagnostics

DiagnosticsExtensions Class

Extension methods for wiring agent diagnostics into the NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe.

public static class DiagnosticsExtensions

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.

public static NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe UsingDiagnostics(this NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe syringe);

Parameters

syringe NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe

Returns

NexusLabs.Needlr.AgentFramework.AgentFrameworkSyringe