Share via


AgentRunContext Class

Definition

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.

Applies to