Table of Contents

Class AgentRunObserverMiddleware

Namespace
Oscova.Agents.Middleware
Assembly
Oscova.Agents.dll

Adds an Oscova.Agents.Middleware.IAgentRunObserver intercept point to the chat client pipeline. Must be placed before Microsoft.Extensions.AI.FunctionInvokingChatClient in the builder chain so the observer fires once per model round-trip inside the tool loop, not once per full agent run.

public static class AgentRunObserverMiddleware

Inheritance

Inherited Members

Methods

UseAgentRunObserver(ChatClientBuilder, AgentRunObserverAccessor)

Inserts a decorator that observes every request and each non-streaming response.