27 writes to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\AIContentTests.cs (2)
26
c.
RawRepresentation
= raw;
40
RawRepresentation
= new object(),
Contents\FunctionCallContentTests..cs (1)
55
c.
RawRepresentation
= raw;
Contents\FunctionResultContentTests.cs (1)
41
c.
RawRepresentation
= raw;
Contents\HostedFileContentTests.cs (1)
44
c.
RawRepresentation
= raw;
Contents\HostedVectorStoreContentTests.cs (1)
44
c.
RawRepresentation
= raw;
Contents\TextContentTests.cs (1)
29
c.
RawRepresentation
= raw;
Contents\TextReasoningContentTests.cs (1)
29
c.
RawRepresentation
= raw;
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
110
callContent.
RawRepresentation
= toolCall;
Microsoft.Extensions.AI.OpenAI (18)
MicrosoftExtensionsAIChatExtensions.cs (2)
182
fcc.
RawRepresentation
= toolCall;
206
RawRepresentation
= tcm,
OpenAIAssistantsChatClient.cs (1)
211
fcc.
RawRepresentation
= ru;
OpenAIChatClient.cs (5)
352
RawRepresentation
= audioUpdate,
387
RawRepresentation
= tokenUsage,
470
RawRepresentation
= audio,
480
callContent.
RawRepresentation
= toolCall;
714
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (10)
152
message.Contents.Add(new TextReasoningContent(summary) {
RawRepresentation
= outputItem });
157
fcc.
RawRepresentation
= outputItem;
162
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
166
message.Contents.Add(new() {
RawRepresentation
= outputItem });
629
TextContent text = new(part.Text) {
RawRepresentation
= part };
637
results.Add(new HostedFileContent(part.InputImageFileId) {
RawRepresentation
= part });
641
results.Add(new HostedFileContent(part.InputFileId) {
RawRepresentation
= part });
648
RawRepresentation
= part,
658
RawRepresentation
= part,
663
results.Add(new() {
RawRepresentation
= part });
33 references to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (27)
Contents\AIContentTests.cs (5)
15
Assert.Null(c.
RawRepresentation
);
24
Assert.Null(c.
RawRepresentation
);
27
Assert.Same(raw, c.
RawRepresentation
);
44
Assert.NotNull(original.
RawRepresentation
);
52
Assert.Null(deserialized.
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)
24
Assert.Null(c.
RawRepresentation
);
42
Assert.Null(c.
RawRepresentation
);
45
Assert.Same(raw, c.
RawRepresentation
);
Contents\HostedVectorStoreContentTests.cs (3)
23
Assert.Null(c.
RawRepresentation
);
42
Assert.Null(c.
RawRepresentation
);
45
Assert.Same(raw, c.
RawRepresentation
);
Contents\TextContentTests.cs (3)
17
Assert.Null(c.
RawRepresentation
);
27
Assert.Null(c.
RawRepresentation
);
30
Assert.Same(raw, c.
RawRepresentation
);
Contents\TextReasoningContentTests.cs (3)
17
Assert.Null(c.
RawRepresentation
);
27
Assert.Null(c.
RawRepresentation
);
30
Assert.Same(raw, c.
RawRepresentation
);
Contents\UsageContentTests.cs (2)
21
Assert.Null(c.
RawRepresentation
);
38
Assert.Null(c.
RawRepresentation
);
Microsoft.Extensions.AI.OpenAI (6)
OpenAIAssistantsChatClient.cs (1)
493
case AIContent when content.
RawRepresentation
is MessageContent rawRep:
OpenAIChatClient.cs (2)
232
if (content.
RawRepresentation
is ChatMessageContentPart raw)
257
case AIContent when content.
RawRepresentation
is ChatMessageContentPart rawContentPart:
OpenAIResponsesChatClient.cs (3)
530
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
562
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
698
case AIContent when content.
RawRepresentation
is ResponseContentPart rawRep: