47 writes to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (12)
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)
55
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\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.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
109
callContent.
RawRepresentation
= toolCall;
Microsoft.Extensions.AI.OpenAI (30)
MicrosoftExtensionsAIChatExtensions.cs (2)
192
fcc.
RawRepresentation
= toolCall;
220
RawRepresentation
= tcm,
OpenAIAssistantsChatClient.cs (3)
192
fcc.
RawRepresentation
= ru;
206
RawRepresentation
= details,
224
RawRepresentation
= details,
OpenAIChatClient.cs (5)
370
RawRepresentation
= audioUpdate,
405
RawRepresentation
= tokenUsage,
488
RawRepresentation
= audio,
498
callContent.
RawRepresentation
= toolCall;
738
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (20)
202
RawRepresentation
= outputItem,
208
fcc.
RawRepresentation
= outputItem;
213
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
224
RawRepresentation
= mtcari,
227
RawRepresentation
= mtcari,
232
message.Contents.Add(new McpServerToolApprovalResponseContent(mtcari.ApprovalRequestId, mtcari.Approved) {
RawRepresentation
= mtcari });
240
message.Contents.Add(new() {
RawRepresentation
= outputItem });
403
yield return CreateUpdate(new AIContent {
RawRepresentation
= mtdli });
410
RawRepresentation
= mtcari,
413
RawRepresentation
= mtcari,
1084
TextContent text = new(part.Text) {
RawRepresentation
= part };
1092
results.Add(new HostedFileContent(part.InputImageFileId) { MediaType = "image/*",
RawRepresentation
= part });
1096
results.Add(new HostedFileContent(part.InputFileId) { Name = part.InputFilename,
RawRepresentation
= part });
1103
RawRepresentation
= part,
1113
RawRepresentation
= part,
1118
results.Add(new() {
RawRepresentation
= part });
1180
RawRepresentation
= mtci,
1215
CodeInterpreterCallImageOutput cicio => new UriContent(cicio.ImageUri, OpenAIClientExtensions.ImageUriToMediaType(cicio.ImageUri)) {
RawRepresentation
= cicio },
1216
CodeInterpreterCallLogsOutput ciclo => new TextContent(ciclo.Logs) {
RawRepresentation
= ciclo },
1219
RawRepresentation
= cicri,
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIConversionTests.cs (4)
563
new AIContent {
RawRepresentation
= ResponseItem.CreateWebSearchCallItem() },
564
new AIContent {
RawRepresentation
= ResponseItem.CreateReferenceItem("123") },
571
new AIContent {
RawRepresentation
= ResponseItem.CreateReasoningItem("text") },
575
new AIContent {
RawRepresentation
= ResponseItem.CreateSystemMessageItem("test") },
50 references to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (39)
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
);
40
Assert.Null(c.
RawRepresentation
);
53
Assert.Null(c.
RawRepresentation
);
56
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\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)
530
case AIContent when content.
RawRepresentation
is MessageContent rawRep:
OpenAIChatClient.cs (2)
250
if (content.
RawRepresentation
is ChatMessageContentPart raw)
275
case AIContent when content.
RawRepresentation
is ChatMessageContentPart rawContentPart:
OpenAIResponsesChatClient.cs (4)
767
{
RawRepresentation
: ResponseItem rawRep } => rawRep,
791
case AIContent when item.
RawRepresentation
is ResponseContentPart rawRep:
846
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
980
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIConversionTests.cs (4)
583
Assert.Same(messages[0].Contents[1].
RawRepresentation
, items[1]);
584
Assert.Same(messages[0].Contents[2].
RawRepresentation
, items[2]);
588
Assert.Same(messages[1].Contents[1].
RawRepresentation
, items[5]);
589
Assert.Same(messages[2].Contents[0].
RawRepresentation
, items[6]);