4 writes to Text
Microsoft.Extensions.AI.Abstractions (1)
Contents\TextReasoningContent.cs (1)
26
Text
= text;
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\TextReasoningContentTests.cs (3)
40
c.
Text
= "text";
44
c.
Text
= null;
48
c.
Text
= string.Empty;
26 references to Text
Microsoft.Extensions.AI (3)
ChatCompletion\OpenTelemetryChatClient.cs (2)
253
case TextReasoningContent trc when !string.IsNullOrWhiteSpace(trc.
Text
):
254
m.Parts.Add(new OtelGenericPart { Type = "reasoning", Content = trc.
Text
});
ToolReduction\EmbeddingToolReductionStrategy.cs (1)
64
text = content.
Text
;
Microsoft.Extensions.AI.Abstractions (5)
Contents\TextReasoningContent.cs (5)
45
/// only <see cref="ProtectedData"/> and have an empty <see cref="
Text
"/> property. This data also may be associated with
46
/// the corresponding <see cref="
Text
"/>, acting as a validation signature for it.
49
/// Note that whereas <see cref="
Text
"/> can be provider agnostic, <see cref="ProtectedData"/>
56
public override string ToString() =>
Text
;
59
private string DebuggerDisplay => $"Reasoning = \"{
Text
}\"";
Microsoft.Extensions.AI.Abstractions.Tests (16)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (9)
626
Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).
Text
);
628
Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).
Text
);
630
Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).
Text
);
632
Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).
Text
);
656
Assert.Equal("A", Assert.IsType<TextReasoningContent>(message.Contents[0]).
Text
);
659
Assert.Equal("B", Assert.IsType<TextReasoningContent>(message.Contents[1]).
Text
);
662
Assert.Equal("CDE", Assert.IsType<TextReasoningContent>(message.Contents[2]).
Text
);
665
Assert.Equal("F", Assert.IsType<TextReasoningContent>(message.Contents[3]).
Text
);
668
Assert.Equal("GH", Assert.IsType<TextReasoningContent>(message.Contents[4]).
Text
);
Contents\TextReasoningContentTests.cs (7)
21
Assert.Equal(text ?? string.Empty, c.
Text
);
39
Assert.Equal(string.Empty, c.
Text
);
41
Assert.Equal("text", c.
Text
);
45
Assert.Equal(string.Empty, c.
Text
);
49
Assert.Equal(string.Empty, c.
Text
);
68
Assert.Equal(content.
Text
, deserializedContent.
Text
);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
1045
summaryText: reasoningContent.
Text
);
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
332
Assert.NotNull(reasoning.
Text
);