8 references to ToolCalls
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatFinishReasonTests.cs (1)
48
Assert.Equal("tool_calls", ChatFinishReason.
ToolCalls
.Value);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
286
finishReason == CompletionsFinishReason.ToolCalls ? ChatFinishReason.
ToolCalls
:
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
777
Assert.Equal(ChatFinishReason.
ToolCalls
, response.FinishReason);
872
Assert.Equal(i < 7 ? null : ChatFinishReason.
ToolCalls
, updates[i].FinishReason);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIModelMapper.ChatCompletion.cs (2)
565
OpenAI.Chat.ChatFinishReason.ToolCalls or OpenAI.Chat.ChatFinishReason.FunctionCall => ChatFinishReason.
ToolCalls
,
573
finishReason == ChatFinishReason.
ToolCalls
? OpenAI.Chat.ChatFinishReason.ToolCalls :
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
754
Assert.Equal(ChatFinishReason.
ToolCalls
, response.FinishReason);
867
Assert.Equal(i < 7 ? null : ChatFinishReason.
ToolCalls
, updates[i].FinishReason);