ChatHistoryProvider.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(ChatHistoryProvider+InvokingContext, CancellationToken).
public sealed class ChatHistoryProvider.InvokingContext
type ChatHistoryProvider.InvokingContext = class
Public NotInheritable Class ChatHistoryProvider.InvokingContext
- Inheritance
-
ChatHistoryProvider.InvokingContext
Remarks
This class provides context about the invocation including the new messages that will be used. A ChatHistoryProvider can use this information to determine what messages should be provided for the invocation.
Constructors
| Name | Description |
|---|---|
| ChatHistoryProvider.InvokingContext(AIAgent, AgentSession, IEnumerable<ChatMessage>) |
Initializes a new instance of the ChatHistoryProvider.InvokingContext class with the specified request messages. |
Properties
| Name | Description |
|---|---|
| Agent |
Gets the agent that is being invoked. |
| RequestMessages |
Gets the messages that will be used by the agent for this invocation. ChatHistoryProvider instances can modify and return or return a new message list to add additional messages for the invocation. |
| Session |
Gets the agent session associated with the agent invocation. |