AIContextProvider.InvokingContext(AIAgent, AgentSession, AIContext) Constructor
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.
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.