35 writes to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (10)
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\McpServerToolCallContentTests.cs (1)
34
c.
RawRepresentation
= raw;
Contents\McpServerToolResultContentTests.cs (1)
29
c.
RawRepresentation
= raw;
Contents\TextContentTests.cs (1)
29
c.
RawRepresentation
= raw;
Contents\TextReasoningContentTests.cs (1)
30
c.
RawRepresentation
= raw;
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
109
callContent.
RawRepresentation
= toolCall;
Microsoft.Extensions.AI.OpenAI (24)
MicrosoftExtensionsAIChatExtensions.cs (2)
191
fcc.
RawRepresentation
= toolCall;
215
RawRepresentation
= tcm,
OpenAIAssistantsChatClient.cs (1)
196
fcc.
RawRepresentation
= ru;
OpenAIChatClient.cs (5)
370
RawRepresentation
= audioUpdate,
405
RawRepresentation
= tokenUsage,
488
RawRepresentation
= audio,
498
callContent.
RawRepresentation
= toolCall;
737
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (16)
169
RawRepresentation
= outputItem,
175
fcc.
RawRepresentation
= outputItem;
187
RawRepresentation
= mtcari,
190
RawRepresentation
= mtcari,
199
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
203
message.Contents.Add(new() {
RawRepresentation
= outputItem });
306
yield return CreateUpdate(new AIContent {
RawRepresentation
= mtdli });
313
RawRepresentation
= mtcari,
316
RawRepresentation
= mtcari,
743
TextContent text = new(part.Text) {
RawRepresentation
= part };
751
results.Add(new HostedFileContent(part.InputImageFileId) {
RawRepresentation
= part });
755
results.Add(new HostedFileContent(part.InputFileId) {
RawRepresentation
= part });
762
RawRepresentation
= part,
772
RawRepresentation
= part,
777
results.Add(new() {
RawRepresentation
= part });
879
RawRepresentation
= mtci,
39 references to RawRepresentation
Microsoft.Extensions.AI.Abstractions.Tests (33)
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\McpServerToolCallContentTests.cs (3)
17
Assert.Null(c.
RawRepresentation
);
32
Assert.Null(c.
RawRepresentation
);
35
Assert.Same(raw, c.
RawRepresentation
);
Contents\McpServerToolResultContentTests.cs (3)
17
Assert.Null(c.
RawRepresentation
);
27
Assert.Null(c.
RawRepresentation
);
30
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
);
28
Assert.Null(c.
RawRepresentation
);
31
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)
478
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 (3)
603
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
639
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
827
case AIContent when content.
RawRepresentation
is ResponseContentPart rawRep: