diff --git a/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem.g.cs index dde6ac31..09ad6886 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem.g.cs @@ -21,25 +21,25 @@ public class AnnotationsItemJsonConverter : global::System.Text.Json.Serializati throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentTextObjectTextAnnotationDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.MessageContentTextAnnotationsFileCitationObject? messageContentTextFileCitationObject = default; + global::OpenAI.MessageContentTextAnnotationsFileCitationObject? fileCitation = default; if (discriminator?.Type == global::OpenAI.MessageContentTextObjectTextAnnotationDiscriminatorType.FileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentTextAnnotationsFileCitationObject)}"); - messageContentTextFileCitationObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageContentTextAnnotationsFilePathObject? messageContentTextFilePathObject = default; + global::OpenAI.MessageContentTextAnnotationsFilePathObject? filePath = default; if (discriminator?.Type == global::OpenAI.MessageContentTextObjectTextAnnotationDiscriminatorType.FilePath) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentTextAnnotationsFilePathObject)}"); - messageContentTextFilePathObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.AnnotationsItem( discriminator?.Type, - messageContentTextFileCitationObject, - messageContentTextFilePathObject + fileCitation, + filePath ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsMessageContentTextFileCitationObject) + if (value.IsFileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentTextAnnotationsFileCitationObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentTextFileCitationObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation, typeInfo); } - else if (value.IsMessageContentTextFilePathObject) + else if (value.IsFilePath) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentTextAnnotationsFilePathObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageContentTextFilePathObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem2.g.cs b/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem2.g.cs index af9bbb12..6859cd4f 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem2.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.AnnotationsItem2.g.cs @@ -21,25 +21,25 @@ public class AnnotationsItem2JsonConverter : global::System.Text.Json.Serializat throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentTextObjectTextAnnotationDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? messageDeltaContentTextFileCitationObject = default; + global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? fileCitation = default; if (discriminator?.Type == global::OpenAI.MessageDeltaContentTextObjectTextAnnotationDiscriminatorType.FileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject)}"); - messageDeltaContentTextFileCitationObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? messageDeltaContentTextFilePathObject = default; + global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? filePath = default; if (discriminator?.Type == global::OpenAI.MessageDeltaContentTextObjectTextAnnotationDiscriminatorType.FilePath) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject)}"); - messageDeltaContentTextFilePathObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.AnnotationsItem2( discriminator?.Type, - messageDeltaContentTextFileCitationObject, - messageDeltaContentTextFilePathObject + fileCitation, + filePath ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsMessageDeltaContentTextFileCitationObject) + if (value.IsFileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaContentTextFileCitationObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation, typeInfo); } - else if (value.IsMessageDeltaContentTextFilePathObject) + else if (value.IsFilePath) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaContentTextFilePathObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.AssistantStreamEvent.g.cs b/src/libs/OpenAI/Generated/JsonConverters.AssistantStreamEvent.g.cs index b2577668..f35ed620 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.AssistantStreamEvent.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.AssistantStreamEvent.g.cs @@ -21,209 +21,209 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.ErrorEvent? value1 = default; + global::OpenAI.ErrorEvent? error = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.Error) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.ErrorEvent)}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.DoneEvent? value2 = default; + global::OpenAI.DoneEvent? done = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.Done) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.DoneEvent)}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + done = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant3? value3 = default; + global::OpenAI.AssistantStreamEventVariant3? threadCreated = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant3)}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant4? value4 = default; + global::OpenAI.AssistantStreamEventVariant4? threadRunCreated = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant4)}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant5? value5 = default; + global::OpenAI.AssistantStreamEventVariant5? threadRunQueued = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunQueued) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant5)}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunQueued = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant6? value6 = default; + global::OpenAI.AssistantStreamEventVariant6? threadRunInProgress = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant6)}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant7? value7 = default; + global::OpenAI.AssistantStreamEventVariant7? threadRunRequiresAction = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunRequiresAction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant7)}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunRequiresAction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant8? value8 = default; + global::OpenAI.AssistantStreamEventVariant8? threadRunCompleted = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant8)}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant9? value9 = default; + global::OpenAI.AssistantStreamEventVariant9? threadRunIncomplete = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant9)}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant10? value10 = default; + global::OpenAI.AssistantStreamEventVariant10? threadRunFailed = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant10)}"); - value10 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant11? value11 = default; + global::OpenAI.AssistantStreamEventVariant11? threadRunCancelling = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunCancelling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant11)}"); - value11 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunCancelling = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant12? value12 = default; + global::OpenAI.AssistantStreamEventVariant12? threadRunCancelled = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunCancelled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant12)}"); - value12 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunCancelled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant13? value13 = default; + global::OpenAI.AssistantStreamEventVariant13? threadRunExpired = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunExpired) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant13)}"); - value13 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunExpired = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant14? value14 = default; + global::OpenAI.AssistantStreamEventVariant14? threadRunStepCreated = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant14)}"); - value14 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant15? value15 = default; + global::OpenAI.AssistantStreamEventVariant15? threadRunStepInProgress = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant15)}"); - value15 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant16? value16 = default; + global::OpenAI.AssistantStreamEventVariant16? threadRunStepDelta = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant16)}"); - value16 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant17? value17 = default; + global::OpenAI.AssistantStreamEventVariant17? threadRunStepCompleted = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant17)}"); - value17 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant18? value18 = default; + global::OpenAI.AssistantStreamEventVariant18? threadRunStepFailed = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant18)}"); - value18 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant19? value19 = default; + global::OpenAI.AssistantStreamEventVariant19? threadRunStepCancelled = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepCancelled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant19)}"); - value19 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepCancelled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant20? value20 = default; + global::OpenAI.AssistantStreamEventVariant20? threadRunStepExpired = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadRunStepExpired) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant20)}"); - value20 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadRunStepExpired = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant21? value21 = default; + global::OpenAI.AssistantStreamEventVariant21? threadMessageCreated = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadMessageCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant21)}"); - value21 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadMessageCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant22? value22 = default; + global::OpenAI.AssistantStreamEventVariant22? threadMessageInProgress = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadMessageInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant22)}"); - value22 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadMessageInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant23? value23 = default; + global::OpenAI.AssistantStreamEventVariant23? threadMessageDelta = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadMessageDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant23)}"); - value23 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadMessageDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant24? value24 = default; + global::OpenAI.AssistantStreamEventVariant24? threadMessageCompleted = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadMessageCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant24)}"); - value24 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadMessageCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantStreamEventVariant25? value25 = default; + global::OpenAI.AssistantStreamEventVariant25? threadMessageIncomplete = default; if (discriminator?.Event == global::OpenAI.AssistantStreamEventDiscriminatorEvent.ThreadMessageIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantStreamEventVariant25)}"); - value25 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + threadMessageIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.AssistantStreamEvent( discriminator?.Event, - value1, - value2, - value3, - value4, - value5, - value6, - value7, - value8, - value9, - value10, - value11, - value12, - value13, - value14, - value15, - value16, - value17, - value18, - value19, - value20, - value21, - value22, - value23, - value24, - value25 + error, + done, + threadCreated, + threadRunCreated, + threadRunQueued, + threadRunInProgress, + threadRunRequiresAction, + threadRunCompleted, + threadRunIncomplete, + threadRunFailed, + threadRunCancelling, + threadRunCancelled, + threadRunExpired, + threadRunStepCreated, + threadRunStepInProgress, + threadRunStepDelta, + threadRunStepCompleted, + threadRunStepFailed, + threadRunStepCancelled, + threadRunStepExpired, + threadMessageCreated, + threadMessageInProgress, + threadMessageDelta, + threadMessageCompleted, + threadMessageIncomplete ); return result; @@ -238,155 +238,155 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.ErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeInfo); } - else if (value.IsValue2) + else if (value.IsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.DoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Done, typeInfo); } - else if (value.IsValue3) + else if (value.IsThreadCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadCreated, typeInfo); } - else if (value.IsValue4) + else if (value.IsThreadRunCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunCreated, typeInfo); } - else if (value.IsValue5) + else if (value.IsThreadRunQueued) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunQueued, typeInfo); } - else if (value.IsValue6) + else if (value.IsThreadRunInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunInProgress, typeInfo); } - else if (value.IsValue7) + else if (value.IsThreadRunRequiresAction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunRequiresAction, typeInfo); } - else if (value.IsValue8) + else if (value.IsThreadRunCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunCompleted, typeInfo); } - else if (value.IsValue9) + else if (value.IsThreadRunIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunIncomplete, typeInfo); } - else if (value.IsValue10) + else if (value.IsThreadRunFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunFailed, typeInfo); } - else if (value.IsValue11) + else if (value.IsThreadRunCancelling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunCancelling, typeInfo); } - else if (value.IsValue12) + else if (value.IsThreadRunCancelled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunCancelled, typeInfo); } - else if (value.IsValue13) + else if (value.IsThreadRunExpired) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunExpired, typeInfo); } - else if (value.IsValue14) + else if (value.IsThreadRunStepCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepCreated, typeInfo); } - else if (value.IsValue15) + else if (value.IsThreadRunStepInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepInProgress, typeInfo); } - else if (value.IsValue16) + else if (value.IsThreadRunStepDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepDelta, typeInfo); } - else if (value.IsValue17) + else if (value.IsThreadRunStepCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepCompleted, typeInfo); } - else if (value.IsValue18) + else if (value.IsThreadRunStepFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepFailed, typeInfo); } - else if (value.IsValue19) + else if (value.IsThreadRunStepCancelled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepCancelled, typeInfo); } - else if (value.IsValue20) + else if (value.IsThreadRunStepExpired) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadRunStepExpired, typeInfo); } - else if (value.IsValue21) + else if (value.IsThreadMessageCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value21, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadMessageCreated, typeInfo); } - else if (value.IsValue22) + else if (value.IsThreadMessageInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value22, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadMessageInProgress, typeInfo); } - else if (value.IsValue23) + else if (value.IsThreadMessageDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value23, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadMessageDelta, typeInfo); } - else if (value.IsValue24) + else if (value.IsThreadMessageCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant24).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value24, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadMessageCompleted, typeInfo); } - else if (value.IsValue25) + else if (value.IsThreadMessageIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantStreamEventVariant25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantStreamEventVariant25).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value25, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadMessageIncomplete, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs index 9b14c570..68906e90 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs @@ -28,26 +28,26 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.ChatCompletionRequestMessageContentPartText)}"); text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.ChatCompletionRequestMessageContentPartImage? image = default; + global::OpenAI.ChatCompletionRequestMessageContentPartImage? imageUrl = default; if (discriminator?.Type == global::OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.ChatCompletionRequestMessageContentPartImage)}"); - image = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.ChatCompletionRequestMessageContentPartAudio? audio = default; + global::OpenAI.ChatCompletionRequestMessageContentPartAudio? inputAudio = default; if (discriminator?.Type == global::OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminatorType.InputAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.ChatCompletionRequestMessageContentPartAudio)}"); - audio = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ChatCompletionRequestUserMessageContentPart( discriminator?.Type, text, - image, - audio + imageUrl, + inputAudio ); return result; @@ -68,17 +68,17 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } - else if (value.IsImage) + else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo); } - else if (value.IsAudio) + else if (value.IsInputAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudio, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ContentItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ContentItem.g.cs index bf59077d..22192f7c 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ContentItem.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ContentItem.g.cs @@ -21,41 +21,41 @@ public class ContentItemJsonConverter : global::System.Text.Json.Serialization.J throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.MessageDeltaContentImageFileObject? messageDeltaImageFileObject = default; + global::OpenAI.MessageDeltaContentImageFileObject? imageFile = default; if (discriminator?.Type == global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminatorType.ImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentImageFileObject)}"); - messageDeltaImageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageDeltaContentTextObject? messageDeltaTextObject = default; + global::OpenAI.MessageDeltaContentTextObject? text = default; if (discriminator?.Type == global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminatorType.Text) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentTextObject)}"); - messageDeltaTextObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageDeltaContentRefusalObject? messageDeltaRefusalObject = default; + global::OpenAI.MessageDeltaContentRefusalObject? refusal = default; if (discriminator?.Type == global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminatorType.Refusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentRefusalObject)}"); - messageDeltaRefusalObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageDeltaContentImageUrlObject? messageDeltaImageUrlObject = default; + global::OpenAI.MessageDeltaContentImageUrlObject? imageUrl = default; if (discriminator?.Type == global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageDeltaContentImageUrlObject)}"); - messageDeltaImageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ContentItem( discriminator?.Type, - messageDeltaImageFileObject, - messageDeltaTextObject, - messageDeltaRefusalObject, - messageDeltaImageUrlObject + imageFile, + text, + refusal, + imageUrl ); return result; @@ -70,29 +70,29 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsMessageDeltaImageFileObject) + if (value.IsImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentImageFileObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaImageFileObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFile, typeInfo); } - else if (value.IsMessageDeltaTextObject) + else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentTextObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaTextObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } - else if (value.IsMessageDeltaRefusalObject) + else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentRefusalObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaRefusalObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeInfo); } - else if (value.IsMessageDeltaImageUrlObject) + else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageDeltaContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageDeltaContentImageUrlObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageDeltaImageUrlObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ContentItem2.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ContentItem2.g.cs index 5c2b4a07..0381b8c6 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ContentItem2.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ContentItem2.g.cs @@ -21,41 +21,41 @@ public class ContentItem2JsonConverter : global::System.Text.Json.Serialization. throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageObjectContentItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.MessageContentImageFileObject? messageImageFileObject = default; + global::OpenAI.MessageContentImageFileObject? imageFile = default; if (discriminator?.Type == global::OpenAI.MessageObjectContentItemDiscriminatorType.ImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentImageFileObject)}"); - messageImageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageContentImageUrlObject? messageImageUrlObject = default; + global::OpenAI.MessageContentImageUrlObject? imageUrl = default; if (discriminator?.Type == global::OpenAI.MessageObjectContentItemDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentImageUrlObject)}"); - messageImageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageContentTextObject? messageTextObject = default; + global::OpenAI.MessageContentTextObject? text = default; if (discriminator?.Type == global::OpenAI.MessageObjectContentItemDiscriminatorType.Text) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentTextObject)}"); - messageTextObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageContentRefusalObject? messageRefusalObject = default; + global::OpenAI.MessageContentRefusalObject? refusal = default; if (discriminator?.Type == global::OpenAI.MessageObjectContentItemDiscriminatorType.Refusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentRefusalObject)}"); - messageRefusalObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ContentItem2( discriminator?.Type, - messageImageFileObject, - messageImageUrlObject, - messageTextObject, - messageRefusalObject + imageFile, + imageUrl, + text, + refusal ); return result; @@ -70,29 +70,29 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsMessageImageFileObject) + if (value.IsImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentImageFileObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageFileObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFile, typeInfo); } - else if (value.IsMessageImageUrlObject) + else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentImageUrlObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageUrlObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo); } - else if (value.IsMessageTextObject) + else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentTextObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageTextObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } - else if (value.IsMessageRefusalObject) + else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentRefusalObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentRefusalObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageRefusalObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ContentVariant2Item.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ContentVariant2Item.g.cs index 41cc30b1..d2ef5781 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ContentVariant2Item.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ContentVariant2Item.g.cs @@ -21,33 +21,33 @@ public class ContentVariant2ItemJsonConverter : global::System.Text.Json.Seriali throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.MessageContentImageFileObject? messageImageFileObject = default; + global::OpenAI.MessageContentImageFileObject? imageFile = default; if (discriminator?.Type == global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType.ImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentImageFileObject)}"); - messageImageFileObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageContentImageUrlObject? messageImageUrlObject = default; + global::OpenAI.MessageContentImageUrlObject? imageUrl = default; if (discriminator?.Type == global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageContentImageUrlObject)}"); - messageImageUrlObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.MessageRequestContentTextObject? messageRequestTextObject = default; + global::OpenAI.MessageRequestContentTextObject? text = default; if (discriminator?.Type == global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType.Text) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageRequestContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageRequestContentTextObject)}"); - messageRequestTextObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ContentVariant2Item( discriminator?.Type, - messageImageFileObject, - messageImageUrlObject, - messageRequestTextObject + imageFile, + imageUrl, + text ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsMessageImageFileObject) + if (value.IsImageFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageFileObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentImageFileObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageFileObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFile, typeInfo); } - else if (value.IsMessageImageUrlObject) + else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageContentImageUrlObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageContentImageUrlObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageImageUrlObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo); } - else if (value.IsMessageRequestTextObject) + else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.MessageRequestContentTextObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.MessageRequestContentTextObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageRequestTextObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs index 8f284199..237ec404 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -21,25 +21,25 @@ public class CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStr throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1 = default; + global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? auto = default; if (discriminator?.Type == global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType.Auto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1)}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + auto = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 = default; + global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? @static = default; if (discriminator?.Type == global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType.Static) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2)}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( discriminator?.Type, - value1, - value2 + auto, + @static ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsAuto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto, typeInfo); } - else if (value.IsValue2) + else if (value.IsStatic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs index 2e868ec3..c5d69f53 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -21,25 +21,25 @@ public class CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrate throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1 = default; + global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? auto = default; if (discriminator?.Type == global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType.Auto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1)}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + auto = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 = default; + global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? @static = default; if (discriminator?.Type == global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType.Static) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2)}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy( discriminator?.Type, - value1, - value2 + auto, + @static ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsAuto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto, typeInfo); } - else if (value.IsValue2) + else if (value.IsStatic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.CreateVectorStoreRequestChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/JsonConverters.CreateVectorStoreRequestChunkingStrategy.g.cs index 7368b729..e86a52b0 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.CreateVectorStoreRequestChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.CreateVectorStoreRequestChunkingStrategy.g.cs @@ -21,25 +21,25 @@ public class CreateVectorStoreRequestChunkingStrategyJsonConverter : global::Sys throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateVectorStoreRequestChunkingStrategyDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AutoChunkingStrategyRequestParam? autoParam = default; + global::OpenAI.AutoChunkingStrategyRequestParam? auto = default; if (discriminator?.Type == global::OpenAI.CreateVectorStoreRequestChunkingStrategyDiscriminatorType.Auto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AutoChunkingStrategyRequestParam)}"); - autoParam = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + auto = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.StaticChunkingStrategyRequestParam? staticParam = default; + global::OpenAI.StaticChunkingStrategyRequestParam? @static = default; if (discriminator?.Type == global::OpenAI.CreateVectorStoreRequestChunkingStrategyDiscriminatorType.Static) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.StaticChunkingStrategyRequestParam)}"); - staticParam = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.CreateVectorStoreRequestChunkingStrategy( discriminator?.Type, - autoParam, - staticParam + auto, + @static ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAutoParam) + if (value.IsAuto) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AutoChunkingStrategyRequestParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AutoParam, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Auto, typeInfo); } - else if (value.IsStaticParam) + else if (value.IsStatic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.StaticChunkingStrategyRequestParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticParam, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.InputVariant3Item.g.cs b/src/libs/OpenAI/Generated/JsonConverters.InputVariant3Item.g.cs index 5d67dee9..17e088e2 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.InputVariant3Item.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.InputVariant3Item.g.cs @@ -21,25 +21,25 @@ public class InputVariant3ItemJsonConverter : global::System.Text.Json.Serializa throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? value1 = default; + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? imageUrl = default; if (discriminator?.Type == global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminatorType.ImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1)}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? value2 = default; + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? text = default; if (discriminator?.Type == global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminatorType.Text) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2)}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.InputVariant3Item( discriminator?.Type, - value1, - value2 + imageUrl, + text ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeInfo); } - else if (value.IsValue2) + else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem.g.cs index 32fb7753..dd91be4e 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem.g.cs @@ -21,33 +21,33 @@ public class ToolCallsItemJsonConverter : global::System.Text.Json.Serialization throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? runStepDeltaDetailsCodeObject = default; + global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject)}"); - runStepDeltaDetailsCodeObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? runStepDeltaDetailsFileSearchObject = default; + global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? fileSearch = default; if (discriminator?.Type == global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject)}"); - runStepDeltaDetailsFileSearchObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? runStepDeltaDetailsFunctionObject = default; + global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? function = default; if (discriminator?.Type == global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject)}"); - runStepDeltaDetailsFunctionObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolCallsItem( discriminator?.Type, - runStepDeltaDetailsCodeObject, - runStepDeltaDetailsFileSearchObject, - runStepDeltaDetailsFunctionObject + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsRunStepDeltaDetailsCodeObject) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDeltaDetailsCodeObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsRunStepDeltaDetailsFileSearchObject) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDeltaDetailsFileSearchObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsRunStepDeltaDetailsFunctionObject) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDeltaDetailsFunctionObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem2.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem2.g.cs index 758365a5..9b336a2b 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem2.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolCallsItem2.g.cs @@ -21,33 +21,33 @@ public class ToolCallsItem2JsonConverter : global::System.Text.Json.Serializatio throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDetailsToolCallsObjectToolCallDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.RunStepDetailsToolCallsCodeObject? runStepDetailsCodeObject = default; + global::OpenAI.RunStepDetailsToolCallsCodeObject? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.RunStepDetailsToolCallsObjectToolCallDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDetailsToolCallsCodeObject)}"); - runStepDetailsCodeObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.RunStepDetailsToolCallsFileSearchObject? runStepDetailsFileSearchObject = default; + global::OpenAI.RunStepDetailsToolCallsFileSearchObject? fileSearch = default; if (discriminator?.Type == global::OpenAI.RunStepDetailsToolCallsObjectToolCallDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDetailsToolCallsFileSearchObject)}"); - runStepDetailsFileSearchObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.RunStepDetailsToolCallsFunctionObject? runStepDetailsFunctionObject = default; + global::OpenAI.RunStepDetailsToolCallsFunctionObject? function = default; if (discriminator?.Type == global::OpenAI.RunStepDetailsToolCallsObjectToolCallDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunStepDetailsToolCallsFunctionObject)}"); - runStepDetailsFunctionObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolCallsItem2( discriminator?.Type, - runStepDetailsCodeObject, - runStepDetailsFileSearchObject, - runStepDetailsFunctionObject + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsRunStepDetailsCodeObject) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsCodeObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDetailsToolCallsCodeObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDetailsCodeObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsRunStepDetailsFileSearchObject) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsFileSearchObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDetailsToolCallsFileSearchObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDetailsFileSearchObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsRunStepDetailsFunctionObject) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.RunStepDetailsToolCallsFunctionObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.RunStepDetailsToolCallsFunctionObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepDetailsFunctionObject, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem.g.cs index a59224be..534a1fbd 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem.g.cs @@ -21,33 +21,33 @@ public class ToolsItemJsonConverter : global::System.Text.Json.Serialization.Jso throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantObjectToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.AssistantObjectToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.AssistantObjectToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.AssistantObjectToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem2.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem2.g.cs index ff31b078..13aeaa8e 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem2.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem2.g.cs @@ -21,33 +21,33 @@ public class ToolsItem2JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateAssistantRequestToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.CreateAssistantRequestToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.CreateAssistantRequestToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.CreateAssistantRequestToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem2( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem3.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem3.g.cs index 510a871a..b130b991 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem3.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem3.g.cs @@ -21,25 +21,25 @@ public class ToolsItem3JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateMessageRequestAttachmentToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.CreateMessageRequestAttachmentToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly = default; + global::OpenAI.AssistantToolsFileSearchTypeOnly? fileSearch = default; if (discriminator?.Type == global::OpenAI.CreateMessageRequestAttachmentToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearchTypeOnly)}"); - assistantFileSearchTypeOnly = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem3( discriminator?.Type, - assistantCode, - assistantFileSearchTypeOnly + codeInterpreter, + fileSearch ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearchTypeOnly) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearchTypeOnly, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem4.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem4.g.cs index f95f76ac..01c1285b 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem4.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem4.g.cs @@ -21,33 +21,33 @@ public class ToolsItem4JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateRunRequestToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.CreateRunRequestToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.CreateRunRequestToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.CreateRunRequestToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem4( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem5.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem5.g.cs index 7e9f6c4f..740c9b24 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem5.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem5.g.cs @@ -21,33 +21,33 @@ public class ToolsItem5JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.CreateThreadAndRunRequestToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.CreateThreadAndRunRequestToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.CreateThreadAndRunRequestToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.CreateThreadAndRunRequestToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem5( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem6.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem6.g.cs index b04e575b..ef8c4710 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem6.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem6.g.cs @@ -21,25 +21,25 @@ public class ToolsItem6JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.MessageObjectAttachmentToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.MessageObjectAttachmentToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly = default; + global::OpenAI.AssistantToolsFileSearchTypeOnly? fileSearch = default; if (discriminator?.Type == global::OpenAI.MessageObjectAttachmentToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearchTypeOnly)}"); - assistantFileSearchTypeOnly = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem6( discriminator?.Type, - assistantCode, - assistantFileSearchTypeOnly + codeInterpreter, + fileSearch ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearchTypeOnly) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearchTypeOnly, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem7.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem7.g.cs index b8348786..baf8e337 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem7.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem7.g.cs @@ -21,33 +21,33 @@ public class ToolsItem7JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.ModifyAssistantRequestToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.ModifyAssistantRequestToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.ModifyAssistantRequestToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.ModifyAssistantRequestToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem7( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem8.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem8.g.cs index 232d5e97..8e193f9c 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ToolsItem8.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ToolsItem8.g.cs @@ -21,33 +21,33 @@ public class ToolsItem8JsonConverter : global::System.Text.Json.Serialization.Js throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.RunObjectToolDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.AssistantToolsCode? assistantCode = default; + global::OpenAI.AssistantToolsCode? codeInterpreter = default; if (discriminator?.Type == global::OpenAI.RunObjectToolDiscriminatorType.CodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsCode)}"); - assistantCode = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch = default; + global::OpenAI.AssistantToolsFileSearch? fileSearch = default; if (discriminator?.Type == global::OpenAI.RunObjectToolDiscriminatorType.FileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFileSearch)}"); - assistantFileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.AssistantToolsFunction? assistantFunction = default; + global::OpenAI.AssistantToolsFunction? function = default; if (discriminator?.Type == global::OpenAI.RunObjectToolDiscriminatorType.Function) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.AssistantToolsFunction)}"); - assistantFunction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.ToolsItem8( discriminator?.Type, - assistantCode, - assistantFileSearch, - assistantFunction + codeInterpreter, + fileSearch, + function ); return result; @@ -62,23 +62,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsAssistantCode) + if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsCode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsCode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantCode, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter, typeInfo); } - else if (value.IsAssistantFileSearch) + else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFileSearch, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); } - else if (value.IsAssistantFunction) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantToolsFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantToolsFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantFunction, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/JsonConverters.VectorStoreFileObjectChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/JsonConverters.VectorStoreFileObjectChunkingStrategy.g.cs index 6d93033d..96789d8e 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.VectorStoreFileObjectChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.VectorStoreFileObjectChunkingStrategy.g.cs @@ -21,25 +21,25 @@ public class VectorStoreFileObjectChunkingStrategyJsonConverter : global::System throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.VectorStoreFileObjectChunkingStrategyDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::OpenAI.StaticChunkingStrategyResponseParam? staticResponseParam = default; + global::OpenAI.StaticChunkingStrategyResponseParam? @static = default; if (discriminator?.Type == global::OpenAI.VectorStoreFileObjectChunkingStrategyDiscriminatorType.Static) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.StaticChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.StaticChunkingStrategyResponseParam)}"); - staticResponseParam = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + @static = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::OpenAI.OtherChunkingStrategyResponseParam? otherResponseParam = default; + global::OpenAI.OtherChunkingStrategyResponseParam? other = default; if (discriminator?.Type == global::OpenAI.VectorStoreFileObjectChunkingStrategyDiscriminatorType.Other) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.OtherChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenAI.OtherChunkingStrategyResponseParam)}"); - otherResponseParam = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + other = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var result = new global::OpenAI.VectorStoreFileObjectChunkingStrategy( discriminator?.Type, - staticResponseParam, - otherResponseParam + @static, + other ); return result; @@ -54,17 +54,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsStaticResponseParam) + if (value.IsStatic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.StaticChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.StaticChunkingStrategyResponseParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticResponseParam, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static, typeInfo); } - else if (value.IsOtherResponseParam) + else if (value.IsOther) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.OtherChunkingStrategyResponseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.OtherChunkingStrategyResponseParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtherResponseParam, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Other, typeInfo); } } } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs index b47f9b73..88ca20cc 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? MessageContentTextFileCitationObject { get; init; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? FileCitation { get; init; } #else - public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? MessageContentTextFileCitationObject { get; } + public global::OpenAI.MessageContentTextAnnotationsFileCitationObject? FileCitation { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentTextFileCitationObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileCitation))] #endif - public bool IsMessageContentTextFileCitationObject => MessageContentTextFileCitationObject != null; + public bool IsFileCitation => FileCitation != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.MessageContentTextAnnotationsFileCitationObject?(AnnotationsItem @this) => @this.MessageContentTextFileCitationObject; + public static implicit operator global::OpenAI.MessageContentTextAnnotationsFileCitationObject?(AnnotationsItem @this) => @this.FileCitation; /// /// /// public AnnotationsItem(global::OpenAI.MessageContentTextAnnotationsFileCitationObject? value) { - MessageContentTextFileCitationObject = value; + FileCitation = value; } /// /// A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentTextAnnotationsFilePathObject? MessageContentTextFilePathObject { get; init; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObject? FilePath { get; init; } #else - public global::OpenAI.MessageContentTextAnnotationsFilePathObject? MessageContentTextFilePathObject { get; } + public global::OpenAI.MessageContentTextAnnotationsFilePathObject? FilePath { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageContentTextFilePathObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FilePath))] #endif - public bool IsMessageContentTextFilePathObject => MessageContentTextFilePathObject != null; + public bool IsFilePath => FilePath != null; /// /// @@ -75,14 +75,14 @@ public AnnotationsItem(global::OpenAI.MessageContentTextAnnotationsFileCitationO /// /// /// - public static implicit operator global::OpenAI.MessageContentTextAnnotationsFilePathObject?(AnnotationsItem @this) => @this.MessageContentTextFilePathObject; + public static implicit operator global::OpenAI.MessageContentTextAnnotationsFilePathObject?(AnnotationsItem @this) => @this.FilePath; /// /// /// public AnnotationsItem(global::OpenAI.MessageContentTextAnnotationsFilePathObject? value) { - MessageContentTextFilePathObject = value; + FilePath = value; } /// @@ -90,22 +90,22 @@ public AnnotationsItem(global::OpenAI.MessageContentTextAnnotationsFilePathObjec /// public AnnotationsItem( global::OpenAI.MessageContentTextObjectTextAnnotationDiscriminatorType? type, - global::OpenAI.MessageContentTextAnnotationsFileCitationObject? messageContentTextFileCitationObject, - global::OpenAI.MessageContentTextAnnotationsFilePathObject? messageContentTextFilePathObject + global::OpenAI.MessageContentTextAnnotationsFileCitationObject? fileCitation, + global::OpenAI.MessageContentTextAnnotationsFilePathObject? filePath ) { Type = type; - MessageContentTextFileCitationObject = messageContentTextFileCitationObject; - MessageContentTextFilePathObject = messageContentTextFilePathObject; + FileCitation = fileCitation; + FilePath = filePath; } /// /// /// public object? Object => - MessageContentTextFilePathObject as object ?? - MessageContentTextFileCitationObject as object + FilePath as object ?? + FileCitation as object ; /// @@ -113,15 +113,15 @@ MessageContentTextFileCitationObject as object /// public bool Validate() { - return IsMessageContentTextFileCitationObject && !IsMessageContentTextFilePathObject || !IsMessageContentTextFileCitationObject && IsMessageContentTextFilePathObject; + return IsFileCitation && !IsFilePath || !IsFileCitation && IsFilePath; } /// /// /// public TResult? Match( - global::System.Func? messageContentTextFileCitationObject = null, - global::System.Func? messageContentTextFilePathObject = null, + global::System.Func? fileCitation = null, + global::System.Func? filePath = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsMessageContentTextFileCitationObject && messageContentTextFileCitationObject != null) + if (IsFileCitation && fileCitation != null) { - return messageContentTextFileCitationObject(MessageContentTextFileCitationObject!); + return fileCitation(FileCitation!); } - else if (IsMessageContentTextFilePathObject && messageContentTextFilePathObject != null) + else if (IsFilePath && filePath != null) { - return messageContentTextFilePathObject(MessageContentTextFilePathObject!); + return filePath(FilePath!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? messageContentTextFileCitationObject = null, - global::System.Action? messageContentTextFilePathObject = null, + global::System.Action? fileCitation = null, + global::System.Action? filePath = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsMessageContentTextFileCitationObject) + if (IsFileCitation) { - messageContentTextFileCitationObject?.Invoke(MessageContentTextFileCitationObject!); + fileCitation?.Invoke(FileCitation!); } - else if (IsMessageContentTextFilePathObject) + else if (IsFilePath) { - messageContentTextFilePathObject?.Invoke(MessageContentTextFilePathObject!); + filePath?.Invoke(FilePath!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - MessageContentTextFileCitationObject, + FileCitation, typeof(global::OpenAI.MessageContentTextAnnotationsFileCitationObject), - MessageContentTextFilePathObject, + FilePath, typeof(global::OpenAI.MessageContentTextAnnotationsFilePathObject), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AnnotationsItem other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentTextFileCitationObject, other.MessageContentTextFileCitationObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageContentTextFilePathObject, other.MessageContentTextFilePathObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileCitation, other.FileCitation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FilePath, other.FilePath) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs index 0839e1ca..61c2ff8d 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.AnnotationsItem2.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? MessageDeltaContentTextFileCitationObject { get; init; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? FileCitation { get; init; } #else - public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? MessageDeltaContentTextFileCitationObject { get; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? FileCitation { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaContentTextFileCitationObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileCitation))] #endif - public bool IsMessageDeltaContentTextFileCitationObject => MessageDeltaContentTextFileCitationObject != null; + public bool IsFileCitation => FileCitation != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject?(AnnotationsItem2 @this) => @this.MessageDeltaContentTextFileCitationObject; + public static implicit operator global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject?(AnnotationsItem2 @this) => @this.FileCitation; /// /// /// public AnnotationsItem2(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? value) { - MessageDeltaContentTextFileCitationObject = value; + FileCitation = value; } /// /// A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? MessageDeltaContentTextFilePathObject { get; init; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? FilePath { get; init; } #else - public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? MessageDeltaContentTextFilePathObject { get; } + public global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? FilePath { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaContentTextFilePathObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FilePath))] #endif - public bool IsMessageDeltaContentTextFilePathObject => MessageDeltaContentTextFilePathObject != null; + public bool IsFilePath => FilePath != null; /// /// @@ -75,14 +75,14 @@ public AnnotationsItem2(global::OpenAI.MessageDeltaContentTextAnnotationsFileCit /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject?(AnnotationsItem2 @this) => @this.MessageDeltaContentTextFilePathObject; + public static implicit operator global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject?(AnnotationsItem2 @this) => @this.FilePath; /// /// /// public AnnotationsItem2(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? value) { - MessageDeltaContentTextFilePathObject = value; + FilePath = value; } /// @@ -90,22 +90,22 @@ public AnnotationsItem2(global::OpenAI.MessageDeltaContentTextAnnotationsFilePat /// public AnnotationsItem2( global::OpenAI.MessageDeltaContentTextObjectTextAnnotationDiscriminatorType? type, - global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? messageDeltaContentTextFileCitationObject, - global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? messageDeltaContentTextFilePathObject + global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? fileCitation, + global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? filePath ) { Type = type; - MessageDeltaContentTextFileCitationObject = messageDeltaContentTextFileCitationObject; - MessageDeltaContentTextFilePathObject = messageDeltaContentTextFilePathObject; + FileCitation = fileCitation; + FilePath = filePath; } /// /// /// public object? Object => - MessageDeltaContentTextFilePathObject as object ?? - MessageDeltaContentTextFileCitationObject as object + FilePath as object ?? + FileCitation as object ; /// @@ -113,15 +113,15 @@ MessageDeltaContentTextFileCitationObject as object /// public bool Validate() { - return IsMessageDeltaContentTextFileCitationObject && !IsMessageDeltaContentTextFilePathObject || !IsMessageDeltaContentTextFileCitationObject && IsMessageDeltaContentTextFilePathObject; + return IsFileCitation && !IsFilePath || !IsFileCitation && IsFilePath; } /// /// /// public TResult? Match( - global::System.Func? messageDeltaContentTextFileCitationObject = null, - global::System.Func? messageDeltaContentTextFilePathObject = null, + global::System.Func? fileCitation = null, + global::System.Func? filePath = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsMessageDeltaContentTextFileCitationObject && messageDeltaContentTextFileCitationObject != null) + if (IsFileCitation && fileCitation != null) { - return messageDeltaContentTextFileCitationObject(MessageDeltaContentTextFileCitationObject!); + return fileCitation(FileCitation!); } - else if (IsMessageDeltaContentTextFilePathObject && messageDeltaContentTextFilePathObject != null) + else if (IsFilePath && filePath != null) { - return messageDeltaContentTextFilePathObject(MessageDeltaContentTextFilePathObject!); + return filePath(FilePath!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? messageDeltaContentTextFileCitationObject = null, - global::System.Action? messageDeltaContentTextFilePathObject = null, + global::System.Action? fileCitation = null, + global::System.Action? filePath = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsMessageDeltaContentTextFileCitationObject) + if (IsFileCitation) { - messageDeltaContentTextFileCitationObject?.Invoke(MessageDeltaContentTextFileCitationObject!); + fileCitation?.Invoke(FileCitation!); } - else if (IsMessageDeltaContentTextFilePathObject) + else if (IsFilePath) { - messageDeltaContentTextFilePathObject?.Invoke(MessageDeltaContentTextFilePathObject!); + filePath?.Invoke(FilePath!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - MessageDeltaContentTextFileCitationObject, + FileCitation, typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject), - MessageDeltaContentTextFilePathObject, + FilePath, typeof(global::OpenAI.MessageDeltaContentTextAnnotationsFilePathObject), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AnnotationsItem2 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaContentTextFileCitationObject, other.MessageDeltaContentTextFileCitationObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaContentTextFilePathObject, other.MessageDeltaContentTextFilePathObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileCitation, other.FileCitation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FilePath, other.FilePath) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs index 9e4fd534..93a25a2e 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.AssistantStreamEvent.g.cs @@ -33,18 +33,18 @@ namespace OpenAI /// Occurs when an [error](/docs/guides/error-codes/api-errors) occurs. This can happen due to an internal server error or a timeout. /// #if NET6_0_OR_GREATER - public global::OpenAI.ErrorEvent? Value1 { get; init; } + public global::OpenAI.ErrorEvent? Error { get; init; } #else - public global::OpenAI.ErrorEvent? Value1 { get; } + public global::OpenAI.ErrorEvent? Error { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Error))] #endif - public bool IsValue1 => Value1 != null; + public bool IsError => Error != null; /// /// @@ -54,32 +54,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.ErrorEvent?(AssistantStreamEvent @this) => @this.Value1; + public static implicit operator global::OpenAI.ErrorEvent?(AssistantStreamEvent @this) => @this.Error; /// /// /// public AssistantStreamEvent(global::OpenAI.ErrorEvent? value) { - Value1 = value; + Error = value; } /// /// Occurs when a stream ends. /// #if NET6_0_OR_GREATER - public global::OpenAI.DoneEvent? Value2 { get; init; } + public global::OpenAI.DoneEvent? Done { get; init; } #else - public global::OpenAI.DoneEvent? Value2 { get; } + public global::OpenAI.DoneEvent? Done { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Done))] #endif - public bool IsValue2 => Value2 != null; + public bool IsDone => Done != null; /// /// @@ -89,32 +89,32 @@ public AssistantStreamEvent(global::OpenAI.ErrorEvent? value) /// /// /// - public static implicit operator global::OpenAI.DoneEvent?(AssistantStreamEvent @this) => @this.Value2; + public static implicit operator global::OpenAI.DoneEvent?(AssistantStreamEvent @this) => @this.Done; /// /// /// public AssistantStreamEvent(global::OpenAI.DoneEvent? value) { - Value2 = value; + Done = value; } /// /// Occurs when a new [thread](/docs/api-reference/threads/object) is created. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant3? Value3 { get; init; } + public global::OpenAI.AssistantStreamEventVariant3? ThreadCreated { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant3? Value3 { get; } + public global::OpenAI.AssistantStreamEventVariant3? ThreadCreated { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadCreated))] #endif - public bool IsValue3 => Value3 != null; + public bool IsThreadCreated => ThreadCreated != null; /// /// @@ -124,32 +124,32 @@ public AssistantStreamEvent(global::OpenAI.DoneEvent? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant3?(AssistantStreamEvent @this) => @this.Value3; + public static implicit operator global::OpenAI.AssistantStreamEventVariant3?(AssistantStreamEvent @this) => @this.ThreadCreated; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant3? value) { - Value3 = value; + ThreadCreated = value; } /// /// Occurs when a new [run](/docs/api-reference/runs/object) is created. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant4? Value4 { get; init; } + public global::OpenAI.AssistantStreamEventVariant4? ThreadRunCreated { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant4? Value4 { get; } + public global::OpenAI.AssistantStreamEventVariant4? ThreadRunCreated { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunCreated))] #endif - public bool IsValue4 => Value4 != null; + public bool IsThreadRunCreated => ThreadRunCreated != null; /// /// @@ -159,32 +159,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant3? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant4?(AssistantStreamEvent @this) => @this.Value4; + public static implicit operator global::OpenAI.AssistantStreamEventVariant4?(AssistantStreamEvent @this) => @this.ThreadRunCreated; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant4? value) { - Value4 = value; + ThreadRunCreated = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant5? Value5 { get; init; } + public global::OpenAI.AssistantStreamEventVariant5? ThreadRunQueued { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant5? Value5 { get; } + public global::OpenAI.AssistantStreamEventVariant5? ThreadRunQueued { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunQueued))] #endif - public bool IsValue5 => Value5 != null; + public bool IsThreadRunQueued => ThreadRunQueued != null; /// /// @@ -194,32 +194,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant4? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant5?(AssistantStreamEvent @this) => @this.Value5; + public static implicit operator global::OpenAI.AssistantStreamEventVariant5?(AssistantStreamEvent @this) => @this.ThreadRunQueued; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant5? value) { - Value5 = value; + ThreadRunQueued = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant6? Value6 { get; init; } + public global::OpenAI.AssistantStreamEventVariant6? ThreadRunInProgress { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant6? Value6 { get; } + public global::OpenAI.AssistantStreamEventVariant6? ThreadRunInProgress { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunInProgress))] #endif - public bool IsValue6 => Value6 != null; + public bool IsThreadRunInProgress => ThreadRunInProgress != null; /// /// @@ -229,32 +229,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant5? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant6?(AssistantStreamEvent @this) => @this.Value6; + public static implicit operator global::OpenAI.AssistantStreamEventVariant6?(AssistantStreamEvent @this) => @this.ThreadRunInProgress; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant6? value) { - Value6 = value; + ThreadRunInProgress = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant7? Value7 { get; init; } + public global::OpenAI.AssistantStreamEventVariant7? ThreadRunRequiresAction { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant7? Value7 { get; } + public global::OpenAI.AssistantStreamEventVariant7? ThreadRunRequiresAction { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value7))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunRequiresAction))] #endif - public bool IsValue7 => Value7 != null; + public bool IsThreadRunRequiresAction => ThreadRunRequiresAction != null; /// /// @@ -264,32 +264,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant6? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant7?(AssistantStreamEvent @this) => @this.Value7; + public static implicit operator global::OpenAI.AssistantStreamEventVariant7?(AssistantStreamEvent @this) => @this.ThreadRunRequiresAction; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant7? value) { - Value7 = value; + ThreadRunRequiresAction = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) is completed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant8? Value8 { get; init; } + public global::OpenAI.AssistantStreamEventVariant8? ThreadRunCompleted { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant8? Value8 { get; } + public global::OpenAI.AssistantStreamEventVariant8? ThreadRunCompleted { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value8))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunCompleted))] #endif - public bool IsValue8 => Value8 != null; + public bool IsThreadRunCompleted => ThreadRunCompleted != null; /// /// @@ -299,32 +299,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant7? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant8?(AssistantStreamEvent @this) => @this.Value8; + public static implicit operator global::OpenAI.AssistantStreamEventVariant8?(AssistantStreamEvent @this) => @this.ThreadRunCompleted; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant8? value) { - Value8 = value; + ThreadRunCompleted = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant9? Value9 { get; init; } + public global::OpenAI.AssistantStreamEventVariant9? ThreadRunIncomplete { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant9? Value9 { get; } + public global::OpenAI.AssistantStreamEventVariant9? ThreadRunIncomplete { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value9))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunIncomplete))] #endif - public bool IsValue9 => Value9 != null; + public bool IsThreadRunIncomplete => ThreadRunIncomplete != null; /// /// @@ -334,32 +334,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant8? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant9?(AssistantStreamEvent @this) => @this.Value9; + public static implicit operator global::OpenAI.AssistantStreamEventVariant9?(AssistantStreamEvent @this) => @this.ThreadRunIncomplete; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant9? value) { - Value9 = value; + ThreadRunIncomplete = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) fails. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant10? Value10 { get; init; } + public global::OpenAI.AssistantStreamEventVariant10? ThreadRunFailed { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant10? Value10 { get; } + public global::OpenAI.AssistantStreamEventVariant10? ThreadRunFailed { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value10))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunFailed))] #endif - public bool IsValue10 => Value10 != null; + public bool IsThreadRunFailed => ThreadRunFailed != null; /// /// @@ -369,32 +369,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant9? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant10?(AssistantStreamEvent @this) => @this.Value10; + public static implicit operator global::OpenAI.AssistantStreamEventVariant10?(AssistantStreamEvent @this) => @this.ThreadRunFailed; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant10? value) { - Value10 = value; + ThreadRunFailed = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant11? Value11 { get; init; } + public global::OpenAI.AssistantStreamEventVariant11? ThreadRunCancelling { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant11? Value11 { get; } + public global::OpenAI.AssistantStreamEventVariant11? ThreadRunCancelling { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value11))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunCancelling))] #endif - public bool IsValue11 => Value11 != null; + public bool IsThreadRunCancelling => ThreadRunCancelling != null; /// /// @@ -404,32 +404,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant10? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant11?(AssistantStreamEvent @this) => @this.Value11; + public static implicit operator global::OpenAI.AssistantStreamEventVariant11?(AssistantStreamEvent @this) => @this.ThreadRunCancelling; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant11? value) { - Value11 = value; + ThreadRunCancelling = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) is cancelled. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant12? Value12 { get; init; } + public global::OpenAI.AssistantStreamEventVariant12? ThreadRunCancelled { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant12? Value12 { get; } + public global::OpenAI.AssistantStreamEventVariant12? ThreadRunCancelled { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value12))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunCancelled))] #endif - public bool IsValue12 => Value12 != null; + public bool IsThreadRunCancelled => ThreadRunCancelled != null; /// /// @@ -439,32 +439,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant11? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant12?(AssistantStreamEvent @this) => @this.Value12; + public static implicit operator global::OpenAI.AssistantStreamEventVariant12?(AssistantStreamEvent @this) => @this.ThreadRunCancelled; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant12? value) { - Value12 = value; + ThreadRunCancelled = value; } /// /// Occurs when a [run](/docs/api-reference/runs/object) expires. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant13? Value13 { get; init; } + public global::OpenAI.AssistantStreamEventVariant13? ThreadRunExpired { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant13? Value13 { get; } + public global::OpenAI.AssistantStreamEventVariant13? ThreadRunExpired { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value13))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunExpired))] #endif - public bool IsValue13 => Value13 != null; + public bool IsThreadRunExpired => ThreadRunExpired != null; /// /// @@ -474,32 +474,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant12? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant13?(AssistantStreamEvent @this) => @this.Value13; + public static implicit operator global::OpenAI.AssistantStreamEventVariant13?(AssistantStreamEvent @this) => @this.ThreadRunExpired; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant13? value) { - Value13 = value; + ThreadRunExpired = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant14? Value14 { get; init; } + public global::OpenAI.AssistantStreamEventVariant14? ThreadRunStepCreated { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant14? Value14 { get; } + public global::OpenAI.AssistantStreamEventVariant14? ThreadRunStepCreated { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value14))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepCreated))] #endif - public bool IsValue14 => Value14 != null; + public bool IsThreadRunStepCreated => ThreadRunStepCreated != null; /// /// @@ -509,32 +509,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant13? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant14?(AssistantStreamEvent @this) => @this.Value14; + public static implicit operator global::OpenAI.AssistantStreamEventVariant14?(AssistantStreamEvent @this) => @this.ThreadRunStepCreated; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant14? value) { - Value14 = value; + ThreadRunStepCreated = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant15? Value15 { get; init; } + public global::OpenAI.AssistantStreamEventVariant15? ThreadRunStepInProgress { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant15? Value15 { get; } + public global::OpenAI.AssistantStreamEventVariant15? ThreadRunStepInProgress { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value15))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepInProgress))] #endif - public bool IsValue15 => Value15 != null; + public bool IsThreadRunStepInProgress => ThreadRunStepInProgress != null; /// /// @@ -544,32 +544,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant14? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant15?(AssistantStreamEvent @this) => @this.Value15; + public static implicit operator global::OpenAI.AssistantStreamEventVariant15?(AssistantStreamEvent @this) => @this.ThreadRunStepInProgress; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant15? value) { - Value15 = value; + ThreadRunStepInProgress = value; } /// /// Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant16? Value16 { get; init; } + public global::OpenAI.AssistantStreamEventVariant16? ThreadRunStepDelta { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant16? Value16 { get; } + public global::OpenAI.AssistantStreamEventVariant16? ThreadRunStepDelta { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value16))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepDelta))] #endif - public bool IsValue16 => Value16 != null; + public bool IsThreadRunStepDelta => ThreadRunStepDelta != null; /// /// @@ -579,32 +579,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant15? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant16?(AssistantStreamEvent @this) => @this.Value16; + public static implicit operator global::OpenAI.AssistantStreamEventVariant16?(AssistantStreamEvent @this) => @this.ThreadRunStepDelta; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant16? value) { - Value16 = value; + ThreadRunStepDelta = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant17? Value17 { get; init; } + public global::OpenAI.AssistantStreamEventVariant17? ThreadRunStepCompleted { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant17? Value17 { get; } + public global::OpenAI.AssistantStreamEventVariant17? ThreadRunStepCompleted { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value17))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepCompleted))] #endif - public bool IsValue17 => Value17 != null; + public bool IsThreadRunStepCompleted => ThreadRunStepCompleted != null; /// /// @@ -614,32 +614,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant16? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant17?(AssistantStreamEvent @this) => @this.Value17; + public static implicit operator global::OpenAI.AssistantStreamEventVariant17?(AssistantStreamEvent @this) => @this.ThreadRunStepCompleted; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant17? value) { - Value17 = value; + ThreadRunStepCompleted = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant18? Value18 { get; init; } + public global::OpenAI.AssistantStreamEventVariant18? ThreadRunStepFailed { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant18? Value18 { get; } + public global::OpenAI.AssistantStreamEventVariant18? ThreadRunStepFailed { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value18))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepFailed))] #endif - public bool IsValue18 => Value18 != null; + public bool IsThreadRunStepFailed => ThreadRunStepFailed != null; /// /// @@ -649,32 +649,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant17? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant18?(AssistantStreamEvent @this) => @this.Value18; + public static implicit operator global::OpenAI.AssistantStreamEventVariant18?(AssistantStreamEvent @this) => @this.ThreadRunStepFailed; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant18? value) { - Value18 = value; + ThreadRunStepFailed = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant19? Value19 { get; init; } + public global::OpenAI.AssistantStreamEventVariant19? ThreadRunStepCancelled { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant19? Value19 { get; } + public global::OpenAI.AssistantStreamEventVariant19? ThreadRunStepCancelled { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value19))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepCancelled))] #endif - public bool IsValue19 => Value19 != null; + public bool IsThreadRunStepCancelled => ThreadRunStepCancelled != null; /// /// @@ -684,32 +684,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant18? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant19?(AssistantStreamEvent @this) => @this.Value19; + public static implicit operator global::OpenAI.AssistantStreamEventVariant19?(AssistantStreamEvent @this) => @this.ThreadRunStepCancelled; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant19? value) { - Value19 = value; + ThreadRunStepCancelled = value; } /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant20? Value20 { get; init; } + public global::OpenAI.AssistantStreamEventVariant20? ThreadRunStepExpired { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant20? Value20 { get; } + public global::OpenAI.AssistantStreamEventVariant20? ThreadRunStepExpired { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value20))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadRunStepExpired))] #endif - public bool IsValue20 => Value20 != null; + public bool IsThreadRunStepExpired => ThreadRunStepExpired != null; /// /// @@ -719,32 +719,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant19? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant20?(AssistantStreamEvent @this) => @this.Value20; + public static implicit operator global::OpenAI.AssistantStreamEventVariant20?(AssistantStreamEvent @this) => @this.ThreadRunStepExpired; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant20? value) { - Value20 = value; + ThreadRunStepExpired = value; } /// /// Occurs when a [message](/docs/api-reference/messages/object) is created. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant21? Value21 { get; init; } + public global::OpenAI.AssistantStreamEventVariant21? ThreadMessageCreated { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant21? Value21 { get; } + public global::OpenAI.AssistantStreamEventVariant21? ThreadMessageCreated { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value21))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadMessageCreated))] #endif - public bool IsValue21 => Value21 != null; + public bool IsThreadMessageCreated => ThreadMessageCreated != null; /// /// @@ -754,32 +754,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant20? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant21?(AssistantStreamEvent @this) => @this.Value21; + public static implicit operator global::OpenAI.AssistantStreamEventVariant21?(AssistantStreamEvent @this) => @this.ThreadMessageCreated; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant21? value) { - Value21 = value; + ThreadMessageCreated = value; } /// /// Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant22? Value22 { get; init; } + public global::OpenAI.AssistantStreamEventVariant22? ThreadMessageInProgress { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant22? Value22 { get; } + public global::OpenAI.AssistantStreamEventVariant22? ThreadMessageInProgress { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value22))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadMessageInProgress))] #endif - public bool IsValue22 => Value22 != null; + public bool IsThreadMessageInProgress => ThreadMessageInProgress != null; /// /// @@ -789,32 +789,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant21? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant22?(AssistantStreamEvent @this) => @this.Value22; + public static implicit operator global::OpenAI.AssistantStreamEventVariant22?(AssistantStreamEvent @this) => @this.ThreadMessageInProgress; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant22? value) { - Value22 = value; + ThreadMessageInProgress = value; } /// /// Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant23? Value23 { get; init; } + public global::OpenAI.AssistantStreamEventVariant23? ThreadMessageDelta { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant23? Value23 { get; } + public global::OpenAI.AssistantStreamEventVariant23? ThreadMessageDelta { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value23))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadMessageDelta))] #endif - public bool IsValue23 => Value23 != null; + public bool IsThreadMessageDelta => ThreadMessageDelta != null; /// /// @@ -824,32 +824,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant22? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant23?(AssistantStreamEvent @this) => @this.Value23; + public static implicit operator global::OpenAI.AssistantStreamEventVariant23?(AssistantStreamEvent @this) => @this.ThreadMessageDelta; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant23? value) { - Value23 = value; + ThreadMessageDelta = value; } /// /// Occurs when a [message](/docs/api-reference/messages/object) is completed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant24? Value24 { get; init; } + public global::OpenAI.AssistantStreamEventVariant24? ThreadMessageCompleted { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant24? Value24 { get; } + public global::OpenAI.AssistantStreamEventVariant24? ThreadMessageCompleted { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value24))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadMessageCompleted))] #endif - public bool IsValue24 => Value24 != null; + public bool IsThreadMessageCompleted => ThreadMessageCompleted != null; /// /// @@ -859,32 +859,32 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant23? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant24?(AssistantStreamEvent @this) => @this.Value24; + public static implicit operator global::OpenAI.AssistantStreamEventVariant24?(AssistantStreamEvent @this) => @this.ThreadMessageCompleted; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant24? value) { - Value24 = value; + ThreadMessageCompleted = value; } /// /// Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed. /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantStreamEventVariant25? Value25 { get; init; } + public global::OpenAI.AssistantStreamEventVariant25? ThreadMessageIncomplete { get; init; } #else - public global::OpenAI.AssistantStreamEventVariant25? Value25 { get; } + public global::OpenAI.AssistantStreamEventVariant25? ThreadMessageIncomplete { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value25))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadMessageIncomplete))] #endif - public bool IsValue25 => Value25 != null; + public bool IsThreadMessageIncomplete => ThreadMessageIncomplete != null; /// /// @@ -894,14 +894,14 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant24? value) /// /// /// - public static implicit operator global::OpenAI.AssistantStreamEventVariant25?(AssistantStreamEvent @this) => @this.Value25; + public static implicit operator global::OpenAI.AssistantStreamEventVariant25?(AssistantStreamEvent @this) => @this.ThreadMessageIncomplete; /// /// /// public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant25? value) { - Value25 = value; + ThreadMessageIncomplete = value; } /// @@ -909,91 +909,91 @@ public AssistantStreamEvent(global::OpenAI.AssistantStreamEventVariant25? value) /// public AssistantStreamEvent( global::OpenAI.AssistantStreamEventDiscriminatorEvent? @event, - global::OpenAI.ErrorEvent? value1, - global::OpenAI.DoneEvent? value2, - global::OpenAI.AssistantStreamEventVariant3? value3, - global::OpenAI.AssistantStreamEventVariant4? value4, - global::OpenAI.AssistantStreamEventVariant5? value5, - global::OpenAI.AssistantStreamEventVariant6? value6, - global::OpenAI.AssistantStreamEventVariant7? value7, - global::OpenAI.AssistantStreamEventVariant8? value8, - global::OpenAI.AssistantStreamEventVariant9? value9, - global::OpenAI.AssistantStreamEventVariant10? value10, - global::OpenAI.AssistantStreamEventVariant11? value11, - global::OpenAI.AssistantStreamEventVariant12? value12, - global::OpenAI.AssistantStreamEventVariant13? value13, - global::OpenAI.AssistantStreamEventVariant14? value14, - global::OpenAI.AssistantStreamEventVariant15? value15, - global::OpenAI.AssistantStreamEventVariant16? value16, - global::OpenAI.AssistantStreamEventVariant17? value17, - global::OpenAI.AssistantStreamEventVariant18? value18, - global::OpenAI.AssistantStreamEventVariant19? value19, - global::OpenAI.AssistantStreamEventVariant20? value20, - global::OpenAI.AssistantStreamEventVariant21? value21, - global::OpenAI.AssistantStreamEventVariant22? value22, - global::OpenAI.AssistantStreamEventVariant23? value23, - global::OpenAI.AssistantStreamEventVariant24? value24, - global::OpenAI.AssistantStreamEventVariant25? value25 + global::OpenAI.ErrorEvent? error, + global::OpenAI.DoneEvent? done, + global::OpenAI.AssistantStreamEventVariant3? threadCreated, + global::OpenAI.AssistantStreamEventVariant4? threadRunCreated, + global::OpenAI.AssistantStreamEventVariant5? threadRunQueued, + global::OpenAI.AssistantStreamEventVariant6? threadRunInProgress, + global::OpenAI.AssistantStreamEventVariant7? threadRunRequiresAction, + global::OpenAI.AssistantStreamEventVariant8? threadRunCompleted, + global::OpenAI.AssistantStreamEventVariant9? threadRunIncomplete, + global::OpenAI.AssistantStreamEventVariant10? threadRunFailed, + global::OpenAI.AssistantStreamEventVariant11? threadRunCancelling, + global::OpenAI.AssistantStreamEventVariant12? threadRunCancelled, + global::OpenAI.AssistantStreamEventVariant13? threadRunExpired, + global::OpenAI.AssistantStreamEventVariant14? threadRunStepCreated, + global::OpenAI.AssistantStreamEventVariant15? threadRunStepInProgress, + global::OpenAI.AssistantStreamEventVariant16? threadRunStepDelta, + global::OpenAI.AssistantStreamEventVariant17? threadRunStepCompleted, + global::OpenAI.AssistantStreamEventVariant18? threadRunStepFailed, + global::OpenAI.AssistantStreamEventVariant19? threadRunStepCancelled, + global::OpenAI.AssistantStreamEventVariant20? threadRunStepExpired, + global::OpenAI.AssistantStreamEventVariant21? threadMessageCreated, + global::OpenAI.AssistantStreamEventVariant22? threadMessageInProgress, + global::OpenAI.AssistantStreamEventVariant23? threadMessageDelta, + global::OpenAI.AssistantStreamEventVariant24? threadMessageCompleted, + global::OpenAI.AssistantStreamEventVariant25? threadMessageIncomplete ) { Event = @event; - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - Value6 = value6; - Value7 = value7; - Value8 = value8; - Value9 = value9; - Value10 = value10; - Value11 = value11; - Value12 = value12; - Value13 = value13; - Value14 = value14; - Value15 = value15; - Value16 = value16; - Value17 = value17; - Value18 = value18; - Value19 = value19; - Value20 = value20; - Value21 = value21; - Value22 = value22; - Value23 = value23; - Value24 = value24; - Value25 = value25; + Error = error; + Done = done; + ThreadCreated = threadCreated; + ThreadRunCreated = threadRunCreated; + ThreadRunQueued = threadRunQueued; + ThreadRunInProgress = threadRunInProgress; + ThreadRunRequiresAction = threadRunRequiresAction; + ThreadRunCompleted = threadRunCompleted; + ThreadRunIncomplete = threadRunIncomplete; + ThreadRunFailed = threadRunFailed; + ThreadRunCancelling = threadRunCancelling; + ThreadRunCancelled = threadRunCancelled; + ThreadRunExpired = threadRunExpired; + ThreadRunStepCreated = threadRunStepCreated; + ThreadRunStepInProgress = threadRunStepInProgress; + ThreadRunStepDelta = threadRunStepDelta; + ThreadRunStepCompleted = threadRunStepCompleted; + ThreadRunStepFailed = threadRunStepFailed; + ThreadRunStepCancelled = threadRunStepCancelled; + ThreadRunStepExpired = threadRunStepExpired; + ThreadMessageCreated = threadMessageCreated; + ThreadMessageInProgress = threadMessageInProgress; + ThreadMessageDelta = threadMessageDelta; + ThreadMessageCompleted = threadMessageCompleted; + ThreadMessageIncomplete = threadMessageIncomplete; } /// /// /// public object? Object => - Value25 as object ?? - Value24 as object ?? - Value23 as object ?? - Value22 as object ?? - Value21 as object ?? - Value20 as object ?? - Value19 as object ?? - Value18 as object ?? - Value17 as object ?? - Value16 as object ?? - Value15 as object ?? - Value14 as object ?? - Value13 as object ?? - Value12 as object ?? - Value11 as object ?? - Value10 as object ?? - Value9 as object ?? - Value8 as object ?? - Value7 as object ?? - Value6 as object ?? - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + ThreadMessageIncomplete as object ?? + ThreadMessageCompleted as object ?? + ThreadMessageDelta as object ?? + ThreadMessageInProgress as object ?? + ThreadMessageCreated as object ?? + ThreadRunStepExpired as object ?? + ThreadRunStepCancelled as object ?? + ThreadRunStepFailed as object ?? + ThreadRunStepCompleted as object ?? + ThreadRunStepDelta as object ?? + ThreadRunStepInProgress as object ?? + ThreadRunStepCreated as object ?? + ThreadRunExpired as object ?? + ThreadRunCancelled as object ?? + ThreadRunCancelling as object ?? + ThreadRunFailed as object ?? + ThreadRunIncomplete as object ?? + ThreadRunCompleted as object ?? + ThreadRunRequiresAction as object ?? + ThreadRunInProgress as object ?? + ThreadRunQueued as object ?? + ThreadRunCreated as object ?? + ThreadCreated as object ?? + Done as object ?? + Error as object ; /// @@ -1001,38 +1001,38 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && IsValue22 && !IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && IsValue23 && !IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && IsValue24 && !IsValue25 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 && !IsValue16 && !IsValue17 && !IsValue18 && !IsValue19 && !IsValue20 && !IsValue21 && !IsValue22 && !IsValue23 && !IsValue24 && IsValue25; + return IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && IsThreadMessageDelta && !IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && IsThreadMessageCompleted && !IsThreadMessageIncomplete || !IsError && !IsDone && !IsThreadCreated && !IsThreadRunCreated && !IsThreadRunQueued && !IsThreadRunInProgress && !IsThreadRunRequiresAction && !IsThreadRunCompleted && !IsThreadRunIncomplete && !IsThreadRunFailed && !IsThreadRunCancelling && !IsThreadRunCancelled && !IsThreadRunExpired && !IsThreadRunStepCreated && !IsThreadRunStepInProgress && !IsThreadRunStepDelta && !IsThreadRunStepCompleted && !IsThreadRunStepFailed && !IsThreadRunStepCancelled && !IsThreadRunStepExpired && !IsThreadMessageCreated && !IsThreadMessageInProgress && !IsThreadMessageDelta && !IsThreadMessageCompleted && IsThreadMessageIncomplete; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - global::System.Func? value6 = null, - global::System.Func? value7 = null, - global::System.Func? value8 = null, - global::System.Func? value9 = null, - global::System.Func? value10 = null, - global::System.Func? value11 = null, - global::System.Func? value12 = null, - global::System.Func? value13 = null, - global::System.Func? value14 = null, - global::System.Func? value15 = null, - global::System.Func? value16 = null, - global::System.Func? value17 = null, - global::System.Func? value18 = null, - global::System.Func? value19 = null, - global::System.Func? value20 = null, - global::System.Func? value21 = null, - global::System.Func? value22 = null, - global::System.Func? value23 = null, - global::System.Func? value24 = null, - global::System.Func? value25 = null, + global::System.Func? error = null, + global::System.Func? done = null, + global::System.Func? threadCreated = null, + global::System.Func? threadRunCreated = null, + global::System.Func? threadRunQueued = null, + global::System.Func? threadRunInProgress = null, + global::System.Func? threadRunRequiresAction = null, + global::System.Func? threadRunCompleted = null, + global::System.Func? threadRunIncomplete = null, + global::System.Func? threadRunFailed = null, + global::System.Func? threadRunCancelling = null, + global::System.Func? threadRunCancelled = null, + global::System.Func? threadRunExpired = null, + global::System.Func? threadRunStepCreated = null, + global::System.Func? threadRunStepInProgress = null, + global::System.Func? threadRunStepDelta = null, + global::System.Func? threadRunStepCompleted = null, + global::System.Func? threadRunStepFailed = null, + global::System.Func? threadRunStepCancelled = null, + global::System.Func? threadRunStepExpired = null, + global::System.Func? threadMessageCreated = null, + global::System.Func? threadMessageInProgress = null, + global::System.Func? threadMessageDelta = null, + global::System.Func? threadMessageCompleted = null, + global::System.Func? threadMessageIncomplete = null, bool validate = true) { if (validate) @@ -1040,105 +1040,105 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsError && error != null) { - return value1(Value1!); + return error(Error!); } - else if (IsValue2 && value2 != null) + else if (IsDone && done != null) { - return value2(Value2!); + return done(Done!); } - else if (IsValue3 && value3 != null) + else if (IsThreadCreated && threadCreated != null) { - return value3(Value3!); + return threadCreated(ThreadCreated!); } - else if (IsValue4 && value4 != null) + else if (IsThreadRunCreated && threadRunCreated != null) { - return value4(Value4!); + return threadRunCreated(ThreadRunCreated!); } - else if (IsValue5 && value5 != null) + else if (IsThreadRunQueued && threadRunQueued != null) { - return value5(Value5!); + return threadRunQueued(ThreadRunQueued!); } - else if (IsValue6 && value6 != null) + else if (IsThreadRunInProgress && threadRunInProgress != null) { - return value6(Value6!); + return threadRunInProgress(ThreadRunInProgress!); } - else if (IsValue7 && value7 != null) + else if (IsThreadRunRequiresAction && threadRunRequiresAction != null) { - return value7(Value7!); + return threadRunRequiresAction(ThreadRunRequiresAction!); } - else if (IsValue8 && value8 != null) + else if (IsThreadRunCompleted && threadRunCompleted != null) { - return value8(Value8!); + return threadRunCompleted(ThreadRunCompleted!); } - else if (IsValue9 && value9 != null) + else if (IsThreadRunIncomplete && threadRunIncomplete != null) { - return value9(Value9!); + return threadRunIncomplete(ThreadRunIncomplete!); } - else if (IsValue10 && value10 != null) + else if (IsThreadRunFailed && threadRunFailed != null) { - return value10(Value10!); + return threadRunFailed(ThreadRunFailed!); } - else if (IsValue11 && value11 != null) + else if (IsThreadRunCancelling && threadRunCancelling != null) { - return value11(Value11!); + return threadRunCancelling(ThreadRunCancelling!); } - else if (IsValue12 && value12 != null) + else if (IsThreadRunCancelled && threadRunCancelled != null) { - return value12(Value12!); + return threadRunCancelled(ThreadRunCancelled!); } - else if (IsValue13 && value13 != null) + else if (IsThreadRunExpired && threadRunExpired != null) { - return value13(Value13!); + return threadRunExpired(ThreadRunExpired!); } - else if (IsValue14 && value14 != null) + else if (IsThreadRunStepCreated && threadRunStepCreated != null) { - return value14(Value14!); + return threadRunStepCreated(ThreadRunStepCreated!); } - else if (IsValue15 && value15 != null) + else if (IsThreadRunStepInProgress && threadRunStepInProgress != null) { - return value15(Value15!); + return threadRunStepInProgress(ThreadRunStepInProgress!); } - else if (IsValue16 && value16 != null) + else if (IsThreadRunStepDelta && threadRunStepDelta != null) { - return value16(Value16!); + return threadRunStepDelta(ThreadRunStepDelta!); } - else if (IsValue17 && value17 != null) + else if (IsThreadRunStepCompleted && threadRunStepCompleted != null) { - return value17(Value17!); + return threadRunStepCompleted(ThreadRunStepCompleted!); } - else if (IsValue18 && value18 != null) + else if (IsThreadRunStepFailed && threadRunStepFailed != null) { - return value18(Value18!); + return threadRunStepFailed(ThreadRunStepFailed!); } - else if (IsValue19 && value19 != null) + else if (IsThreadRunStepCancelled && threadRunStepCancelled != null) { - return value19(Value19!); + return threadRunStepCancelled(ThreadRunStepCancelled!); } - else if (IsValue20 && value20 != null) + else if (IsThreadRunStepExpired && threadRunStepExpired != null) { - return value20(Value20!); + return threadRunStepExpired(ThreadRunStepExpired!); } - else if (IsValue21 && value21 != null) + else if (IsThreadMessageCreated && threadMessageCreated != null) { - return value21(Value21!); + return threadMessageCreated(ThreadMessageCreated!); } - else if (IsValue22 && value22 != null) + else if (IsThreadMessageInProgress && threadMessageInProgress != null) { - return value22(Value22!); + return threadMessageInProgress(ThreadMessageInProgress!); } - else if (IsValue23 && value23 != null) + else if (IsThreadMessageDelta && threadMessageDelta != null) { - return value23(Value23!); + return threadMessageDelta(ThreadMessageDelta!); } - else if (IsValue24 && value24 != null) + else if (IsThreadMessageCompleted && threadMessageCompleted != null) { - return value24(Value24!); + return threadMessageCompleted(ThreadMessageCompleted!); } - else if (IsValue25 && value25 != null) + else if (IsThreadMessageIncomplete && threadMessageIncomplete != null) { - return value25(Value25!); + return threadMessageIncomplete(ThreadMessageIncomplete!); } return default(TResult); @@ -1148,31 +1148,31 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - global::System.Action? value6 = null, - global::System.Action? value7 = null, - global::System.Action? value8 = null, - global::System.Action? value9 = null, - global::System.Action? value10 = null, - global::System.Action? value11 = null, - global::System.Action? value12 = null, - global::System.Action? value13 = null, - global::System.Action? value14 = null, - global::System.Action? value15 = null, - global::System.Action? value16 = null, - global::System.Action? value17 = null, - global::System.Action? value18 = null, - global::System.Action? value19 = null, - global::System.Action? value20 = null, - global::System.Action? value21 = null, - global::System.Action? value22 = null, - global::System.Action? value23 = null, - global::System.Action? value24 = null, - global::System.Action? value25 = null, + global::System.Action? error = null, + global::System.Action? done = null, + global::System.Action? threadCreated = null, + global::System.Action? threadRunCreated = null, + global::System.Action? threadRunQueued = null, + global::System.Action? threadRunInProgress = null, + global::System.Action? threadRunRequiresAction = null, + global::System.Action? threadRunCompleted = null, + global::System.Action? threadRunIncomplete = null, + global::System.Action? threadRunFailed = null, + global::System.Action? threadRunCancelling = null, + global::System.Action? threadRunCancelled = null, + global::System.Action? threadRunExpired = null, + global::System.Action? threadRunStepCreated = null, + global::System.Action? threadRunStepInProgress = null, + global::System.Action? threadRunStepDelta = null, + global::System.Action? threadRunStepCompleted = null, + global::System.Action? threadRunStepFailed = null, + global::System.Action? threadRunStepCancelled = null, + global::System.Action? threadRunStepExpired = null, + global::System.Action? threadMessageCreated = null, + global::System.Action? threadMessageInProgress = null, + global::System.Action? threadMessageDelta = null, + global::System.Action? threadMessageCompleted = null, + global::System.Action? threadMessageIncomplete = null, bool validate = true) { if (validate) @@ -1180,105 +1180,105 @@ public void Match( Validate(); } - if (IsValue1) + if (IsError) { - value1?.Invoke(Value1!); + error?.Invoke(Error!); } - else if (IsValue2) + else if (IsDone) { - value2?.Invoke(Value2!); + done?.Invoke(Done!); } - else if (IsValue3) + else if (IsThreadCreated) { - value3?.Invoke(Value3!); + threadCreated?.Invoke(ThreadCreated!); } - else if (IsValue4) + else if (IsThreadRunCreated) { - value4?.Invoke(Value4!); + threadRunCreated?.Invoke(ThreadRunCreated!); } - else if (IsValue5) + else if (IsThreadRunQueued) { - value5?.Invoke(Value5!); + threadRunQueued?.Invoke(ThreadRunQueued!); } - else if (IsValue6) + else if (IsThreadRunInProgress) { - value6?.Invoke(Value6!); + threadRunInProgress?.Invoke(ThreadRunInProgress!); } - else if (IsValue7) + else if (IsThreadRunRequiresAction) { - value7?.Invoke(Value7!); + threadRunRequiresAction?.Invoke(ThreadRunRequiresAction!); } - else if (IsValue8) + else if (IsThreadRunCompleted) { - value8?.Invoke(Value8!); + threadRunCompleted?.Invoke(ThreadRunCompleted!); } - else if (IsValue9) + else if (IsThreadRunIncomplete) { - value9?.Invoke(Value9!); + threadRunIncomplete?.Invoke(ThreadRunIncomplete!); } - else if (IsValue10) + else if (IsThreadRunFailed) { - value10?.Invoke(Value10!); + threadRunFailed?.Invoke(ThreadRunFailed!); } - else if (IsValue11) + else if (IsThreadRunCancelling) { - value11?.Invoke(Value11!); + threadRunCancelling?.Invoke(ThreadRunCancelling!); } - else if (IsValue12) + else if (IsThreadRunCancelled) { - value12?.Invoke(Value12!); + threadRunCancelled?.Invoke(ThreadRunCancelled!); } - else if (IsValue13) + else if (IsThreadRunExpired) { - value13?.Invoke(Value13!); + threadRunExpired?.Invoke(ThreadRunExpired!); } - else if (IsValue14) + else if (IsThreadRunStepCreated) { - value14?.Invoke(Value14!); + threadRunStepCreated?.Invoke(ThreadRunStepCreated!); } - else if (IsValue15) + else if (IsThreadRunStepInProgress) { - value15?.Invoke(Value15!); + threadRunStepInProgress?.Invoke(ThreadRunStepInProgress!); } - else if (IsValue16) + else if (IsThreadRunStepDelta) { - value16?.Invoke(Value16!); + threadRunStepDelta?.Invoke(ThreadRunStepDelta!); } - else if (IsValue17) + else if (IsThreadRunStepCompleted) { - value17?.Invoke(Value17!); + threadRunStepCompleted?.Invoke(ThreadRunStepCompleted!); } - else if (IsValue18) + else if (IsThreadRunStepFailed) { - value18?.Invoke(Value18!); + threadRunStepFailed?.Invoke(ThreadRunStepFailed!); } - else if (IsValue19) + else if (IsThreadRunStepCancelled) { - value19?.Invoke(Value19!); + threadRunStepCancelled?.Invoke(ThreadRunStepCancelled!); } - else if (IsValue20) + else if (IsThreadRunStepExpired) { - value20?.Invoke(Value20!); + threadRunStepExpired?.Invoke(ThreadRunStepExpired!); } - else if (IsValue21) + else if (IsThreadMessageCreated) { - value21?.Invoke(Value21!); + threadMessageCreated?.Invoke(ThreadMessageCreated!); } - else if (IsValue22) + else if (IsThreadMessageInProgress) { - value22?.Invoke(Value22!); + threadMessageInProgress?.Invoke(ThreadMessageInProgress!); } - else if (IsValue23) + else if (IsThreadMessageDelta) { - value23?.Invoke(Value23!); + threadMessageDelta?.Invoke(ThreadMessageDelta!); } - else if (IsValue24) + else if (IsThreadMessageCompleted) { - value24?.Invoke(Value24!); + threadMessageCompleted?.Invoke(ThreadMessageCompleted!); } - else if (IsValue25) + else if (IsThreadMessageIncomplete) { - value25?.Invoke(Value25!); + threadMessageIncomplete?.Invoke(ThreadMessageIncomplete!); } } @@ -1289,55 +1289,55 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Error, typeof(global::OpenAI.ErrorEvent), - Value2, + Done, typeof(global::OpenAI.DoneEvent), - Value3, + ThreadCreated, typeof(global::OpenAI.AssistantStreamEventVariant3), - Value4, + ThreadRunCreated, typeof(global::OpenAI.AssistantStreamEventVariant4), - Value5, + ThreadRunQueued, typeof(global::OpenAI.AssistantStreamEventVariant5), - Value6, + ThreadRunInProgress, typeof(global::OpenAI.AssistantStreamEventVariant6), - Value7, + ThreadRunRequiresAction, typeof(global::OpenAI.AssistantStreamEventVariant7), - Value8, + ThreadRunCompleted, typeof(global::OpenAI.AssistantStreamEventVariant8), - Value9, + ThreadRunIncomplete, typeof(global::OpenAI.AssistantStreamEventVariant9), - Value10, + ThreadRunFailed, typeof(global::OpenAI.AssistantStreamEventVariant10), - Value11, + ThreadRunCancelling, typeof(global::OpenAI.AssistantStreamEventVariant11), - Value12, + ThreadRunCancelled, typeof(global::OpenAI.AssistantStreamEventVariant12), - Value13, + ThreadRunExpired, typeof(global::OpenAI.AssistantStreamEventVariant13), - Value14, + ThreadRunStepCreated, typeof(global::OpenAI.AssistantStreamEventVariant14), - Value15, + ThreadRunStepInProgress, typeof(global::OpenAI.AssistantStreamEventVariant15), - Value16, + ThreadRunStepDelta, typeof(global::OpenAI.AssistantStreamEventVariant16), - Value17, + ThreadRunStepCompleted, typeof(global::OpenAI.AssistantStreamEventVariant17), - Value18, + ThreadRunStepFailed, typeof(global::OpenAI.AssistantStreamEventVariant18), - Value19, + ThreadRunStepCancelled, typeof(global::OpenAI.AssistantStreamEventVariant19), - Value20, + ThreadRunStepExpired, typeof(global::OpenAI.AssistantStreamEventVariant20), - Value21, + ThreadMessageCreated, typeof(global::OpenAI.AssistantStreamEventVariant21), - Value22, + ThreadMessageInProgress, typeof(global::OpenAI.AssistantStreamEventVariant22), - Value23, + ThreadMessageDelta, typeof(global::OpenAI.AssistantStreamEventVariant23), - Value24, + ThreadMessageCompleted, typeof(global::OpenAI.AssistantStreamEventVariant24), - Value25, + ThreadMessageIncomplete, typeof(global::OpenAI.AssistantStreamEventVariant25), }; const int offset = unchecked((int)2166136261); @@ -1354,31 +1354,31 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AssistantStreamEvent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value8, other.Value8) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value9, other.Value9) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value10, other.Value10) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value11, other.Value11) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value12, other.Value12) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value13, other.Value13) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value14, other.Value14) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value15, other.Value15) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value16, other.Value16) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value17, other.Value17) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value18, other.Value18) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value19, other.Value19) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value20, other.Value20) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value21, other.Value21) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value22, other.Value22) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value23, other.Value23) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value24, other.Value24) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value25, other.Value25) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Error, other.Error) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Done, other.Done) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadCreated, other.ThreadCreated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunCreated, other.ThreadRunCreated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunQueued, other.ThreadRunQueued) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunInProgress, other.ThreadRunInProgress) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunRequiresAction, other.ThreadRunRequiresAction) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunCompleted, other.ThreadRunCompleted) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunIncomplete, other.ThreadRunIncomplete) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunFailed, other.ThreadRunFailed) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunCancelling, other.ThreadRunCancelling) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunCancelled, other.ThreadRunCancelled) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunExpired, other.ThreadRunExpired) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepCreated, other.ThreadRunStepCreated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepInProgress, other.ThreadRunStepInProgress) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepDelta, other.ThreadRunStepDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepCompleted, other.ThreadRunStepCompleted) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepFailed, other.ThreadRunStepFailed) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepCancelled, other.ThreadRunStepCancelled) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadRunStepExpired, other.ThreadRunStepExpired) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadMessageCreated, other.ThreadMessageCreated) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadMessageInProgress, other.ThreadMessageInProgress) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadMessageDelta, other.ThreadMessageDelta) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadMessageCompleted, other.ThreadMessageCompleted) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadMessageIncomplete, other.ThreadMessageIncomplete) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs index 8ab05066..6e16fa9e 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs @@ -54,18 +54,18 @@ public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletion /// Learn about [image inputs](/docs/guides/vision). /// #if NET6_0_OR_GREATER - public global::OpenAI.ChatCompletionRequestMessageContentPartImage? Image { get; init; } + public global::OpenAI.ChatCompletionRequestMessageContentPartImage? ImageUrl { get; init; } #else - public global::OpenAI.ChatCompletionRequestMessageContentPartImage? Image { get; } + public global::OpenAI.ChatCompletionRequestMessageContentPartImage? ImageUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Image))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] #endif - public bool IsImage => Image != null; + public bool IsImageUrl => ImageUrl != null; /// /// @@ -75,32 +75,32 @@ public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletion /// /// /// - public static implicit operator global::OpenAI.ChatCompletionRequestMessageContentPartImage?(ChatCompletionRequestUserMessageContentPart @this) => @this.Image; + public static implicit operator global::OpenAI.ChatCompletionRequestMessageContentPartImage?(ChatCompletionRequestUserMessageContentPart @this) => @this.ImageUrl; /// /// /// public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletionRequestMessageContentPartImage? value) { - Image = value; + ImageUrl = value; } /// /// Learn about [audio inputs](/docs/guides/audio). /// #if NET6_0_OR_GREATER - public global::OpenAI.ChatCompletionRequestMessageContentPartAudio? Audio { get; init; } + public global::OpenAI.ChatCompletionRequestMessageContentPartAudio? InputAudio { get; init; } #else - public global::OpenAI.ChatCompletionRequestMessageContentPartAudio? Audio { get; } + public global::OpenAI.ChatCompletionRequestMessageContentPartAudio? InputAudio { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Audio))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputAudio))] #endif - public bool IsAudio => Audio != null; + public bool IsInputAudio => InputAudio != null; /// /// @@ -110,14 +110,14 @@ public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletion /// /// /// - public static implicit operator global::OpenAI.ChatCompletionRequestMessageContentPartAudio?(ChatCompletionRequestUserMessageContentPart @this) => @this.Audio; + public static implicit operator global::OpenAI.ChatCompletionRequestMessageContentPartAudio?(ChatCompletionRequestUserMessageContentPart @this) => @this.InputAudio; /// /// /// public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletionRequestMessageContentPartAudio? value) { - Audio = value; + InputAudio = value; } /// @@ -126,23 +126,23 @@ public ChatCompletionRequestUserMessageContentPart(global::OpenAI.ChatCompletion public ChatCompletionRequestUserMessageContentPart( global::OpenAI.ChatCompletionRequestUserMessageContentPartDiscriminatorType? type, global::OpenAI.ChatCompletionRequestMessageContentPartText? text, - global::OpenAI.ChatCompletionRequestMessageContentPartImage? image, - global::OpenAI.ChatCompletionRequestMessageContentPartAudio? audio + global::OpenAI.ChatCompletionRequestMessageContentPartImage? imageUrl, + global::OpenAI.ChatCompletionRequestMessageContentPartAudio? inputAudio ) { Type = type; Text = text; - Image = image; - Audio = audio; + ImageUrl = imageUrl; + InputAudio = inputAudio; } /// /// /// public object? Object => - Audio as object ?? - Image as object ?? + InputAudio as object ?? + ImageUrl as object ?? Text as object ; @@ -151,7 +151,7 @@ Text as object /// public bool Validate() { - return IsText && !IsImage && !IsAudio || !IsText && IsImage && !IsAudio || !IsText && !IsImage && IsAudio; + return IsText && !IsImageUrl && !IsInputAudio || !IsText && IsImageUrl && !IsInputAudio || !IsText && !IsImageUrl && IsInputAudio; } /// @@ -159,8 +159,8 @@ public bool Validate() /// public TResult? Match( global::System.Func? text = null, - global::System.Func? image = null, - global::System.Func? audio = null, + global::System.Func? imageUrl = null, + global::System.Func? inputAudio = null, bool validate = true) { if (validate) @@ -172,13 +172,13 @@ public bool Validate() { return text(Text!); } - else if (IsImage && image != null) + else if (IsImageUrl && imageUrl != null) { - return image(Image!); + return imageUrl(ImageUrl!); } - else if (IsAudio && audio != null) + else if (IsInputAudio && inputAudio != null) { - return audio(Audio!); + return inputAudio(InputAudio!); } return default(TResult); @@ -189,8 +189,8 @@ public bool Validate() /// public void Match( global::System.Action? text = null, - global::System.Action? image = null, - global::System.Action? audio = null, + global::System.Action? imageUrl = null, + global::System.Action? inputAudio = null, bool validate = true) { if (validate) @@ -202,13 +202,13 @@ public void Match( { text?.Invoke(Text!); } - else if (IsImage) + else if (IsImageUrl) { - image?.Invoke(Image!); + imageUrl?.Invoke(ImageUrl!); } - else if (IsAudio) + else if (IsInputAudio) { - audio?.Invoke(Audio!); + inputAudio?.Invoke(InputAudio!); } } @@ -221,9 +221,9 @@ public override int GetHashCode() { Text, typeof(global::OpenAI.ChatCompletionRequestMessageContentPartText), - Image, + ImageUrl, typeof(global::OpenAI.ChatCompletionRequestMessageContentPartImage), - Audio, + InputAudio, typeof(global::OpenAI.ChatCompletionRequestMessageContentPartAudio), }; const int offset = unchecked((int)2166136261); @@ -241,8 +241,8 @@ public bool Equals(ChatCompletionRequestUserMessageContentPart other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Image, other.Image) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Audio, other.Audio) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputAudio, other.InputAudio) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem.g.cs index 4d1eb0c6..1b85af4d 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// References an image [File](/docs/api-reference/files) in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentImageFileObject? MessageDeltaImageFileObject { get; init; } + public global::OpenAI.MessageDeltaContentImageFileObject? ImageFile { get; init; } #else - public global::OpenAI.MessageDeltaContentImageFileObject? MessageDeltaImageFileObject { get; } + public global::OpenAI.MessageDeltaContentImageFileObject? ImageFile { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaImageFileObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageFile))] #endif - public bool IsMessageDeltaImageFileObject => MessageDeltaImageFileObject != null; + public bool IsImageFile => ImageFile != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentImageFileObject?(ContentItem @this) => @this.MessageDeltaImageFileObject; + public static implicit operator global::OpenAI.MessageDeltaContentImageFileObject?(ContentItem @this) => @this.ImageFile; /// /// /// public ContentItem(global::OpenAI.MessageDeltaContentImageFileObject? value) { - MessageDeltaImageFileObject = value; + ImageFile = value; } /// /// The text content that is part of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentTextObject? MessageDeltaTextObject { get; init; } + public global::OpenAI.MessageDeltaContentTextObject? Text { get; init; } #else - public global::OpenAI.MessageDeltaContentTextObject? MessageDeltaTextObject { get; } + public global::OpenAI.MessageDeltaContentTextObject? Text { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaTextObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] #endif - public bool IsMessageDeltaTextObject => MessageDeltaTextObject != null; + public bool IsText => Text != null; /// /// @@ -75,32 +75,32 @@ public ContentItem(global::OpenAI.MessageDeltaContentImageFileObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentTextObject?(ContentItem @this) => @this.MessageDeltaTextObject; + public static implicit operator global::OpenAI.MessageDeltaContentTextObject?(ContentItem @this) => @this.Text; /// /// /// public ContentItem(global::OpenAI.MessageDeltaContentTextObject? value) { - MessageDeltaTextObject = value; + Text = value; } /// /// The refusal content that is part of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentRefusalObject? MessageDeltaRefusalObject { get; init; } + public global::OpenAI.MessageDeltaContentRefusalObject? Refusal { get; init; } #else - public global::OpenAI.MessageDeltaContentRefusalObject? MessageDeltaRefusalObject { get; } + public global::OpenAI.MessageDeltaContentRefusalObject? Refusal { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaRefusalObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Refusal))] #endif - public bool IsMessageDeltaRefusalObject => MessageDeltaRefusalObject != null; + public bool IsRefusal => Refusal != null; /// /// @@ -110,32 +110,32 @@ public ContentItem(global::OpenAI.MessageDeltaContentTextObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentRefusalObject?(ContentItem @this) => @this.MessageDeltaRefusalObject; + public static implicit operator global::OpenAI.MessageDeltaContentRefusalObject?(ContentItem @this) => @this.Refusal; /// /// /// public ContentItem(global::OpenAI.MessageDeltaContentRefusalObject? value) { - MessageDeltaRefusalObject = value; + Refusal = value; } /// /// References an image URL in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageDeltaContentImageUrlObject? MessageDeltaImageUrlObject { get; init; } + public global::OpenAI.MessageDeltaContentImageUrlObject? ImageUrl { get; init; } #else - public global::OpenAI.MessageDeltaContentImageUrlObject? MessageDeltaImageUrlObject { get; } + public global::OpenAI.MessageDeltaContentImageUrlObject? ImageUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageDeltaImageUrlObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] #endif - public bool IsMessageDeltaImageUrlObject => MessageDeltaImageUrlObject != null; + public bool IsImageUrl => ImageUrl != null; /// /// @@ -145,14 +145,14 @@ public ContentItem(global::OpenAI.MessageDeltaContentRefusalObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageDeltaContentImageUrlObject?(ContentItem @this) => @this.MessageDeltaImageUrlObject; + public static implicit operator global::OpenAI.MessageDeltaContentImageUrlObject?(ContentItem @this) => @this.ImageUrl; /// /// /// public ContentItem(global::OpenAI.MessageDeltaContentImageUrlObject? value) { - MessageDeltaImageUrlObject = value; + ImageUrl = value; } /// @@ -160,28 +160,28 @@ public ContentItem(global::OpenAI.MessageDeltaContentImageUrlObject? value) /// public ContentItem( global::OpenAI.MessageDeltaObjectDeltaContentItemDiscriminatorType? type, - global::OpenAI.MessageDeltaContentImageFileObject? messageDeltaImageFileObject, - global::OpenAI.MessageDeltaContentTextObject? messageDeltaTextObject, - global::OpenAI.MessageDeltaContentRefusalObject? messageDeltaRefusalObject, - global::OpenAI.MessageDeltaContentImageUrlObject? messageDeltaImageUrlObject + global::OpenAI.MessageDeltaContentImageFileObject? imageFile, + global::OpenAI.MessageDeltaContentTextObject? text, + global::OpenAI.MessageDeltaContentRefusalObject? refusal, + global::OpenAI.MessageDeltaContentImageUrlObject? imageUrl ) { Type = type; - MessageDeltaImageFileObject = messageDeltaImageFileObject; - MessageDeltaTextObject = messageDeltaTextObject; - MessageDeltaRefusalObject = messageDeltaRefusalObject; - MessageDeltaImageUrlObject = messageDeltaImageUrlObject; + ImageFile = imageFile; + Text = text; + Refusal = refusal; + ImageUrl = imageUrl; } /// /// /// public object? Object => - MessageDeltaImageUrlObject as object ?? - MessageDeltaRefusalObject as object ?? - MessageDeltaTextObject as object ?? - MessageDeltaImageFileObject as object + ImageUrl as object ?? + Refusal as object ?? + Text as object ?? + ImageFile as object ; /// @@ -189,17 +189,17 @@ MessageDeltaImageFileObject as object /// public bool Validate() { - return IsMessageDeltaImageFileObject && !IsMessageDeltaTextObject && !IsMessageDeltaRefusalObject && !IsMessageDeltaImageUrlObject || !IsMessageDeltaImageFileObject && IsMessageDeltaTextObject && !IsMessageDeltaRefusalObject && !IsMessageDeltaImageUrlObject || !IsMessageDeltaImageFileObject && !IsMessageDeltaTextObject && IsMessageDeltaRefusalObject && !IsMessageDeltaImageUrlObject || !IsMessageDeltaImageFileObject && !IsMessageDeltaTextObject && !IsMessageDeltaRefusalObject && IsMessageDeltaImageUrlObject; + return IsImageFile && !IsText && !IsRefusal && !IsImageUrl || !IsImageFile && IsText && !IsRefusal && !IsImageUrl || !IsImageFile && !IsText && IsRefusal && !IsImageUrl || !IsImageFile && !IsText && !IsRefusal && IsImageUrl; } /// /// /// public TResult? Match( - global::System.Func? messageDeltaImageFileObject = null, - global::System.Func? messageDeltaTextObject = null, - global::System.Func? messageDeltaRefusalObject = null, - global::System.Func? messageDeltaImageUrlObject = null, + global::System.Func? imageFile = null, + global::System.Func? text = null, + global::System.Func? refusal = null, + global::System.Func? imageUrl = null, bool validate = true) { if (validate) @@ -207,21 +207,21 @@ public bool Validate() Validate(); } - if (IsMessageDeltaImageFileObject && messageDeltaImageFileObject != null) + if (IsImageFile && imageFile != null) { - return messageDeltaImageFileObject(MessageDeltaImageFileObject!); + return imageFile(ImageFile!); } - else if (IsMessageDeltaTextObject && messageDeltaTextObject != null) + else if (IsText && text != null) { - return messageDeltaTextObject(MessageDeltaTextObject!); + return text(Text!); } - else if (IsMessageDeltaRefusalObject && messageDeltaRefusalObject != null) + else if (IsRefusal && refusal != null) { - return messageDeltaRefusalObject(MessageDeltaRefusalObject!); + return refusal(Refusal!); } - else if (IsMessageDeltaImageUrlObject && messageDeltaImageUrlObject != null) + else if (IsImageUrl && imageUrl != null) { - return messageDeltaImageUrlObject(MessageDeltaImageUrlObject!); + return imageUrl(ImageUrl!); } return default(TResult); @@ -231,10 +231,10 @@ public bool Validate() /// /// public void Match( - global::System.Action? messageDeltaImageFileObject = null, - global::System.Action? messageDeltaTextObject = null, - global::System.Action? messageDeltaRefusalObject = null, - global::System.Action? messageDeltaImageUrlObject = null, + global::System.Action? imageFile = null, + global::System.Action? text = null, + global::System.Action? refusal = null, + global::System.Action? imageUrl = null, bool validate = true) { if (validate) @@ -242,21 +242,21 @@ public void Match( Validate(); } - if (IsMessageDeltaImageFileObject) + if (IsImageFile) { - messageDeltaImageFileObject?.Invoke(MessageDeltaImageFileObject!); + imageFile?.Invoke(ImageFile!); } - else if (IsMessageDeltaTextObject) + else if (IsText) { - messageDeltaTextObject?.Invoke(MessageDeltaTextObject!); + text?.Invoke(Text!); } - else if (IsMessageDeltaRefusalObject) + else if (IsRefusal) { - messageDeltaRefusalObject?.Invoke(MessageDeltaRefusalObject!); + refusal?.Invoke(Refusal!); } - else if (IsMessageDeltaImageUrlObject) + else if (IsImageUrl) { - messageDeltaImageUrlObject?.Invoke(MessageDeltaImageUrlObject!); + imageUrl?.Invoke(ImageUrl!); } } @@ -267,13 +267,13 @@ public override int GetHashCode() { var fields = new object?[] { - MessageDeltaImageFileObject, + ImageFile, typeof(global::OpenAI.MessageDeltaContentImageFileObject), - MessageDeltaTextObject, + Text, typeof(global::OpenAI.MessageDeltaContentTextObject), - MessageDeltaRefusalObject, + Refusal, typeof(global::OpenAI.MessageDeltaContentRefusalObject), - MessageDeltaImageUrlObject, + ImageUrl, typeof(global::OpenAI.MessageDeltaContentImageUrlObject), }; const int offset = unchecked((int)2166136261); @@ -290,10 +290,10 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ContentItem other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaImageFileObject, other.MessageDeltaImageFileObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaTextObject, other.MessageDeltaTextObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaRefusalObject, other.MessageDeltaRefusalObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageDeltaImageUrlObject, other.MessageDeltaImageUrlObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageFile, other.ImageFile) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Refusal, other.Refusal) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem2.g.cs index 21ee25c6..5ef22554 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem2.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ContentItem2.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// References an image [File](/docs/api-reference/files) in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; init; } + public global::OpenAI.MessageContentImageFileObject? ImageFile { get; init; } #else - public global::OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; } + public global::OpenAI.MessageContentImageFileObject? ImageFile { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageFileObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageFile))] #endif - public bool IsMessageImageFileObject => MessageImageFileObject != null; + public bool IsImageFile => ImageFile != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.MessageContentImageFileObject?(ContentItem2 @this) => @this.MessageImageFileObject; + public static implicit operator global::OpenAI.MessageContentImageFileObject?(ContentItem2 @this) => @this.ImageFile; /// /// /// public ContentItem2(global::OpenAI.MessageContentImageFileObject? value) { - MessageImageFileObject = value; + ImageFile = value; } /// /// References an image URL in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; init; } + public global::OpenAI.MessageContentImageUrlObject? ImageUrl { get; init; } #else - public global::OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; } + public global::OpenAI.MessageContentImageUrlObject? ImageUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageUrlObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] #endif - public bool IsMessageImageUrlObject => MessageImageUrlObject != null; + public bool IsImageUrl => ImageUrl != null; /// /// @@ -75,32 +75,32 @@ public ContentItem2(global::OpenAI.MessageContentImageFileObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageContentImageUrlObject?(ContentItem2 @this) => @this.MessageImageUrlObject; + public static implicit operator global::OpenAI.MessageContentImageUrlObject?(ContentItem2 @this) => @this.ImageUrl; /// /// /// public ContentItem2(global::OpenAI.MessageContentImageUrlObject? value) { - MessageImageUrlObject = value; + ImageUrl = value; } /// /// The text content that is part of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentTextObject? MessageTextObject { get; init; } + public global::OpenAI.MessageContentTextObject? Text { get; init; } #else - public global::OpenAI.MessageContentTextObject? MessageTextObject { get; } + public global::OpenAI.MessageContentTextObject? Text { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageTextObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] #endif - public bool IsMessageTextObject => MessageTextObject != null; + public bool IsText => Text != null; /// /// @@ -110,32 +110,32 @@ public ContentItem2(global::OpenAI.MessageContentImageUrlObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageContentTextObject?(ContentItem2 @this) => @this.MessageTextObject; + public static implicit operator global::OpenAI.MessageContentTextObject?(ContentItem2 @this) => @this.Text; /// /// /// public ContentItem2(global::OpenAI.MessageContentTextObject? value) { - MessageTextObject = value; + Text = value; } /// /// The refusal content generated by the assistant. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentRefusalObject? MessageRefusalObject { get; init; } + public global::OpenAI.MessageContentRefusalObject? Refusal { get; init; } #else - public global::OpenAI.MessageContentRefusalObject? MessageRefusalObject { get; } + public global::OpenAI.MessageContentRefusalObject? Refusal { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageRefusalObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Refusal))] #endif - public bool IsMessageRefusalObject => MessageRefusalObject != null; + public bool IsRefusal => Refusal != null; /// /// @@ -145,14 +145,14 @@ public ContentItem2(global::OpenAI.MessageContentTextObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageContentRefusalObject?(ContentItem2 @this) => @this.MessageRefusalObject; + public static implicit operator global::OpenAI.MessageContentRefusalObject?(ContentItem2 @this) => @this.Refusal; /// /// /// public ContentItem2(global::OpenAI.MessageContentRefusalObject? value) { - MessageRefusalObject = value; + Refusal = value; } /// @@ -160,28 +160,28 @@ public ContentItem2(global::OpenAI.MessageContentRefusalObject? value) /// public ContentItem2( global::OpenAI.MessageObjectContentItemDiscriminatorType? type, - global::OpenAI.MessageContentImageFileObject? messageImageFileObject, - global::OpenAI.MessageContentImageUrlObject? messageImageUrlObject, - global::OpenAI.MessageContentTextObject? messageTextObject, - global::OpenAI.MessageContentRefusalObject? messageRefusalObject + global::OpenAI.MessageContentImageFileObject? imageFile, + global::OpenAI.MessageContentImageUrlObject? imageUrl, + global::OpenAI.MessageContentTextObject? text, + global::OpenAI.MessageContentRefusalObject? refusal ) { Type = type; - MessageImageFileObject = messageImageFileObject; - MessageImageUrlObject = messageImageUrlObject; - MessageTextObject = messageTextObject; - MessageRefusalObject = messageRefusalObject; + ImageFile = imageFile; + ImageUrl = imageUrl; + Text = text; + Refusal = refusal; } /// /// /// public object? Object => - MessageRefusalObject as object ?? - MessageTextObject as object ?? - MessageImageUrlObject as object ?? - MessageImageFileObject as object + Refusal as object ?? + Text as object ?? + ImageUrl as object ?? + ImageFile as object ; /// @@ -189,17 +189,17 @@ MessageImageFileObject as object /// public bool Validate() { - return IsMessageImageFileObject && !IsMessageImageUrlObject && !IsMessageTextObject && !IsMessageRefusalObject || !IsMessageImageFileObject && IsMessageImageUrlObject && !IsMessageTextObject && !IsMessageRefusalObject || !IsMessageImageFileObject && !IsMessageImageUrlObject && IsMessageTextObject && !IsMessageRefusalObject || !IsMessageImageFileObject && !IsMessageImageUrlObject && !IsMessageTextObject && IsMessageRefusalObject; + return IsImageFile && !IsImageUrl && !IsText && !IsRefusal || !IsImageFile && IsImageUrl && !IsText && !IsRefusal || !IsImageFile && !IsImageUrl && IsText && !IsRefusal || !IsImageFile && !IsImageUrl && !IsText && IsRefusal; } /// /// /// public TResult? Match( - global::System.Func? messageImageFileObject = null, - global::System.Func? messageImageUrlObject = null, - global::System.Func? messageTextObject = null, - global::System.Func? messageRefusalObject = null, + global::System.Func? imageFile = null, + global::System.Func? imageUrl = null, + global::System.Func? text = null, + global::System.Func? refusal = null, bool validate = true) { if (validate) @@ -207,21 +207,21 @@ public bool Validate() Validate(); } - if (IsMessageImageFileObject && messageImageFileObject != null) + if (IsImageFile && imageFile != null) { - return messageImageFileObject(MessageImageFileObject!); + return imageFile(ImageFile!); } - else if (IsMessageImageUrlObject && messageImageUrlObject != null) + else if (IsImageUrl && imageUrl != null) { - return messageImageUrlObject(MessageImageUrlObject!); + return imageUrl(ImageUrl!); } - else if (IsMessageTextObject && messageTextObject != null) + else if (IsText && text != null) { - return messageTextObject(MessageTextObject!); + return text(Text!); } - else if (IsMessageRefusalObject && messageRefusalObject != null) + else if (IsRefusal && refusal != null) { - return messageRefusalObject(MessageRefusalObject!); + return refusal(Refusal!); } return default(TResult); @@ -231,10 +231,10 @@ public bool Validate() /// /// public void Match( - global::System.Action? messageImageFileObject = null, - global::System.Action? messageImageUrlObject = null, - global::System.Action? messageTextObject = null, - global::System.Action? messageRefusalObject = null, + global::System.Action? imageFile = null, + global::System.Action? imageUrl = null, + global::System.Action? text = null, + global::System.Action? refusal = null, bool validate = true) { if (validate) @@ -242,21 +242,21 @@ public void Match( Validate(); } - if (IsMessageImageFileObject) + if (IsImageFile) { - messageImageFileObject?.Invoke(MessageImageFileObject!); + imageFile?.Invoke(ImageFile!); } - else if (IsMessageImageUrlObject) + else if (IsImageUrl) { - messageImageUrlObject?.Invoke(MessageImageUrlObject!); + imageUrl?.Invoke(ImageUrl!); } - else if (IsMessageTextObject) + else if (IsText) { - messageTextObject?.Invoke(MessageTextObject!); + text?.Invoke(Text!); } - else if (IsMessageRefusalObject) + else if (IsRefusal) { - messageRefusalObject?.Invoke(MessageRefusalObject!); + refusal?.Invoke(Refusal!); } } @@ -267,13 +267,13 @@ public override int GetHashCode() { var fields = new object?[] { - MessageImageFileObject, + ImageFile, typeof(global::OpenAI.MessageContentImageFileObject), - MessageImageUrlObject, + ImageUrl, typeof(global::OpenAI.MessageContentImageUrlObject), - MessageTextObject, + Text, typeof(global::OpenAI.MessageContentTextObject), - MessageRefusalObject, + Refusal, typeof(global::OpenAI.MessageContentRefusalObject), }; const int offset = unchecked((int)2166136261); @@ -290,10 +290,10 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ContentItem2 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageFileObject, other.MessageImageFileObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageUrlObject, other.MessageImageUrlObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageTextObject, other.MessageTextObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageRefusalObject, other.MessageRefusalObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageFile, other.ImageFile) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Refusal, other.Refusal) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ContentVariant2Item.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ContentVariant2Item.g.cs index a5d8b089..1679082e 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ContentVariant2Item.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ContentVariant2Item.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// References an image [File](/docs/api-reference/files) in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; init; } + public global::OpenAI.MessageContentImageFileObject? ImageFile { get; init; } #else - public global::OpenAI.MessageContentImageFileObject? MessageImageFileObject { get; } + public global::OpenAI.MessageContentImageFileObject? ImageFile { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageFileObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageFile))] #endif - public bool IsMessageImageFileObject => MessageImageFileObject != null; + public bool IsImageFile => ImageFile != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.MessageContentImageFileObject?(ContentVariant2Item @this) => @this.MessageImageFileObject; + public static implicit operator global::OpenAI.MessageContentImageFileObject?(ContentVariant2Item @this) => @this.ImageFile; /// /// /// public ContentVariant2Item(global::OpenAI.MessageContentImageFileObject? value) { - MessageImageFileObject = value; + ImageFile = value; } /// /// References an image URL in the content of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; init; } + public global::OpenAI.MessageContentImageUrlObject? ImageUrl { get; init; } #else - public global::OpenAI.MessageContentImageUrlObject? MessageImageUrlObject { get; } + public global::OpenAI.MessageContentImageUrlObject? ImageUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageImageUrlObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] #endif - public bool IsMessageImageUrlObject => MessageImageUrlObject != null; + public bool IsImageUrl => ImageUrl != null; /// /// @@ -75,32 +75,32 @@ public ContentVariant2Item(global::OpenAI.MessageContentImageFileObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageContentImageUrlObject?(ContentVariant2Item @this) => @this.MessageImageUrlObject; + public static implicit operator global::OpenAI.MessageContentImageUrlObject?(ContentVariant2Item @this) => @this.ImageUrl; /// /// /// public ContentVariant2Item(global::OpenAI.MessageContentImageUrlObject? value) { - MessageImageUrlObject = value; + ImageUrl = value; } /// /// The text content that is part of a message. /// #if NET6_0_OR_GREATER - public global::OpenAI.MessageRequestContentTextObject? MessageRequestTextObject { get; init; } + public global::OpenAI.MessageRequestContentTextObject? Text { get; init; } #else - public global::OpenAI.MessageRequestContentTextObject? MessageRequestTextObject { get; } + public global::OpenAI.MessageRequestContentTextObject? Text { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageRequestTextObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] #endif - public bool IsMessageRequestTextObject => MessageRequestTextObject != null; + public bool IsText => Text != null; /// /// @@ -110,14 +110,14 @@ public ContentVariant2Item(global::OpenAI.MessageContentImageUrlObject? value) /// /// /// - public static implicit operator global::OpenAI.MessageRequestContentTextObject?(ContentVariant2Item @this) => @this.MessageRequestTextObject; + public static implicit operator global::OpenAI.MessageRequestContentTextObject?(ContentVariant2Item @this) => @this.Text; /// /// /// public ContentVariant2Item(global::OpenAI.MessageRequestContentTextObject? value) { - MessageRequestTextObject = value; + Text = value; } /// @@ -125,25 +125,25 @@ public ContentVariant2Item(global::OpenAI.MessageRequestContentTextObject? value /// public ContentVariant2Item( global::OpenAI.CreateMessageRequestContentVariant2ItemDiscriminatorType? type, - global::OpenAI.MessageContentImageFileObject? messageImageFileObject, - global::OpenAI.MessageContentImageUrlObject? messageImageUrlObject, - global::OpenAI.MessageRequestContentTextObject? messageRequestTextObject + global::OpenAI.MessageContentImageFileObject? imageFile, + global::OpenAI.MessageContentImageUrlObject? imageUrl, + global::OpenAI.MessageRequestContentTextObject? text ) { Type = type; - MessageImageFileObject = messageImageFileObject; - MessageImageUrlObject = messageImageUrlObject; - MessageRequestTextObject = messageRequestTextObject; + ImageFile = imageFile; + ImageUrl = imageUrl; + Text = text; } /// /// /// public object? Object => - MessageRequestTextObject as object ?? - MessageImageUrlObject as object ?? - MessageImageFileObject as object + Text as object ?? + ImageUrl as object ?? + ImageFile as object ; /// @@ -151,16 +151,16 @@ MessageImageFileObject as object /// public bool Validate() { - return IsMessageImageFileObject && !IsMessageImageUrlObject && !IsMessageRequestTextObject || !IsMessageImageFileObject && IsMessageImageUrlObject && !IsMessageRequestTextObject || !IsMessageImageFileObject && !IsMessageImageUrlObject && IsMessageRequestTextObject; + return IsImageFile && !IsImageUrl && !IsText || !IsImageFile && IsImageUrl && !IsText || !IsImageFile && !IsImageUrl && IsText; } /// /// /// public TResult? Match( - global::System.Func? messageImageFileObject = null, - global::System.Func? messageImageUrlObject = null, - global::System.Func? messageRequestTextObject = null, + global::System.Func? imageFile = null, + global::System.Func? imageUrl = null, + global::System.Func? text = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsMessageImageFileObject && messageImageFileObject != null) + if (IsImageFile && imageFile != null) { - return messageImageFileObject(MessageImageFileObject!); + return imageFile(ImageFile!); } - else if (IsMessageImageUrlObject && messageImageUrlObject != null) + else if (IsImageUrl && imageUrl != null) { - return messageImageUrlObject(MessageImageUrlObject!); + return imageUrl(ImageUrl!); } - else if (IsMessageRequestTextObject && messageRequestTextObject != null) + else if (IsText && text != null) { - return messageRequestTextObject(MessageRequestTextObject!); + return text(Text!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? messageImageFileObject = null, - global::System.Action? messageImageUrlObject = null, - global::System.Action? messageRequestTextObject = null, + global::System.Action? imageFile = null, + global::System.Action? imageUrl = null, + global::System.Action? text = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsMessageImageFileObject) + if (IsImageFile) { - messageImageFileObject?.Invoke(MessageImageFileObject!); + imageFile?.Invoke(ImageFile!); } - else if (IsMessageImageUrlObject) + else if (IsImageUrl) { - messageImageUrlObject?.Invoke(MessageImageUrlObject!); + imageUrl?.Invoke(ImageUrl!); } - else if (IsMessageRequestTextObject) + else if (IsText) { - messageRequestTextObject?.Invoke(MessageRequestTextObject!); + text?.Invoke(Text!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - MessageImageFileObject, + ImageFile, typeof(global::OpenAI.MessageContentImageFileObject), - MessageImageUrlObject, + ImageUrl, typeof(global::OpenAI.MessageContentImageUrlObject), - MessageRequestTextObject, + Text, typeof(global::OpenAI.MessageRequestContentTextObject), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ContentVariant2Item other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageFileObject, other.MessageImageFileObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageImageUrlObject, other.MessageImageUrlObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageRequestTextObject, other.MessageRequestTextObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageFile, other.ImageFile) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs index d92e599a..df379b22 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; init; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Auto { get; init; } #else - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Auto { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Auto))] #endif - public bool IsValue1 => Value1 != null; + public bool IsAuto => Auto != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value1; + public static implicit operator global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Auto; /// /// /// public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value) { - Value1 = value; + Auto = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; init; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Static { get; init; } #else - public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; } + public global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Static { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Static))] #endif - public bool IsValue2 => Value2 != null; + public bool IsStatic => Static != null; /// /// @@ -75,14 +75,14 @@ public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( /// /// /// - public static implicit operator global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value2; + public static implicit operator global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Static; /// /// /// public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value) { - Value2 = value; + Static = value; } /// @@ -90,22 +90,22 @@ public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( /// public CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy( global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType? type, - global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1, - global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 + global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? auto, + global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? @static ) { Type = type; - Value1 = value1; - Value2 = value2; + Auto = auto; + Static = @static; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Static as object ?? + Auto as object ; /// @@ -113,15 +113,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsAuto && !IsStatic || !IsAuto && IsStatic; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? auto = null, + global::System.Func? @static = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsAuto && auto != null) { - return value1(Value1!); + return auto(Auto!); } - else if (IsValue2 && value2 != null) + else if (IsStatic && @static != null) { - return value2(Value2!); + return @static(Static!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? auto = null, + global::System.Action? @static = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsAuto) { - value1?.Invoke(Value1!); + auto?.Invoke(Auto!); } - else if (IsValue2) + else if (IsStatic) { - value2?.Invoke(Value2!); + @static?.Invoke(Static!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Auto, typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), - Value2, + Static, typeof(global::OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategy other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Auto, other.Auto) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Static, other.Static) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs index b96dfbae..a0369a2c 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; init; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Auto { get; init; } #else - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Value1 { get; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? Auto { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Auto))] #endif - public bool IsValue1 => Value1 != null; + public bool IsAuto => Auto != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value1; + public static implicit operator global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Auto; /// /// /// public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value) { - Value1 = value; + Auto = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; init; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Static { get; init; } #else - public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Value2 { get; } + public global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? Static { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Static))] #endif - public bool IsValue2 => Value2 != null; + public bool IsStatic => Static != null; /// /// @@ -75,14 +75,14 @@ public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(glo /// /// /// - public static implicit operator global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Value2; + public static implicit operator global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2?(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy @this) => @this.Static; /// /// /// public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value) { - Value2 = value; + Static = value; } /// @@ -90,22 +90,22 @@ public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy(glo /// public CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy( global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyDiscriminatorType? type, - global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? value1, - global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? value2 + global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1? auto, + global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2? @static ) { Type = type; - Value1 = value1; - Value2 = value2; + Auto = auto; + Static = @static; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Static as object ?? + Auto as object ; /// @@ -113,15 +113,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsAuto && !IsStatic || !IsAuto && IsStatic; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? auto = null, + global::System.Func? @static = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsAuto && auto != null) { - return value1(Value1!); + return auto(Auto!); } - else if (IsValue2 && value2 != null) + else if (IsStatic && @static != null) { - return value2(Value2!); + return @static(Static!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? auto = null, + global::System.Action? @static = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsAuto) { - value1?.Invoke(Value1!); + auto?.Invoke(Auto!); } - else if (IsValue2) + else if (IsStatic) { - value2?.Invoke(Value2!); + @static?.Invoke(Static!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Auto, typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1), - Value2, + Static, typeof(global::OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategy other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Auto, other.Auto) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Static, other.Static) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.CreateVectorStoreRequestChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.CreateVectorStoreRequestChunkingStrategy.g.cs index 60dd7716..41ffb372 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.CreateVectorStoreRequestChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.CreateVectorStoreRequestChunkingStrategy.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. /// #if NET6_0_OR_GREATER - public global::OpenAI.AutoChunkingStrategyRequestParam? AutoParam { get; init; } + public global::OpenAI.AutoChunkingStrategyRequestParam? Auto { get; init; } #else - public global::OpenAI.AutoChunkingStrategyRequestParam? AutoParam { get; } + public global::OpenAI.AutoChunkingStrategyRequestParam? Auto { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AutoParam))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Auto))] #endif - public bool IsAutoParam => AutoParam != null; + public bool IsAuto => Auto != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AutoChunkingStrategyRequestParam?(CreateVectorStoreRequestChunkingStrategy @this) => @this.AutoParam; + public static implicit operator global::OpenAI.AutoChunkingStrategyRequestParam?(CreateVectorStoreRequestChunkingStrategy @this) => @this.Auto; /// /// /// public CreateVectorStoreRequestChunkingStrategy(global::OpenAI.AutoChunkingStrategyRequestParam? value) { - AutoParam = value; + Auto = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.StaticChunkingStrategyRequestParam? StaticParam { get; init; } + public global::OpenAI.StaticChunkingStrategyRequestParam? Static { get; init; } #else - public global::OpenAI.StaticChunkingStrategyRequestParam? StaticParam { get; } + public global::OpenAI.StaticChunkingStrategyRequestParam? Static { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StaticParam))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Static))] #endif - public bool IsStaticParam => StaticParam != null; + public bool IsStatic => Static != null; /// /// @@ -75,14 +75,14 @@ public CreateVectorStoreRequestChunkingStrategy(global::OpenAI.AutoChunkingStrat /// /// /// - public static implicit operator global::OpenAI.StaticChunkingStrategyRequestParam?(CreateVectorStoreRequestChunkingStrategy @this) => @this.StaticParam; + public static implicit operator global::OpenAI.StaticChunkingStrategyRequestParam?(CreateVectorStoreRequestChunkingStrategy @this) => @this.Static; /// /// /// public CreateVectorStoreRequestChunkingStrategy(global::OpenAI.StaticChunkingStrategyRequestParam? value) { - StaticParam = value; + Static = value; } /// @@ -90,22 +90,22 @@ public CreateVectorStoreRequestChunkingStrategy(global::OpenAI.StaticChunkingStr /// public CreateVectorStoreRequestChunkingStrategy( global::OpenAI.CreateVectorStoreRequestChunkingStrategyDiscriminatorType? type, - global::OpenAI.AutoChunkingStrategyRequestParam? autoParam, - global::OpenAI.StaticChunkingStrategyRequestParam? staticParam + global::OpenAI.AutoChunkingStrategyRequestParam? auto, + global::OpenAI.StaticChunkingStrategyRequestParam? @static ) { Type = type; - AutoParam = autoParam; - StaticParam = staticParam; + Auto = auto; + Static = @static; } /// /// /// public object? Object => - StaticParam as object ?? - AutoParam as object + Static as object ?? + Auto as object ; /// @@ -113,15 +113,15 @@ AutoParam as object /// public bool Validate() { - return IsAutoParam && !IsStaticParam || !IsAutoParam && IsStaticParam; + return IsAuto && !IsStatic || !IsAuto && IsStatic; } /// /// /// public TResult? Match( - global::System.Func? autoParam = null, - global::System.Func? staticParam = null, + global::System.Func? auto = null, + global::System.Func? @static = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsAutoParam && autoParam != null) + if (IsAuto && auto != null) { - return autoParam(AutoParam!); + return auto(Auto!); } - else if (IsStaticParam && staticParam != null) + else if (IsStatic && @static != null) { - return staticParam(StaticParam!); + return @static(Static!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? autoParam = null, - global::System.Action? staticParam = null, + global::System.Action? auto = null, + global::System.Action? @static = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsAutoParam) + if (IsAuto) { - autoParam?.Invoke(AutoParam!); + auto?.Invoke(Auto!); } - else if (IsStaticParam) + else if (IsStatic) { - staticParam?.Invoke(StaticParam!); + @static?.Invoke(Static!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - AutoParam, + Auto, typeof(global::OpenAI.AutoChunkingStrategyRequestParam), - StaticParam, + Static, typeof(global::OpenAI.StaticChunkingStrategyRequestParam), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateVectorStoreRequestChunkingStrategy other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AutoParam, other.AutoParam) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(StaticParam, other.StaticParam) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Auto, other.Auto) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Static, other.Static) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.InputVariant3Item.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.InputVariant3Item.g.cs index 68593ba2..7673e930 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.InputVariant3Item.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.InputVariant3Item.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// An object describing an image to classify. /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Value1 { get; init; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? ImageUrl { get; init; } #else - public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Value1 { get; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? ImageUrl { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageUrl))] #endif - public bool IsValue1 => Value1 != null; + public bool IsImageUrl => ImageUrl != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1?(InputVariant3Item @this) => @this.Value1; + public static implicit operator global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1?(InputVariant3Item @this) => @this.ImageUrl; /// /// /// public InputVariant3Item(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? value) { - Value1 = value; + ImageUrl = value; } /// /// An object describing text to classify. /// #if NET6_0_OR_GREATER - public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Value2 { get; init; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Text { get; init; } #else - public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Value2 { get; } + public global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Text { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] #endif - public bool IsValue2 => Value2 != null; + public bool IsText => Text != null; /// /// @@ -75,14 +75,14 @@ public InputVariant3Item(global::OpenAI.CreateModerationRequestInputVariant3Item /// /// /// - public static implicit operator global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2?(InputVariant3Item @this) => @this.Value2; + public static implicit operator global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2?(InputVariant3Item @this) => @this.Text; /// /// /// public InputVariant3Item(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? value) { - Value2 = value; + Text = value; } /// @@ -90,22 +90,22 @@ public InputVariant3Item(global::OpenAI.CreateModerationRequestInputVariant3Item /// public InputVariant3Item( global::OpenAI.CreateModerationRequestInputVariant3ItemDiscriminatorType? type, - global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? value1, - global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? value2 + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1? imageUrl, + global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2? text ) { Type = type; - Value1 = value1; - Value2 = value2; + ImageUrl = imageUrl; + Text = text; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Text as object ?? + ImageUrl as object ; /// @@ -113,15 +113,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsImageUrl && !IsText || !IsImageUrl && IsText; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? imageUrl = null, + global::System.Func? text = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsImageUrl && imageUrl != null) { - return value1(Value1!); + return imageUrl(ImageUrl!); } - else if (IsValue2 && value2 != null) + else if (IsText && text != null) { - return value2(Value2!); + return text(Text!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? imageUrl = null, + global::System.Action? text = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsImageUrl) { - value1?.Invoke(Value1!); + imageUrl?.Invoke(ImageUrl!); } - else if (IsValue2) + else if (IsText) { - value2?.Invoke(Value2!); + text?.Invoke(Text!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ImageUrl, typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant1), - Value2, + Text, typeof(global::OpenAI.CreateModerationRequestInputVariant3ItemVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(InputVariant3Item other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageUrl, other.ImageUrl) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem.g.cs index 457ec6ee..c8a4dad4 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// Details of the Code Interpreter tool call the run step was involved in. /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? RunStepDeltaDetailsCodeObject { get; init; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? CodeInterpreter { get; init; } #else - public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? RunStepDeltaDetailsCodeObject { get; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDeltaDetailsCodeObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsRunStepDeltaDetailsCodeObject => RunStepDeltaDetailsCodeObject != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject?(ToolCallsItem @this) => @this.RunStepDeltaDetailsCodeObject; + public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject?(ToolCallsItem @this) => @this.CodeInterpreter; /// /// /// public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? value) { - RunStepDeltaDetailsCodeObject = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? RunStepDeltaDetailsFileSearchObject { get; init; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? FileSearch { get; init; } #else - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? RunStepDeltaDetailsFileSearchObject { get; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDeltaDetailsFileSearchObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsRunStepDeltaDetailsFileSearchObject => RunStepDeltaDetailsFileSearchObject != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? /// /// /// - public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject?(ToolCallsItem @this) => @this.RunStepDeltaDetailsFileSearchObject; + public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject?(ToolCallsItem @this) => @this.FileSearch; /// /// /// public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? value) { - RunStepDeltaDetailsFileSearchObject = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? RunStepDeltaDetailsFunctionObject { get; init; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Function { get; init; } #else - public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? RunStepDeltaDetailsFunctionObject { get; } + public global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDeltaDetailsFunctionObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsRunStepDeltaDetailsFunctionObject => RunStepDeltaDetailsFunctionObject != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchOb /// /// /// - public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject?(ToolCallsItem @this) => @this.RunStepDeltaDetailsFunctionObject; + public static implicit operator global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject?(ToolCallsItem @this) => @this.Function; /// /// /// public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? value) { - RunStepDeltaDetailsFunctionObject = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolCallsItem(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObje /// public ToolCallsItem( global::OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallDiscriminatorType? type, - global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? runStepDeltaDetailsCodeObject, - global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? runStepDeltaDetailsFileSearchObject, - global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? runStepDeltaDetailsFunctionObject + global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? codeInterpreter, + global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? fileSearch, + global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? function ) { Type = type; - RunStepDeltaDetailsCodeObject = runStepDeltaDetailsCodeObject; - RunStepDeltaDetailsFileSearchObject = runStepDeltaDetailsFileSearchObject; - RunStepDeltaDetailsFunctionObject = runStepDeltaDetailsFunctionObject; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - RunStepDeltaDetailsFunctionObject as object ?? - RunStepDeltaDetailsFileSearchObject as object ?? - RunStepDeltaDetailsCodeObject as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ RunStepDeltaDetailsCodeObject as object /// public bool Validate() { - return IsRunStepDeltaDetailsCodeObject && !IsRunStepDeltaDetailsFileSearchObject && !IsRunStepDeltaDetailsFunctionObject || !IsRunStepDeltaDetailsCodeObject && IsRunStepDeltaDetailsFileSearchObject && !IsRunStepDeltaDetailsFunctionObject || !IsRunStepDeltaDetailsCodeObject && !IsRunStepDeltaDetailsFileSearchObject && IsRunStepDeltaDetailsFunctionObject; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? runStepDeltaDetailsCodeObject = null, - global::System.Func? runStepDeltaDetailsFileSearchObject = null, - global::System.Func? runStepDeltaDetailsFunctionObject = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsRunStepDeltaDetailsCodeObject && runStepDeltaDetailsCodeObject != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return runStepDeltaDetailsCodeObject(RunStepDeltaDetailsCodeObject!); + return codeInterpreter(CodeInterpreter!); } - else if (IsRunStepDeltaDetailsFileSearchObject && runStepDeltaDetailsFileSearchObject != null) + else if (IsFileSearch && fileSearch != null) { - return runStepDeltaDetailsFileSearchObject(RunStepDeltaDetailsFileSearchObject!); + return fileSearch(FileSearch!); } - else if (IsRunStepDeltaDetailsFunctionObject && runStepDeltaDetailsFunctionObject != null) + else if (IsFunction && function != null) { - return runStepDeltaDetailsFunctionObject(RunStepDeltaDetailsFunctionObject!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runStepDeltaDetailsCodeObject = null, - global::System.Action? runStepDeltaDetailsFileSearchObject = null, - global::System.Action? runStepDeltaDetailsFunctionObject = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsRunStepDeltaDetailsCodeObject) + if (IsCodeInterpreter) { - runStepDeltaDetailsCodeObject?.Invoke(RunStepDeltaDetailsCodeObject!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsRunStepDeltaDetailsFileSearchObject) + else if (IsFileSearch) { - runStepDeltaDetailsFileSearchObject?.Invoke(RunStepDeltaDetailsFileSearchObject!); + fileSearch?.Invoke(FileSearch!); } - else if (IsRunStepDeltaDetailsFunctionObject) + else if (IsFunction) { - runStepDeltaDetailsFunctionObject?.Invoke(RunStepDeltaDetailsFunctionObject!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - RunStepDeltaDetailsCodeObject, + CodeInterpreter, typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject), - RunStepDeltaDetailsFileSearchObject, + FileSearch, typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject), - RunStepDeltaDetailsFunctionObject, + Function, typeof(global::OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolCallsItem other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDeltaDetailsCodeObject, other.RunStepDeltaDetailsCodeObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDeltaDetailsFileSearchObject, other.RunStepDeltaDetailsFileSearchObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDeltaDetailsFunctionObject, other.RunStepDeltaDetailsFunctionObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem2.g.cs index 58a6bb4f..ede4564a 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem2.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolCallsItem2.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// Details of the Code Interpreter tool call the run step was involved in. /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDetailsToolCallsCodeObject? RunStepDetailsCodeObject { get; init; } + public global::OpenAI.RunStepDetailsToolCallsCodeObject? CodeInterpreter { get; init; } #else - public global::OpenAI.RunStepDetailsToolCallsCodeObject? RunStepDetailsCodeObject { get; } + public global::OpenAI.RunStepDetailsToolCallsCodeObject? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDetailsCodeObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsRunStepDetailsCodeObject => RunStepDetailsCodeObject != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.RunStepDetailsToolCallsCodeObject?(ToolCallsItem2 @this) => @this.RunStepDetailsCodeObject; + public static implicit operator global::OpenAI.RunStepDetailsToolCallsCodeObject?(ToolCallsItem2 @this) => @this.CodeInterpreter; /// /// /// public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsCodeObject? value) { - RunStepDetailsCodeObject = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? RunStepDetailsFileSearchObject { get; init; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? FileSearch { get; init; } #else - public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? RunStepDetailsFileSearchObject { get; } + public global::OpenAI.RunStepDetailsToolCallsFileSearchObject? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDetailsFileSearchObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsRunStepDetailsFileSearchObject => RunStepDetailsFileSearchObject != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsCodeObject? value) /// /// /// - public static implicit operator global::OpenAI.RunStepDetailsToolCallsFileSearchObject?(ToolCallsItem2 @this) => @this.RunStepDetailsFileSearchObject; + public static implicit operator global::OpenAI.RunStepDetailsToolCallsFileSearchObject?(ToolCallsItem2 @this) => @this.FileSearch; /// /// /// public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsFileSearchObject? value) { - RunStepDetailsFileSearchObject = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.RunStepDetailsToolCallsFunctionObject? RunStepDetailsFunctionObject { get; init; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObject? Function { get; init; } #else - public global::OpenAI.RunStepDetailsToolCallsFunctionObject? RunStepDetailsFunctionObject { get; } + public global::OpenAI.RunStepDetailsToolCallsFunctionObject? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepDetailsFunctionObject))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsRunStepDetailsFunctionObject => RunStepDetailsFunctionObject != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsFileSearchObject? va /// /// /// - public static implicit operator global::OpenAI.RunStepDetailsToolCallsFunctionObject?(ToolCallsItem2 @this) => @this.RunStepDetailsFunctionObject; + public static implicit operator global::OpenAI.RunStepDetailsToolCallsFunctionObject?(ToolCallsItem2 @this) => @this.Function; /// /// /// public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsFunctionObject? value) { - RunStepDetailsFunctionObject = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolCallsItem2(global::OpenAI.RunStepDetailsToolCallsFunctionObject? valu /// public ToolCallsItem2( global::OpenAI.RunStepDetailsToolCallsObjectToolCallDiscriminatorType? type, - global::OpenAI.RunStepDetailsToolCallsCodeObject? runStepDetailsCodeObject, - global::OpenAI.RunStepDetailsToolCallsFileSearchObject? runStepDetailsFileSearchObject, - global::OpenAI.RunStepDetailsToolCallsFunctionObject? runStepDetailsFunctionObject + global::OpenAI.RunStepDetailsToolCallsCodeObject? codeInterpreter, + global::OpenAI.RunStepDetailsToolCallsFileSearchObject? fileSearch, + global::OpenAI.RunStepDetailsToolCallsFunctionObject? function ) { Type = type; - RunStepDetailsCodeObject = runStepDetailsCodeObject; - RunStepDetailsFileSearchObject = runStepDetailsFileSearchObject; - RunStepDetailsFunctionObject = runStepDetailsFunctionObject; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - RunStepDetailsFunctionObject as object ?? - RunStepDetailsFileSearchObject as object ?? - RunStepDetailsCodeObject as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ RunStepDetailsCodeObject as object /// public bool Validate() { - return IsRunStepDetailsCodeObject && !IsRunStepDetailsFileSearchObject && !IsRunStepDetailsFunctionObject || !IsRunStepDetailsCodeObject && IsRunStepDetailsFileSearchObject && !IsRunStepDetailsFunctionObject || !IsRunStepDetailsCodeObject && !IsRunStepDetailsFileSearchObject && IsRunStepDetailsFunctionObject; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? runStepDetailsCodeObject = null, - global::System.Func? runStepDetailsFileSearchObject = null, - global::System.Func? runStepDetailsFunctionObject = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsRunStepDetailsCodeObject && runStepDetailsCodeObject != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return runStepDetailsCodeObject(RunStepDetailsCodeObject!); + return codeInterpreter(CodeInterpreter!); } - else if (IsRunStepDetailsFileSearchObject && runStepDetailsFileSearchObject != null) + else if (IsFileSearch && fileSearch != null) { - return runStepDetailsFileSearchObject(RunStepDetailsFileSearchObject!); + return fileSearch(FileSearch!); } - else if (IsRunStepDetailsFunctionObject && runStepDetailsFunctionObject != null) + else if (IsFunction && function != null) { - return runStepDetailsFunctionObject(RunStepDetailsFunctionObject!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runStepDetailsCodeObject = null, - global::System.Action? runStepDetailsFileSearchObject = null, - global::System.Action? runStepDetailsFunctionObject = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsRunStepDetailsCodeObject) + if (IsCodeInterpreter) { - runStepDetailsCodeObject?.Invoke(RunStepDetailsCodeObject!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsRunStepDetailsFileSearchObject) + else if (IsFileSearch) { - runStepDetailsFileSearchObject?.Invoke(RunStepDetailsFileSearchObject!); + fileSearch?.Invoke(FileSearch!); } - else if (IsRunStepDetailsFunctionObject) + else if (IsFunction) { - runStepDetailsFunctionObject?.Invoke(RunStepDetailsFunctionObject!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - RunStepDetailsCodeObject, + CodeInterpreter, typeof(global::OpenAI.RunStepDetailsToolCallsCodeObject), - RunStepDetailsFileSearchObject, + FileSearch, typeof(global::OpenAI.RunStepDetailsToolCallsFileSearchObject), - RunStepDetailsFunctionObject, + Function, typeof(global::OpenAI.RunStepDetailsToolCallsFunctionObject), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolCallsItem2 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDetailsCodeObject, other.RunStepDetailsCodeObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDetailsFileSearchObject, other.RunStepDetailsFileSearchObject) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepDetailsFunctionObject, other.RunStepDetailsFunctionObject) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem.g.cs index 883e2812..aecf5c87 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem @this) => @this.CodeInterpreter; /// /// /// public ToolsItem(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem @this) => @this.FileSearch; /// /// /// public ToolsItem(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem @this) => @this.Function; /// /// /// public ToolsItem(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem( global::OpenAI.AssistantObjectToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem2.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem2.g.cs index bbbceca7..29650052 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem2.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem2.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem2 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem2 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem2(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem2(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem2 @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem2 @this) => @this.FileSearch; /// /// /// public ToolsItem2(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem2(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem2 @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem2 @this) => @this.Function; /// /// /// public ToolsItem2(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem2(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem2( global::OpenAI.CreateAssistantRequestToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem2 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem3.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem3.g.cs index a3dac4b3..a32d70f6 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem3.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem3.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem3 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem3 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem3(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; init; } + public global::OpenAI.AssistantToolsFileSearchTypeOnly? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; } + public global::OpenAI.AssistantToolsFileSearchTypeOnly? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearchTypeOnly))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearchTypeOnly => AssistantFileSearchTypeOnly != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,14 +75,14 @@ public ToolsItem3(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearchTypeOnly?(ToolsItem3 @this) => @this.AssistantFileSearchTypeOnly; + public static implicit operator global::OpenAI.AssistantToolsFileSearchTypeOnly?(ToolsItem3 @this) => @this.FileSearch; /// /// /// public ToolsItem3(global::OpenAI.AssistantToolsFileSearchTypeOnly? value) { - AssistantFileSearchTypeOnly = value; + FileSearch = value; } /// @@ -90,22 +90,22 @@ public ToolsItem3(global::OpenAI.AssistantToolsFileSearchTypeOnly? value) /// public ToolsItem3( global::OpenAI.CreateMessageRequestAttachmentToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearchTypeOnly? fileSearch ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearchTypeOnly = assistantFileSearchTypeOnly; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; } /// /// /// public object? Object => - AssistantFileSearchTypeOnly as object ?? - AssistantCode as object + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -113,15 +113,15 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearchTypeOnly || !IsAssistantCode && IsAssistantFileSearchTypeOnly; + return IsCodeInterpreter && !IsFileSearch || !IsCodeInterpreter && IsFileSearch; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearchTypeOnly = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearchTypeOnly && assistantFileSearchTypeOnly != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearchTypeOnly(AssistantFileSearchTypeOnly!); + return fileSearch(FileSearch!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearchTypeOnly = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearchTypeOnly) + else if (IsFileSearch) { - assistantFileSearchTypeOnly?.Invoke(AssistantFileSearchTypeOnly!); + fileSearch?.Invoke(FileSearch!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearchTypeOnly, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem3 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearchTypeOnly, other.AssistantFileSearchTypeOnly) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem4.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem4.g.cs index 14c82471..6d802e2b 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem4.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem4.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem4 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem4 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem4(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem4(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem4 @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem4 @this) => @this.FileSearch; /// /// /// public ToolsItem4(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem4(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem4 @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem4 @this) => @this.Function; /// /// /// public ToolsItem4(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem4(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem4( global::OpenAI.CreateRunRequestToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem4 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem5.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem5.g.cs index eaa7086c..1387efe4 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem5.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem5.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem5 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem5 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem5(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem5(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem5 @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem5 @this) => @this.FileSearch; /// /// /// public ToolsItem5(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem5(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem5 @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem5 @this) => @this.Function; /// /// /// public ToolsItem5(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem5(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem5( global::OpenAI.CreateThreadAndRunRequestToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem5 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem6.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem6.g.cs index b500d1f2..1c58bf07 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem6.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem6.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem6 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem6 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem6(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; init; } + public global::OpenAI.AssistantToolsFileSearchTypeOnly? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearchTypeOnly? AssistantFileSearchTypeOnly { get; } + public global::OpenAI.AssistantToolsFileSearchTypeOnly? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearchTypeOnly))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearchTypeOnly => AssistantFileSearchTypeOnly != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,14 +75,14 @@ public ToolsItem6(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearchTypeOnly?(ToolsItem6 @this) => @this.AssistantFileSearchTypeOnly; + public static implicit operator global::OpenAI.AssistantToolsFileSearchTypeOnly?(ToolsItem6 @this) => @this.FileSearch; /// /// /// public ToolsItem6(global::OpenAI.AssistantToolsFileSearchTypeOnly? value) { - AssistantFileSearchTypeOnly = value; + FileSearch = value; } /// @@ -90,22 +90,22 @@ public ToolsItem6(global::OpenAI.AssistantToolsFileSearchTypeOnly? value) /// public ToolsItem6( global::OpenAI.MessageObjectAttachmentToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearchTypeOnly? assistantFileSearchTypeOnly + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearchTypeOnly? fileSearch ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearchTypeOnly = assistantFileSearchTypeOnly; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; } /// /// /// public object? Object => - AssistantFileSearchTypeOnly as object ?? - AssistantCode as object + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -113,15 +113,15 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearchTypeOnly || !IsAssistantCode && IsAssistantFileSearchTypeOnly; + return IsCodeInterpreter && !IsFileSearch || !IsCodeInterpreter && IsFileSearch; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearchTypeOnly = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearchTypeOnly && assistantFileSearchTypeOnly != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearchTypeOnly(AssistantFileSearchTypeOnly!); + return fileSearch(FileSearch!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearchTypeOnly = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearchTypeOnly) + else if (IsFileSearch) { - assistantFileSearchTypeOnly?.Invoke(AssistantFileSearchTypeOnly!); + fileSearch?.Invoke(FileSearch!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearchTypeOnly, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearchTypeOnly), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem6 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearchTypeOnly, other.AssistantFileSearchTypeOnly) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem7.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem7.g.cs index d0ca7548..91f63eea 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem7.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem7.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem7 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem7 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem7(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem7(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem7 @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem7 @this) => @this.FileSearch; /// /// /// public ToolsItem7(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem7(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem7 @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem7 @this) => @this.Function; /// /// /// public ToolsItem7(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem7(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem7( global::OpenAI.ModifyAssistantRequestToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem7 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem8.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem8.g.cs index ddcbc8f9..2d617ae0 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem8.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.ToolsItem8.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsCode? AssistantCode { get; init; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; init; } #else - public global::OpenAI.AssistantToolsCode? AssistantCode { get; } + public global::OpenAI.AssistantToolsCode? CodeInterpreter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantCode))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeInterpreter))] #endif - public bool IsAssistantCode => AssistantCode != null; + public bool IsCodeInterpreter => CodeInterpreter != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem8 @this) => @this.AssistantCode; + public static implicit operator global::OpenAI.AssistantToolsCode?(ToolsItem8 @this) => @this.CodeInterpreter; /// /// /// public ToolsItem8(global::OpenAI.AssistantToolsCode? value) { - AssistantCode = value; + CodeInterpreter = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; init; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; init; } #else - public global::OpenAI.AssistantToolsFileSearch? AssistantFileSearch { get; } + public global::OpenAI.AssistantToolsFileSearch? FileSearch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFileSearch))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] #endif - public bool IsAssistantFileSearch => AssistantFileSearch != null; + public bool IsFileSearch => FileSearch != null; /// /// @@ -75,32 +75,32 @@ public ToolsItem8(global::OpenAI.AssistantToolsCode? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem8 @this) => @this.AssistantFileSearch; + public static implicit operator global::OpenAI.AssistantToolsFileSearch?(ToolsItem8 @this) => @this.FileSearch; /// /// /// public ToolsItem8(global::OpenAI.AssistantToolsFileSearch? value) { - AssistantFileSearch = value; + FileSearch = value; } /// /// /// #if NET6_0_OR_GREATER - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; init; } + public global::OpenAI.AssistantToolsFunction? Function { get; init; } #else - public global::OpenAI.AssistantToolsFunction? AssistantFunction { get; } + public global::OpenAI.AssistantToolsFunction? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantFunction))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsAssistantFunction => AssistantFunction != null; + public bool IsFunction => Function != null; /// /// @@ -110,14 +110,14 @@ public ToolsItem8(global::OpenAI.AssistantToolsFileSearch? value) /// /// /// - public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem8 @this) => @this.AssistantFunction; + public static implicit operator global::OpenAI.AssistantToolsFunction?(ToolsItem8 @this) => @this.Function; /// /// /// public ToolsItem8(global::OpenAI.AssistantToolsFunction? value) { - AssistantFunction = value; + Function = value; } /// @@ -125,25 +125,25 @@ public ToolsItem8(global::OpenAI.AssistantToolsFunction? value) /// public ToolsItem8( global::OpenAI.RunObjectToolDiscriminatorType? type, - global::OpenAI.AssistantToolsCode? assistantCode, - global::OpenAI.AssistantToolsFileSearch? assistantFileSearch, - global::OpenAI.AssistantToolsFunction? assistantFunction + global::OpenAI.AssistantToolsCode? codeInterpreter, + global::OpenAI.AssistantToolsFileSearch? fileSearch, + global::OpenAI.AssistantToolsFunction? function ) { Type = type; - AssistantCode = assistantCode; - AssistantFileSearch = assistantFileSearch; - AssistantFunction = assistantFunction; + CodeInterpreter = codeInterpreter; + FileSearch = fileSearch; + Function = function; } /// /// /// public object? Object => - AssistantFunction as object ?? - AssistantFileSearch as object ?? - AssistantCode as object + Function as object ?? + FileSearch as object ?? + CodeInterpreter as object ; /// @@ -151,16 +151,16 @@ AssistantCode as object /// public bool Validate() { - return IsAssistantCode && !IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && IsAssistantFileSearch && !IsAssistantFunction || !IsAssistantCode && !IsAssistantFileSearch && IsAssistantFunction; + return IsCodeInterpreter && !IsFileSearch && !IsFunction || !IsCodeInterpreter && IsFileSearch && !IsFunction || !IsCodeInterpreter && !IsFileSearch && IsFunction; } /// /// /// public TResult? Match( - global::System.Func? assistantCode = null, - global::System.Func? assistantFileSearch = null, - global::System.Func? assistantFunction = null, + global::System.Func? codeInterpreter = null, + global::System.Func? fileSearch = null, + global::System.Func? function = null, bool validate = true) { if (validate) @@ -168,17 +168,17 @@ public bool Validate() Validate(); } - if (IsAssistantCode && assistantCode != null) + if (IsCodeInterpreter && codeInterpreter != null) { - return assistantCode(AssistantCode!); + return codeInterpreter(CodeInterpreter!); } - else if (IsAssistantFileSearch && assistantFileSearch != null) + else if (IsFileSearch && fileSearch != null) { - return assistantFileSearch(AssistantFileSearch!); + return fileSearch(FileSearch!); } - else if (IsAssistantFunction && assistantFunction != null) + else if (IsFunction && function != null) { - return assistantFunction(AssistantFunction!); + return function(Function!); } return default(TResult); @@ -188,9 +188,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? assistantCode = null, - global::System.Action? assistantFileSearch = null, - global::System.Action? assistantFunction = null, + global::System.Action? codeInterpreter = null, + global::System.Action? fileSearch = null, + global::System.Action? function = null, bool validate = true) { if (validate) @@ -198,17 +198,17 @@ public void Match( Validate(); } - if (IsAssistantCode) + if (IsCodeInterpreter) { - assistantCode?.Invoke(AssistantCode!); + codeInterpreter?.Invoke(CodeInterpreter!); } - else if (IsAssistantFileSearch) + else if (IsFileSearch) { - assistantFileSearch?.Invoke(AssistantFileSearch!); + fileSearch?.Invoke(FileSearch!); } - else if (IsAssistantFunction) + else if (IsFunction) { - assistantFunction?.Invoke(AssistantFunction!); + function?.Invoke(Function!); } } @@ -219,11 +219,11 @@ public override int GetHashCode() { var fields = new object?[] { - AssistantCode, + CodeInterpreter, typeof(global::OpenAI.AssistantToolsCode), - AssistantFileSearch, + FileSearch, typeof(global::OpenAI.AssistantToolsFileSearch), - AssistantFunction, + Function, typeof(global::OpenAI.AssistantToolsFunction), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolsItem8 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantCode, other.AssistantCode) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFileSearch, other.AssistantFileSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantFunction, other.AssistantFunction) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeInterpreter, other.CodeInterpreter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) ; } diff --git a/src/libs/OpenAI/Generated/OpenAI.Models.VectorStoreFileObjectChunkingStrategy.g.cs b/src/libs/OpenAI/Generated/OpenAI.Models.VectorStoreFileObjectChunkingStrategy.g.cs index 9fd8e9a6..9b0270e4 100644 --- a/src/libs/OpenAI/Generated/OpenAI.Models.VectorStoreFileObjectChunkingStrategy.g.cs +++ b/src/libs/OpenAI/Generated/OpenAI.Models.VectorStoreFileObjectChunkingStrategy.g.cs @@ -19,18 +19,18 @@ namespace OpenAI /// /// #if NET6_0_OR_GREATER - public global::OpenAI.StaticChunkingStrategyResponseParam? StaticResponseParam { get; init; } + public global::OpenAI.StaticChunkingStrategyResponseParam? Static { get; init; } #else - public global::OpenAI.StaticChunkingStrategyResponseParam? StaticResponseParam { get; } + public global::OpenAI.StaticChunkingStrategyResponseParam? Static { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StaticResponseParam))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Static))] #endif - public bool IsStaticResponseParam => StaticResponseParam != null; + public bool IsStatic => Static != null; /// /// @@ -40,32 +40,32 @@ namespace OpenAI /// /// /// - public static implicit operator global::OpenAI.StaticChunkingStrategyResponseParam?(VectorStoreFileObjectChunkingStrategy @this) => @this.StaticResponseParam; + public static implicit operator global::OpenAI.StaticChunkingStrategyResponseParam?(VectorStoreFileObjectChunkingStrategy @this) => @this.Static; /// /// /// public VectorStoreFileObjectChunkingStrategy(global::OpenAI.StaticChunkingStrategyResponseParam? value) { - StaticResponseParam = value; + Static = value; } /// /// This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the `chunking_strategy` concept was introduced in the API. /// #if NET6_0_OR_GREATER - public global::OpenAI.OtherChunkingStrategyResponseParam? OtherResponseParam { get; init; } + public global::OpenAI.OtherChunkingStrategyResponseParam? Other { get; init; } #else - public global::OpenAI.OtherChunkingStrategyResponseParam? OtherResponseParam { get; } + public global::OpenAI.OtherChunkingStrategyResponseParam? Other { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtherResponseParam))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Other))] #endif - public bool IsOtherResponseParam => OtherResponseParam != null; + public bool IsOther => Other != null; /// /// @@ -75,14 +75,14 @@ public VectorStoreFileObjectChunkingStrategy(global::OpenAI.StaticChunkingStrate /// /// /// - public static implicit operator global::OpenAI.OtherChunkingStrategyResponseParam?(VectorStoreFileObjectChunkingStrategy @this) => @this.OtherResponseParam; + public static implicit operator global::OpenAI.OtherChunkingStrategyResponseParam?(VectorStoreFileObjectChunkingStrategy @this) => @this.Other; /// /// /// public VectorStoreFileObjectChunkingStrategy(global::OpenAI.OtherChunkingStrategyResponseParam? value) { - OtherResponseParam = value; + Other = value; } /// @@ -90,22 +90,22 @@ public VectorStoreFileObjectChunkingStrategy(global::OpenAI.OtherChunkingStrateg /// public VectorStoreFileObjectChunkingStrategy( global::OpenAI.VectorStoreFileObjectChunkingStrategyDiscriminatorType? type, - global::OpenAI.StaticChunkingStrategyResponseParam? staticResponseParam, - global::OpenAI.OtherChunkingStrategyResponseParam? otherResponseParam + global::OpenAI.StaticChunkingStrategyResponseParam? @static, + global::OpenAI.OtherChunkingStrategyResponseParam? other ) { Type = type; - StaticResponseParam = staticResponseParam; - OtherResponseParam = otherResponseParam; + Static = @static; + Other = other; } /// /// /// public object? Object => - OtherResponseParam as object ?? - StaticResponseParam as object + Other as object ?? + Static as object ; /// @@ -113,15 +113,15 @@ StaticResponseParam as object /// public bool Validate() { - return IsStaticResponseParam && !IsOtherResponseParam || !IsStaticResponseParam && IsOtherResponseParam; + return IsStatic && !IsOther || !IsStatic && IsOther; } /// /// /// public TResult? Match( - global::System.Func? staticResponseParam = null, - global::System.Func? otherResponseParam = null, + global::System.Func? @static = null, + global::System.Func? other = null, bool validate = true) { if (validate) @@ -129,13 +129,13 @@ public bool Validate() Validate(); } - if (IsStaticResponseParam && staticResponseParam != null) + if (IsStatic && @static != null) { - return staticResponseParam(StaticResponseParam!); + return @static(Static!); } - else if (IsOtherResponseParam && otherResponseParam != null) + else if (IsOther && other != null) { - return otherResponseParam(OtherResponseParam!); + return other(Other!); } return default(TResult); @@ -145,8 +145,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? staticResponseParam = null, - global::System.Action? otherResponseParam = null, + global::System.Action? @static = null, + global::System.Action? other = null, bool validate = true) { if (validate) @@ -154,13 +154,13 @@ public void Match( Validate(); } - if (IsStaticResponseParam) + if (IsStatic) { - staticResponseParam?.Invoke(StaticResponseParam!); + @static?.Invoke(Static!); } - else if (IsOtherResponseParam) + else if (IsOther) { - otherResponseParam?.Invoke(OtherResponseParam!); + other?.Invoke(Other!); } } @@ -171,9 +171,9 @@ public override int GetHashCode() { var fields = new object?[] { - StaticResponseParam, + Static, typeof(global::OpenAI.StaticChunkingStrategyResponseParam), - OtherResponseParam, + Other, typeof(global::OpenAI.OtherChunkingStrategyResponseParam), }; const int offset = unchecked((int)2166136261); @@ -190,8 +190,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(VectorStoreFileObjectChunkingStrategy other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(StaticResponseParam, other.StaticResponseParam) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(OtherResponseParam, other.OtherResponseParam) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Static, other.Static) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Other, other.Other) ; }