Merge branch 'SciSharp:master' into master

This commit is contained in:
Haiping 2024-10-22 11:44:52 +00:00 committed by GitHub
commit 5b0e30957a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,15 @@ public partial class RoutingService
role = agent.Name;
}
conversation += $"{role}: {dialog.Payload ?? dialog.Content}\r\n";
if (role == AgentRole.User)
{
conversation += $"{role}: {dialog.Payload ?? dialog.Content}\r\n";
}
else
{
// Assistant reply doesn't need help with payload
conversation += $"{role}: {dialog.Content}\r\n";
}
}
return conversation;