DiagnosticsExtensions
NexusLabs.Foundry.MicrosoftAgentFramework.Workflows¶
NexusLabs.Foundry.MicrosoftAgentFramework.Workflows.Diagnostics¶
DiagnosticsExtensions Class¶
Extension methods for wiring agent diagnostics into the NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder.
Inheritance System.Object 🡒 DiagnosticsExtensions
Methods¶
DiagnosticsExtensions.UsingDiagnostics(this AgentFrameworkBuilder) 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.Foundry.MicrosoftAgentFramework.Diagnostics.IAgentMetrics counters/histograms for OpenTelemetry.
Automatically includes token tracking via UsingTokenTracking().
public static NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder UsingDiagnostics(this NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder syringe);
Parameters¶
syringe NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder
Returns¶
NexusLabs.Foundry.MicrosoftAgentFramework.AgentFrameworkBuilder