Skip to content

Commit 893c1cb

Browse files
authored
Update src/ModelContextProtocol.Core/AIContentExtensions.cs
1 parent c350e00 commit 893c1cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ModelContextProtocol.Core/AIContentExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public static class AIContentExtensions
128128
{
129129
if (sm.Content?.Select(b => b.ToAIContent()).OfType<AIContent>().ToList() is { Count: > 0 } aiContents)
130130
{
131-
ChatRole role = aiContents.All(c => c is FunctionResultContent) ? ChatRole.Tool :
131+
ChatRole role =
132+
aiContents.All(static c => c is FunctionResultContent) ? ChatRole.Tool :
132133
sm.Role is Role.Assistant ? ChatRole.Assistant :
133134
ChatRole.User;
134135
messages.Add(new ChatMessage(role, aiContents));

0 commit comments

Comments
 (0)