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)
29
c.
RawRepresentation
= raw;
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
110
callContent.
RawRepresentation
= toolCall;
Microsoft.Extensions.AI.OpenAI (24)
MicrosoftExtensionsAIChatExtensions.cs (2)
182
fcc.
RawRepresentation
= toolCall;
206
RawRepresentation
= tcm,
OpenAIAssistantsChatClient.cs (1)
202
fcc.
RawRepresentation
= ru;
OpenAIChatClient.cs (5)
342
RawRepresentation
= audioUpdate,
377
RawRepresentation
= tokenUsage,
460
RawRepresentation
= audio,
470
callContent.
RawRepresentation
= toolCall;
704
aiContent.
RawRepresentation
= contentPart;
OpenAIResponsesChatClient.cs (16)
153
message.Contents.Add(new TextReasoningContent(summary) {
RawRepresentation
= outputItem });
158
fcc.
RawRepresentation
= outputItem;
170
RawRepresentation
= mtcari,
173
RawRepresentation
= mtcari,
182
message.Contents.Add(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) {
RawRepresentation
= functionCallOutputItem });
186
message.Contents.Add(new() {
RawRepresentation
= outputItem });
287
yield return CreateUpdate(new AIContent {
RawRepresentation
= mtdli });
294
RawRepresentation
= mtcari,
297
RawRepresentation
= mtcari,
723
TextContent text = new(part.Text) {
RawRepresentation
= part };
731
results.Add(new HostedFileContent(part.InputImageFileId) {
RawRepresentation
= part });
735
results.Add(new HostedFileContent(part.InputFileId) {
RawRepresentation
= part });
742
RawRepresentation
= part,
752
RawRepresentation
= part,
757
results.Add(new() {
RawRepresentation
= part });
859
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
);
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)
484
case AIContent when content.
RawRepresentation
is MessageContent rawRep:
OpenAIChatClient.cs (2)
222
if (content.
RawRepresentation
is ChatMessageContentPart raw)
247
case AIContent when content.
RawRepresentation
is ChatMessageContentPart rawContentPart:
OpenAIResponsesChatClient.cs (3)
585
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
621
case AIContent when item.
RawRepresentation
is ResponseItem rawRep:
807
case AIContent when content.
RawRepresentation
is ResponseContentPart rawRep: