We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c350e00 commit 893c1cbCopy full SHA for 893c1cb
src/ModelContextProtocol.Core/AIContentExtensions.cs
@@ -128,7 +128,8 @@ public static class AIContentExtensions
128
{
129
if (sm.Content?.Select(b => b.ToAIContent()).OfType<AIContent>().ToList() is { Count: > 0 } aiContents)
130
131
- ChatRole role = aiContents.All(c => c is FunctionResultContent) ? ChatRole.Tool :
+ ChatRole role =
132
+ aiContents.All(static c => c is FunctionResultContent) ? ChatRole.Tool :
133
sm.Role is Role.Assistant ? ChatRole.Assistant :
134
ChatRole.User;
135
messages.Add(new ChatMessage(role, aiContents));
0 commit comments