AgentRunContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides context for an in-flight agent run.
public sealed class AgentRunContext
type AgentRunContext = class
Public NotInheritable Class AgentRunContext
- Inheritance
-
AgentRunContext
Constructors
| Name | Description |
|---|---|
| AgentRunContext(AIAgent, AgentSession, IReadOnlyCollection<ChatMessage>, AgentRunOptions) |
Initializes a new instance of the AgentRunContext class. |
Properties
| Name | Description |
|---|---|
| Agent |
Gets the AIAgent that is executing the current run. |
| RequestMessages |
Gets the request messages passed into the current run. |
| RunOptions |
Gets the AgentRunOptions that was passed to the current run. |
| Session |
Gets the AgentSession that is associated with the current run. |