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