50 writes to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (14)
Contents\AIContentTests.cs (2)
27
c.
RawRepresentation
= raw;
41
RawRepresentation
= new object(),
Contents\CodeInterpreterToolCallContentTests.cs (1)
38
c.
RawRepresentation
= raw;
Contents\CodeInterpreterToolResultContentTests.cs (1)
38
c.
RawRepresentation
= raw;
Contents\FunctionCallContentTests.cs (1)
56
c.
RawRepresentation
= raw;
Contents\FunctionResultContentTests.cs (1)
41
c.
RawRepresentation
= raw;
Contents\HostedFileContentTests.cs (1)
45
c.
RawRepresentation
= raw;
Contents\HostedVectorStoreContentTests.cs (1)
45
c.
RawRepresentation
= raw;
Contents\ImageGenerationToolCallContentTests.cs (1)
31
c.
RawRepresentation
= raw;
Contents\ImageGenerationToolResultContentTests.cs (1)
38
c.
RawRepresentation
= raw;
Contents\McpServerToolCallContentTests.cs (1)
33
c.
RawRepresentation
= raw;
Contents\McpServerToolResultContentTests.cs (1)
30
c.
RawRepresentation
= raw;
Contents\TextContentTests.cs (1)
30
c.
RawRepresentation
= raw;
Contents\TextReasoningContentTests.cs (1)
31
c.
RawRepresentation
= raw;
Microsoft.Extensions.AI.OpenAI (30)
MicrosoftExtensionsAIChatExtensions.cs (2)
199
fcc.
RawRepresentation
= toolCall;
229
RawRepresentation
= tcm,
OpenAIAssistantsChatClient.cs (3)
195
fcc.
RawRepresentation
= ru;
209
RawRepresentation
= details,
227
RawRepresentation
= details,
OpenAIChatClient.cs (5)
392
RawRepresentation
= audioUpdate,
427
RawRepresentation
= tokenUsage,
519
RawRepresentation
= audio,
529
callContent.
RawRepresentation
= toolCall;
797
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (20)
196
RawRepresentation
= outputItem,
202
fcc.
RawRepresentation
= outputItem;
207
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
218
RawRepresentation
= mtcari,
221
RawRepresentation
= mtcari,
226
message.Contents.Add(new McpServerToolApprovalResponseContent(mtcari.ApprovalRequestId, mtcari.Approved) {
RawRepresentation
= mtcari });
248
message.Contents.Add(new() {
RawRepresentation
= outputItem });
422
RawRepresentation
= imageGenInProgress,
435
RawRepresentation
= codeInterpreterDeltaUpdate,
457
RawRepresentation
= mtcari,
460
RawRepresentation
= mtcari,
466
yield return CreateUpdate(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
506
yield return CreateUpdate(new AIContent {
RawRepresentation
= outputItemDoneUpdate.Item });
1326
content.
RawRepresentation
= part;
1389
RawRepresentation
= mtci,
1413
CodeInterpreterCallImageOutput cicio => new UriContent(cicio.ImageUri, OpenAIClientExtensions.ImageUriToMediaType(cicio.ImageUri)) {
RawRepresentation
= cicio },
1414
CodeInterpreterCallLogsOutput ciclo => new TextContent(ciclo.Logs) {
RawRepresentation
= ciclo },
1417
RawRepresentation
= cicri,
1433
RawRepresentation
= outputItem,
1446
RawRepresentation
= update,
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIConversionTests.cs (4)
766
new AIContent {
RawRepresentation
= ResponseItem.CreateWebSearchCallItem() },
767
new AIContent {
RawRepresentation
= ResponseItem.CreateReferenceItem("123") },
774
new AIContent {
RawRepresentation
= ResponseItem.CreateReasoningItem("text") },
778
new AIContent {
RawRepresentation
= ResponseItem.CreateSystemMessageItem("test") },
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
408
RawRepresentation
= "CustomRaw"
2324
RawRepresentation
= fcc.RawRepresentation
65 references to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (45)
Contents\AIContentTests.cs (5)
16
Assert.Null(c.
RawRepresentation
);
25
Assert.Null(c.
RawRepresentation
);
28
Assert.Same(raw, c.
RawRepresentation
);
45
Assert.NotNull(original.
RawRepresentation
);
53
Assert.Null(deserialized.
RawRepresentation
);
Contents\CodeInterpreterToolCallContentTests.cs (3)
16
Assert.Null(c.
RawRepresentation
);
36
Assert.Null(c.
RawRepresentation
);
39
Assert.Same(raw, c.
RawRepresentation
);
Contents\CodeInterpreterToolResultContentTests.cs (3)
16
Assert.Null(c.
RawRepresentation
);
36
Assert.Null(c.
RawRepresentation
);
39
Assert.Same(raw, c.
RawRepresentation
);
Contents\FunctionCallContentTests.cs (4)
23
Assert.Null(c.
RawRepresentation
);
41
Assert.Null(c.
RawRepresentation
);
54
Assert.Null(c.
RawRepresentation
);
57
Assert.Same(raw, c.
RawRepresentation
);
Contents\FunctionResultContentTests.cs (4)
17
Assert.Null(c.
RawRepresentation
);
27
Assert.Null(c.
RawRepresentation
);
39
Assert.Null(c.
RawRepresentation
);
42
Assert.Same(raw, c.
RawRepresentation
);
Contents\HostedFileContentTests.cs (3)
25
Assert.Null(c.
RawRepresentation
);
43
Assert.Null(c.
RawRepresentation
);
46
Assert.Same(raw, c.
RawRepresentation
);
Contents\HostedVectorStoreContentTests.cs (3)
24
Assert.Null(c.
RawRepresentation
);
43
Assert.Null(c.
RawRepresentation
);
46
Assert.Same(raw, c.
RawRepresentation
);
Contents\ImageGenerationToolCallContentTests.cs (3)
15
Assert.Null(c.
RawRepresentation
);
29
Assert.Null(c.
RawRepresentation
);
32
Assert.Same(raw, c.
RawRepresentation
);
Contents\ImageGenerationToolResultContentTests.cs (3)
16
Assert.Null(c.
RawRepresentation
);
36
Assert.Null(c.
RawRepresentation
);
39
Assert.Same(raw, c.
RawRepresentation
);
Contents\McpServerToolCallContentTests.cs (3)
17
Assert.Null(c.
RawRepresentation
);
31
Assert.Null(c.
RawRepresentation
);
34
Assert.Same(raw, c.
RawRepresentation
);
Contents\McpServerToolResultContentTests.cs (3)
18
Assert.Null(c.
RawRepresentation
);
28
Assert.Null(c.
RawRepresentation
);
31
Assert.Same(raw, c.
RawRepresentation
);
Contents\TextContentTests.cs (3)
18
Assert.Null(c.
RawRepresentation
);
28
Assert.Null(c.
RawRepresentation
);
31
Assert.Same(raw, c.
RawRepresentation
);
Contents\TextReasoningContentTests.cs (3)
18
Assert.Null(c.
RawRepresentation
);
29
Assert.Null(c.
RawRepresentation
);
32
Assert.Same(raw, c.
RawRepresentation
);
Contents\UsageContentTests.cs (2)
22
Assert.Null(c.
RawRepresentation
);
39
Assert.Null(c.
RawRepresentation
);
Microsoft.Extensions.AI.OpenAI (7)
OpenAIAssistantsChatClient.cs (1)
536
case AIContent when content.
RawRepresentation
is MessageContent rawRep:
OpenAIChatClient.cs (2)
262
if (content.
RawRepresentation
is ChatMessageContentPart raw)
287
case AIContent when content.
RawRepresentation
is ChatMessageContentPart rawContentPart:
OpenAIResponsesChatClient.cs (4)
931
{
RawRepresentation
: ResponseItem rawRep } => rawRep,
955
case AIContent when item.
RawRepresentation
is ResponseContentPart rawRep:
1010
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
1144
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
Microsoft.Extensions.AI.OpenAI.Tests (11)
OpenAIConversionTests.cs (4)
786
Assert.Same(messages[0].Contents[1].
RawRepresentation
, items[1]);
787
Assert.Same(messages[0].Contents[2].
RawRepresentation
, items[2]);
791
Assert.Same(messages[1].Contents[1].
RawRepresentation
, items[5]);
792
Assert.Same(messages[2].Contents[0].
RawRepresentation
, items[6]);
OpenAIResponseClientIntegrationTests.cs (3)
593
Assert.NotNull(reasoningContent.
RawRepresentation
);
613
Assert.Null(deserializedReasoning.
RawRepresentation
);
693
Assert.Null(deserializedReasoning.
RawRepresentation
);
OpenAIResponseClientTests.cs (4)
825
Assert.NotNull(computerUserItem.
RawRepresentation
);
827
Assert.IsType<ComputerCallResponseItem>(computerUserItem.
RawRepresentation
);
927
var ccri = Assert.IsType<ComputerCallResponseItem>(content.
RawRepresentation
);
5442
Assert.IsType<FunctionCallOutputResponseItem>(frc.
RawRepresentation
);
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
434
Assert.Equal("CustomRaw", capturedFrc.
RawRepresentation
);
2324
RawRepresentation = fcc.
RawRepresentation