49 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 (29)
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)
388
RawRepresentation
= audioUpdate,
423
RawRepresentation
= tokenUsage,
515
RawRepresentation
= audio,
525
callContent.
RawRepresentation
= toolCall;
792
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (19)
194
RawRepresentation
= outputItem,
200
fcc.
RawRepresentation
= outputItem;
205
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
216
RawRepresentation
= mtcari,
219
RawRepresentation
= mtcari,
224
message.Contents.Add(new McpServerToolApprovalResponseContent(mtcari.ApprovalRequestId, mtcari.Approved) {
RawRepresentation
= mtcari });
246
message.Contents.Add(new() {
RawRepresentation
= outputItem });
418
RawRepresentation
= imageGenInProgress,
431
RawRepresentation
= codeInterpreterDeltaUpdate,
453
RawRepresentation
= mtcari,
456
RawRepresentation
= mtcari,
497
yield return CreateUpdate(new AIContent {
RawRepresentation
= outputItemDoneUpdate.Item });
1316
content.
RawRepresentation
= part;
1379
RawRepresentation
= mtci,
1403
CodeInterpreterCallImageOutput cicio => new UriContent(cicio.ImageUri, OpenAIClientExtensions.ImageUriToMediaType(cicio.ImageUri)) {
RawRepresentation
= cicio },
1404
CodeInterpreterCallLogsOutput ciclo => new TextContent(ciclo.Logs) {
RawRepresentation
= ciclo },
1407
RawRepresentation
= cicri,
1423
RawRepresentation
= outputItem,
1436
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"
2267
RawRepresentation
= fcc.RawRepresentation
64 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)
258
if (content.
RawRepresentation
is ChatMessageContentPart raw)
283
case AIContent when content.
RawRepresentation
is ChatMessageContentPart rawContentPart:
OpenAIResponsesChatClient.cs (4)
921
{
RawRepresentation
: ResponseItem rawRep } => rawRep,
945
case AIContent when item.
RawRepresentation
is ResponseContentPart rawRep:
1000
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
1134
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
Microsoft.Extensions.AI.OpenAI.Tests (10)
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 (3)
824
Assert.NotNull(computerUserItem.
RawRepresentation
);
826
Assert.IsType<ComputerCallResponseItem>(computerUserItem.
RawRepresentation
);
926
var ccri = Assert.IsType<ComputerCallResponseItem>(content.
RawRepresentation
);
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
434
Assert.Equal("CustomRaw", capturedFrc.
RawRepresentation
);
2267
RawRepresentation = fcc.
RawRepresentation