2 instantiations of DerivedToolCallContent
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
1374
ToolCallContent tc = new
DerivedToolCallContent
{ CustomValue = 42 };
1383
AIContent ac = new
DerivedToolCallContent
{ CustomValue = 99 };
9 references to DerivedToolCallContent
Microsoft.Extensions.AI.Abstractions.Tests (9)
Utilities\AIJsonUtilitiesTests.cs (9)
1360
options.AddAIContentType<
DerivedToolCallContent
>("derivedToolCall");
1364
options.AddAIContentType(typeof(
DerivedToolCallContent
), "derivedToolCall");
1370
Assert.Contains(toolCallTypes, dt => dt.DerivedType == typeof(
DerivedToolCallContent
));
1371
Assert.Contains(aiContentTypes, dt => dt.DerivedType == typeof(
DerivedToolCallContent
));
1379
DerivedToolCallContent
deserializedTc = Assert.IsType<
DerivedToolCallContent
>(JsonSerializer.Deserialize<ToolCallContent>(json, options));
1388
DerivedToolCallContent
deserializedAc = Assert.IsType<
DerivedToolCallContent
>(JsonSerializer.Deserialize<AIContent>(json2, options));
1943
[JsonSerializable(typeof(
DerivedToolCallContent
))]