1 write to CallId
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
28CallId = Throw.IfNull(callId);
21 references to CallId
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
650return new FunctionResultContent(result.CallContent.CallId, functionResult) { Exception = result.Exception };
ChatCompletion\OpenTelemetryChatClient.cs (1)
516Id = fc.CallId,
Microsoft.Extensions.AI.Abstractions (3)
Contents\FunctionCallContent.cs (2)
105string display = CallId is not null ? 106$"CallId = {CallId}, " :
Contents\FunctionResultContent.cs (1)
39/// <see cref="FunctionCallContent.CallId"/> value.
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatMessageTests.cs (1)
337Assert.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); 321Assert.Equal("callId", content.CallId);
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
441if (content is FunctionCallContent { CallId: not null } callRequest) 444callRequest.CallId,
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
879Assert.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)
440CallId = fcc.CallId,
Microsoft.Extensions.AI.OpenAI (3)
OpenAIModelMapper.ChatCompletion.cs (1)
47callRequest.CallId,
OpenAIModelMapper.ChatMessage.cs (1)
178callRequest.CallId,
OpenAIModelMappers.StreamingChatCompletion.cs (1)
38toolCallId: functionCallContent.CallId,
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (1)
897Assert.Equal("call_F9ZaqPWo69u0urxAhVt8meDW", fcc.CallId);
OpenAISerializationTests.cs (1)
446Assert.Equal("12345", text.CallId);