1 write to CallId
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
28CallId = Throw.IfNull(callId);
23 references to CallId
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
767return new FunctionResultContent(result.CallContent.CallId, functionResult) { Exception = result.Exception };
ChatCompletion\OpenTelemetryChatClient.cs (1)
524Id = fc.CallId,
Microsoft.Extensions.AI.Abstractions (3)
Contents\FunctionCallContent.cs (2)
111if (CallId is not null) 113display += $"{CallId}, ";
Contents\FunctionResultContent.cs (1)
39/// <see cref="FunctionCallContent.CallId"/> value.
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatMessageTests.cs (1)
313Assert.Equal("function-id", functionCallContent.CallId);
Contents\FunctionCallContentTests..cs (5)
26Assert.Equal("callId1", c.CallId); 44Assert.Equal("id", c.CallId); 63Assert.Equal("callId1", c.CallId); 89Assert.Equal("callId1", deserializedSut.CallId); 309Assert.Equal("callId", content.CallId);
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
469if (content is FunctionCallContent { CallId: not null } callRequest) 472callRequest.CallId,
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
886Assert.Equal("call_F9ZaqPWo69u0urxAhVt8meDW", fcc.CallId);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
76var toolCallJson = JsonSerializer.Serialize(new { fcc.CallId, fcc.Name, fcc.Arguments }, _jsonOptions);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
450CallId = fcc.CallId,
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
162callRequest.CallId,
OpenAIResponseChatClient.cs (1)
501callContent.CallId,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
957Assert.Equal("call_F9ZaqPWo69u0urxAhVt8meDW", fcc.CallId);
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\DistributedCachingChatClientTest.cs (4)
746Assert.Equal(expectedFcc.CallId, actualFcc.CallId); 780Assert.Equal(expectedFcc.CallId, actualFcc.CallId);