EvalItem.Split(IConversationSplitter) Method
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.
Splits the conversation into query messages and response messages.
public(System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatMessage> QueryMessages, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatMessage> ResponseMessages) Split(Microsoft.Agents.AI.IConversationSplitter? splitter = default);
member this.Split : Microsoft.Agents.AI.IConversationSplitter -> ValueTuple<System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatMessage>, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.ChatMessage>>
Public Function Split (Optional splitter As IConversationSplitter = Nothing) As ValueTuple(Of IReadOnlyList(Of ChatMessage), IReadOnlyList(Of ChatMessage))
Parameters
- splitter
- IConversationSplitter
The splitter to use. When null, uses Splitter
if set, otherwise LastTurn.
Returns
A tuple of (query messages, response messages).