20 writes to Inputs
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseExtensions.cs (1)
380Inputs = inputs,
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\CodeInterpreterToolCallContentTests.cs (3)
31c.Inputs = inputs; 50Inputs = 70Inputs =
Contents\ToolApprovalRequestContentTests.cs (1)
26new CodeInterpreterToolCallContent("CI1") { Inputs = [new DataContent("print('hello')"u8.ToArray(), "text/x-python")] },
Contents\ToolApprovalResponseContentTests.cs (1)
26new CodeInterpreterToolCallContent("CI1") { Inputs = [new DataContent("print('hello')"u8.ToArray(), "text/x-python")] },
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (1)
207Inputs = [new DataContent(Encoding.UTF8.GetBytes(details.CodeInterpreterInput), OpenAIClientExtensions.PythonMediaType)],
OpenAIResponsesChatClient.cs (2)
258Inputs = !string.IsNullOrWhiteSpace(cicri.Code) ? [new DataContent(Encoding.UTF8.GetBytes(cicri.Code), OpenAIClientExtensions.PythonMediaType)] : null, 501Inputs = [new DataContent(Encoding.UTF8.GetBytes(codeInterpreterDeltaUpdate.Delta), OpenAIClientExtensions.PythonMediaType)],
Microsoft.Extensions.AI.Stabilization.Tests (4)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolCallContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolCallContentTests.cs (3)
31c.Inputs = inputs; 50Inputs = 70Inputs =
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
661new CodeInterpreterToolCallContent("ci-call-1") { Inputs = [new TextContent("print('hello')")] }, 677yield return new() { Contents = [new CodeInterpreterToolCallContent("ci-call-1") { Inputs = [new TextContent("print('hello')")] }] };
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs = value!,
59 references to Inputs
Microsoft.Extensions.AI (1)
Common\OtelMessageSerializer.cs (1)
140Code = ExtractCodeFromInputs(citcc.Inputs),
Microsoft.Extensions.AI.Abstractions (5)
ChatCompletion\ChatResponseExtensions.cs (3)
358if (firstContent.Inputs is not null) 360CoalesceContent(firstContent.Inputs); 370(inputs ??= []).AddRange(((CodeInterpreterToolCallContent)contents[i]).Inputs ?? []);
Contents\CodeInterpreterToolCallContent.cs (1)
32/// by the service. Typically <see cref="Inputs"/> includes a <see cref="DataContent"/> with a "text/x-python"
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,
Microsoft.Extensions.AI.Abstractions.Tests (18)
Contents\CodeInterpreterToolCallContentTests.cs (17)
19Assert.Null(c.Inputs); 29Assert.Null(c.Inputs); 32Assert.Same(inputs, c.Inputs); 58Assert.NotNull(c.Inputs); 59Assert.Equal(3, c.Inputs.Count); 60Assert.IsType<TextContent>(c.Inputs[0]); 61Assert.IsType<HostedFileContent>(c.Inputs[1]); 62Assert.IsType<DataContent>(c.Inputs[2]); 82Assert.NotNull(deserializedSut.Inputs); 83Assert.Equal(2, deserializedSut.Inputs.Count); 84Assert.IsType<TextContent>(deserializedSut.Inputs[0]); 85Assert.Equal("print('hello')", ((TextContent)deserializedSut.Inputs[0]).Text); 86Assert.IsType<HostedFileContent>(deserializedSut.Inputs[1]); 87Assert.Equal("file456", ((HostedFileContent)deserializedSut.Inputs[1]).FileId); 114Assert.NotNull(ciCall.Inputs); 115Assert.Single(ciCall.Inputs); 116var textInput = Assert.IsType<TextContent>(ciCall.Inputs[0]);
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\361d1da7f942c932\JsonContext.CodeInterpreterToolCallContent.g.cs (1)
60Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,
Microsoft.Extensions.AI.OpenAI.Tests (14)
OpenAIAssistantChatClientIntegrationTests.cs (3)
73if (toolCallContent.Inputs is not null) 75Assert.NotEmpty(toolCallContent.Inputs); 76if (toolCallContent.Inputs.OfType<DataContent>().FirstOrDefault() is { } codeInput)
OpenAIResponseClientIntegrationTests.cs (3)
53Assert.NotNull(toolCallContent.Inputs); 54Assert.NotEmpty(toolCallContent.Inputs); 56var codeInput = toolCallContent.Inputs.OfType<DataContent>().FirstOrDefault();
OpenAIResponseClientTests.cs (8)
3397Assert.NotNull(codeCall.Inputs); 3398var codeInput = Assert.IsType<DataContent>(Assert.Single(codeCall.Inputs)); 3617Assert.NotNull(codeCall.Inputs); 3618var codeInput = Assert.IsType<DataContent>(Assert.Single(codeCall.Inputs)); 3715if (content.Inputs is { Count: > 0 }) 3717var dataContent = content.Inputs.OfType<DataContent>().FirstOrDefault(); 3743Assert.NotNull(codeCall.Inputs); 3744var codeInput = Assert.IsType<DataContent>(Assert.Single(codeCall.Inputs));
Microsoft.Extensions.AI.Stabilization.Tests (18)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.CodeInterpreterToolCallContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\CodeInterpreterToolCallContentTests.cs (17)
19Assert.Null(c.Inputs); 29Assert.Null(c.Inputs); 32Assert.Same(inputs, c.Inputs); 58Assert.NotNull(c.Inputs); 59Assert.Equal(3, c.Inputs.Count); 60Assert.IsType<TextContent>(c.Inputs[0]); 61Assert.IsType<HostedFileContent>(c.Inputs[1]); 62Assert.IsType<DataContent>(c.Inputs[2]); 82Assert.NotNull(deserializedSut.Inputs); 83Assert.Equal(2, deserializedSut.Inputs.Count); 84Assert.IsType<TextContent>(deserializedSut.Inputs[0]); 85Assert.Equal("print('hello')", ((TextContent)deserializedSut.Inputs[0]).Text); 86Assert.IsType<HostedFileContent>(deserializedSut.Inputs[1]); 87Assert.Equal("file456", ((HostedFileContent)deserializedSut.Inputs[1]).FileId); 114Assert.NotNull(ciCall.Inputs); 115Assert.Single(ciCall.Inputs); 116var textInput = Assert.IsType<TextContent>(ciCall.Inputs[0]);
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.CodeInterpreterToolCallContent.g.cs (1)
58Getter = static obj => ((global::Microsoft.Extensions.AI.CodeInterpreterToolCallContent)obj).Inputs,