Class AgentTaskRunObserver
- Namespace
- Oscova.Agents.Tasks
- Assembly
- Oscova.Agents.dll
Projects the first current-run user message, eligible tool-result messages, non-streaming responses, and the first assembled instruction into one task run.
public sealed class AgentTaskRunObserver : IAgentRunObserverInheritance
Implements
Inherited Members
Constructors
- AgentTaskRunObserver(AgentTaskRun)
-
Projects the first current-run user message, eligible tool-result messages, non-streaming responses, and the first assembled instruction into one task run.
Methods
- OnRequest(IEnumerable<ChatMessage>, ChatOptions?)
-
Called immediately before a request is sent to the model client.
- OnResponse(ChatResponse)
-
Called after the model client returns a response.