AIContextProvider.InvokingContext 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.
Contains the context information provided to InvokingCoreAsync(AIContextProvider+InvokingContext, CancellationToken).
public sealed class AIContextProvider.InvokingContext
type AIContextProvider.InvokingContext = class
Public NotInheritable Class AIContextProvider.InvokingContext
- Inheritance
-
AIContextProvider.InvokingContext
Remarks
This class provides context about the invocation before the underlying AI model is invoked, including the messages that will be used. Context providers can use this information to determine what additional context should be provided for the invocation.
Constructors
| Name | Description |
|---|---|
| AIContextProvider.InvokingContext(AIAgent, AgentSession, AIContext) |
Initializes a new instance of the AIContextProvider.InvokingContext class. |
Properties
| Name | Description |
|---|---|
| Agent |
Gets the agent that is being invoked. |
| AIContext |
Gets the AIContext being built for the current invocation. Context providers can modify and return or return a new AIContext instance to provide additional context for the invocation. |
| Session |
Gets the agent session associated with the agent invocation. |