AIContextProvider.InvokedContext.RequestMessages Property
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.
Gets the accumulated request messages (user input, chat history and any others provided by AI context providers) that were used by the agent for this invocation.
public System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> RequestMessages { get; }
member this.RequestMessages : seq<Microsoft.Extensions.AI.ChatMessage>
Public ReadOnly Property RequestMessages As IEnumerable(Of ChatMessage)
Property Value
A collection of ChatMessage instances representing all messages that were used by the agent for this invocation.