Share via


ChatHistoryProvider.InvokingContext.RequestMessages Property

Definition

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.

public System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> RequestMessages { get; set; }
member this.RequestMessages : seq<Microsoft.Extensions.AI.ChatMessage> with get, set
Public Property RequestMessages As IEnumerable(Of ChatMessage)

Property Value

A collection of ChatMessage instances representing the messages that will be used by the agent for this invocation.

Remarks

If multiple ChatHistoryProvider instances are used in the same invocation, each ChatHistoryProvider will receive the messages returned by the previous ChatHistoryProvider allowing them to build on top of each other's context.

The first ChatHistoryProvider in the invocation pipeline will receive the caller provided messages.

Applies to