18 instantiations of OtelGenericPart
Microsoft.Extensions.AI (18)
ChatCompletion\OpenTelemetryChatClient.cs (1)
530
JsonSerializer.Serialize(new object[1] { new
OtelGenericPart
{ Content = options!.Instructions } }, OtelMessageSerializer.DefaultOptions.GetTypeInfo(typeof(IList<object>))));
Common\OtelMessageSerializer.cs (5)
70
m.Parts.Add(new
OtelGenericPart
{ Content = tc.Text });
74
m.Parts.Add(new
OtelGenericPart
{ Type = "reasoning", Content = trc.Text });
124
m.Parts.Add(new
OtelGenericPart
{ Type = "vector_store", Content = vsc.VectorStoreId });
128
m.Parts.Add(new
OtelGenericPart
{ Type = "error", Content = ec.Message });
243
m.Parts.Add(new
OtelGenericPart
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.OtelGenericPart.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.Extensions.AI.
OtelGenericPart
(),
Realtime\OpenTelemetryRealtimeClientSession.cs (11)
374
Parts = { new
OtelGenericPart
{ Type = "audio_commit" } },
383
responseMessage.Parts.Add(new
OtelGenericPart
448
textAudioOtelMessage.Parts.Add(new
OtelGenericPart
457
transcriptionOtelMessage.Parts.Add(new
OtelGenericPart
466
errorOtelMessage.Parts.Add(new
OtelGenericPart
531
message.Parts.Add(new
OtelGenericPart
{ Content = tc.Text });
535
message.Parts.Add(new
OtelGenericPart
{ Type = "reasoning", Content = trc.Text });
588
message.Parts.Add(new
OtelGenericPart
{ Type = "vector_store", Content = vsc.VectorStoreId });
592
message.Parts.Add(new
OtelGenericPart
{ Type = "error", Content = ec.Message });
647
message.Parts.Add(new
OtelGenericPart
719
JsonSerializer.Serialize(new object[1] { new
OtelGenericPart
{ Content = options.Instructions } }, OtelContext.Default.IListObject));
20 references to OtelGenericPart
Microsoft.Extensions.AI (20)
Common\OtelContext.cs (1)
20
[JsonSerializable(typeof(
OtelGenericPart
))]
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.GetJsonTypeInfo.g.cs (1)
46
if (type == typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.OtelGenericPart.g.cs (18)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
>? _OtelGenericPart;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
> OtelGenericPart
22
get => _OtelGenericPart ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
> Create_OtelGenericPart(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
OtelGenericPart
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
OtelGenericPart
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
OtelGenericPart
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
),
58
Getter = static obj => ((global::Microsoft.Extensions.AI.
OtelGenericPart
)obj).Type,
59
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
OtelGenericPart
)obj).Type = value!,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
),
80
Getter = static obj => ((global::Microsoft.Extensions.AI.
OtelGenericPart
)obj).Content,
81
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
OtelGenericPart
)obj).Content = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
OtelGenericPart
).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),