LoopEvaluation.ContinueWithMessages(IEnumerable<ChatMessage>) 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.
Creates an evaluation that re-invokes the wrapped agent with the specified messages, bypassing the loop's feedback and message construction.
public static Microsoft.Agents.AI.LoopEvaluation ContinueWithMessages(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> messages);
static member ContinueWithMessages : seq<Microsoft.Extensions.AI.ChatMessage> -> Microsoft.Agents.AI.LoopEvaluation
Public Shared Function ContinueWithMessages (messages As IEnumerable(Of ChatMessage)) As LoopEvaluation
Parameters
- messages
- IEnumerable<ChatMessage>
The messages to send to the wrapped agent on the next iteration.
Returns
An evaluation with ShouldReinvoke set to true.
Exceptions
messages is null.
Remarks
Use this for full control over the next input (for example to send non-user roles, multiple messages, or non-text content). The supplied messages are sent verbatim and the loop does not accumulate or inject feedback for this iteration.