2 writes to CallId
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
29CallId = callId;
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
70c.CallId = "id";
25 references to CallId
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
555return new FunctionResultContent(result.CallContent.CallId, result.CallContent.Name, functionResult, result.Exception);
ChatCompletion\OpenTelemetryChatClient.cs (1)
522Id = fc.CallId,
Microsoft.Extensions.AI.Abstractions (4)
Contents\FunctionCallContent.cs (2)
104string display = CallId is not null ? 105$"CallId = {CallId}, " :
Contents\FunctionResultContent.cs (2)
66: this(Throw.IfNull(functionCall).CallId, functionCall.Name, result, exception) 75/// <see cref="FunctionCallContent.CallId"/> value.
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatMessageTests.cs (1)
372Assert.Equal("function-id", functionCallContent.CallId);
Contents\FunctionCallContentTests..cs (6)
27Assert.Equal("callId1", c.CallId); 46Assert.Equal("id", c.CallId); 69Assert.Equal("callId1", c.CallId); 71Assert.Equal("id", c.CallId); 97Assert.Equal("callId1", deserializedSut.CallId); 329Assert.Equal("callId", content.CallId);
Microsoft.Extensions.AI.AzureAIInference (4)
AzureAIInferenceChatClient.cs (4)
468if (content is FunctionCallContent callRequest && callRequest.CallId is not null && toolCalls?.ContainsKey(callRequest.CallId) is not true) 473callRequest.CallId, 475callRequest.CallId,
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
525Assert.Equal("call_F9ZaqPWo69u0urxAhVt8meDW", fcc.CallId);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
72var toolCallJson = JsonSerializer.Serialize(new { fcc.CallId, fcc.Name, fcc.Arguments }, _jsonOptions);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
372CallId = fcc.CallId,
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (4)
629if (content is FunctionCallContent callRequest && callRequest.CallId is not null && toolCalls?.ContainsKey(callRequest.CallId) is not true) 632callRequest.CallId, 634callRequest.CallId,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
576Assert.Equal("call_F9ZaqPWo69u0urxAhVt8meDW", fcc.CallId);