6 writes to Inputs
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
283
Inputs
= inputs,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\CodeInterpreterToolCallContentTests.cs (3)
33
c.
Inputs
= inputs;
53
Inputs
=
74
Inputs
=
Microsoft.Extensions.AI.OpenAI (2)
OpenAIAssistantsChatClient.cs (1)
205
Inputs
= [new DataContent(Encoding.UTF8.GetBytes(details.CodeInterpreterInput), "text/x-python")],
OpenAIResponsesChatClient.cs (1)
1127
Inputs
= !string.IsNullOrWhiteSpace(cicri.Code) ? [new DataContent(Encoding.UTF8.GetBytes(cicri.Code), "text/x-python")] : null,
28 references to Inputs
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\ChatResponseExtensions.cs (3)
260
if (firstContent.
Inputs
is not null)
262
CoalesceContent(firstContent.
Inputs
);
272
(inputs ??= []).AddRange(((CodeInterpreterToolCallContent)contents[i]).
Inputs
?? []);
Contents\CodeInterpreterToolCallContent.cs (1)
37
/// by the service. Typically <see cref="
Inputs
"/> includes a <see cref="DataContent"/> with a "text/x-python"
Microsoft.Extensions.AI.Abstractions.Tests (14)
Contents\CodeInterpreterToolCallContentTests.cs (14)
19
Assert.Null(c.
Inputs
);
31
Assert.Null(c.
Inputs
);
34
Assert.Same(inputs, c.
Inputs
);
61
Assert.NotNull(c.
Inputs
);
62
Assert.Equal(3, c.
Inputs
.Count);
63
Assert.IsType<TextContent>(c.
Inputs
[0]);
64
Assert.IsType<HostedFileContent>(c.
Inputs
[1]);
65
Assert.IsType<DataContent>(c.
Inputs
[2]);
86
Assert.NotNull(deserializedSut.
Inputs
);
87
Assert.Equal(2, deserializedSut.
Inputs
.Count);
88
Assert.IsType<TextContent>(deserializedSut.
Inputs
[0]);
89
Assert.Equal("print('hello')", ((TextContent)deserializedSut.
Inputs
[0]).Text);
90
Assert.IsType<HostedFileContent>(deserializedSut.
Inputs
[1]);
91
Assert.Equal("file456", ((HostedFileContent)deserializedSut.
Inputs
[1]).FileId);
Microsoft.Extensions.AI.OpenAI.Tests (10)
OpenAIAssistantChatClientIntegrationTests.cs (3)
72
if (toolCallContent.
Inputs
is not null)
74
Assert.NotEmpty(toolCallContent.
Inputs
);
75
if (toolCallContent.
Inputs
.OfType<DataContent>().FirstOrDefault() is { } codeInput)
OpenAIResponseClientIntegrationTests.cs (3)
45
Assert.NotNull(toolCallContent.
Inputs
);
46
Assert.NotEmpty(toolCallContent.
Inputs
);
48
var codeInput = toolCallContent.
Inputs
.OfType<DataContent>().FirstOrDefault();
OpenAIResponseClientTests.cs (4)
2361
Assert.NotNull(codeCall.
Inputs
);
2362
var codeInput = Assert.IsType<DataContent>(Assert.Single(codeCall.
Inputs
));
2581
Assert.NotNull(codeCall.
Inputs
);
2582
var codeInput = Assert.IsType<DataContent>(Assert.Single(codeCall.
Inputs
));