3 writes to CallContent
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1153CallContent = callContent,
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvocationContextTests.cs (2)
37Assert.Throws<ArgumentNullException>("value", () => ctx.CallContent = null!); 56ctx.CallContent = callContent;
9 references to CallContent
Microsoft.Extensions.AI (4)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1279new(OpenTelemetryConsts.GenAI.Tool.Call.Id, context.CallContent.CallId),
ChatCompletion\ImageGeneratingChatClient.cs (3)
376var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId; 411var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId; 429var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId;
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\FunctionInvocationContextTests.cs (2)
17Assert.NotNull(ctx.CallContent); 57Assert.Same(callContent, ctx.CallContent);
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
406returnedFrc = new FunctionResultContent(ctx.CallContent.CallId, "Custom result from function") 569returnedFrc = new DerivedFunctionResultContent(ctx.CallContent.CallId, "Derived result") 1332Assert.Equal("Func1", context.CallContent.Name);