.NET Workflows - Remove empty message injection in declarative workflow agent provider. (#3819)

* Fixed

* Update test-case expectations
This commit is contained in:
Chris
2026-02-10 13:25:40 -08:00
committed by GitHub
Unverified
parent ac0e6b0ee1
commit f407f726a7
3 changed files with 1 additions and 3 deletions
@@ -123,7 +123,7 @@ public sealed class AzureAgentProvider(Uri projectEndpoint, TokenCredential proj
IAsyncEnumerable<AgentResponseUpdate> agentResponse =
messages is not null ?
agent.RunStreamingAsync([.. messages], null, runOptions, cancellationToken) :
agent.RunStreamingAsync([new ChatMessage(ChatRole.User, string.Empty)], null, runOptions, cancellationToken);
agent.RunStreamingAsync([], null, runOptions, cancellationToken);
await foreach (AgentResponseUpdate update in agentResponse.ConfigureAwait(false))
{
@@ -10,7 +10,6 @@
"conversation_count": 1,
"min_action_count": 1,
"min_response_count": 1,
"min_message_count": 2,
"actions": {
"start": [
"invoke_poem"
@@ -10,7 +10,6 @@
"conversation_count": 1,
"min_action_count": 3,
"min_response_count": 3,
"min_message_count": 6,
"actions": {
"start": [
"invoke_analyst",