AIContextProvider.InvokedContext.RequestMessages Property

Definition

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.

Applies to