Share via


AIContextProvider.InvokingContext(AIAgent, AgentSession, AIContext) Constructor

Definition

Initializes a new instance of the AIContextProvider.InvokingContext class.

public InvokingContext(Microsoft.Agents.AI.AIAgent agent, Microsoft.Agents.AI.AgentSession? session, Microsoft.Agents.AI.AIContext aiContext);
new Microsoft.Agents.AI.AIContextProvider.InvokingContext : Microsoft.Agents.AI.AIAgent * Microsoft.Agents.AI.AgentSession * Microsoft.Agents.AI.AIContext -> Microsoft.Agents.AI.AIContextProvider.InvokingContext
Public Sub New (agent As AIAgent, session As AgentSession, aiContext As AIContext)

Parameters

agent
AIAgent

The agent being invoked.

session
AgentSession

The session associated with the agent invocation.

aiContext
AIContext

The AI context to be used by the agent for this invocation.

Exceptions

agent or aiContext is null.

Applies to