diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs index 87bff6e46..501eb7cb5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs @@ -70,12 +70,12 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ScrollParam)}"); scroll = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::tryAGI.OpenAI.TypeParam? type = default; + global::tryAGI.OpenAI.TypeParam? typeValue = default; if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Type) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TypeParam)}"); - type = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + typeValue = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::tryAGI.OpenAI.WaitParam? wait = default; if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Wait) @@ -101,7 +101,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio scroll, - type, + typeValue, wait ); @@ -160,11 +160,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll!, typeInfo); } - else if (value.IsType) + else if (value.IsTypeValue) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Type!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TypeValue!, typeInfo); } else if (value.IsWait) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs index 5250ada1b..51ba32f80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs @@ -277,38 +277,38 @@ public bool TryPickScroll( /// An action to type in text. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.TypeParam? Type { get; init; } + public global::tryAGI.OpenAI.TypeParam? TypeValue { get; init; } #else - public global::tryAGI.OpenAI.TypeParam? Type { get; } + public global::tryAGI.OpenAI.TypeParam? TypeValue { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Type))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TypeValue))] #endif - public bool IsType => Type != null; + public bool IsTypeValue => TypeValue != null; /// /// /// - public bool TryPickType( + public bool TryPickTypeValue( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif out global::tryAGI.OpenAI.TypeParam? value) { - value = Type; - return IsType; + value = TypeValue; + return IsTypeValue; } /// /// /// - public global::tryAGI.OpenAI.TypeParam PickType() => IsType - ? Type! - : throw new global::System.InvalidOperationException($"Expected union variant 'Type' but the value was {ToString()}."); + public global::tryAGI.OpenAI.TypeParam PickTypeValue() => IsTypeValue + ? TypeValue! + : throw new global::System.InvalidOperationException($"Expected union variant 'TypeValue' but the value was {ToString()}."); /// /// A wait action. @@ -515,20 +515,20 @@ public ComputerAction(global::tryAGI.OpenAI.ScrollParam? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.TypeParam?(ComputerAction @this) => @this.Type; + public static implicit operator global::tryAGI.OpenAI.TypeParam?(ComputerAction @this) => @this.TypeValue; /// /// /// public ComputerAction(global::tryAGI.OpenAI.TypeParam? value) { - Type = value; + TypeValue = value; } /// /// /// - public static ComputerAction FromType(global::tryAGI.OpenAI.TypeParam? value) => new ComputerAction(value); + public static ComputerAction FromTypeValue(global::tryAGI.OpenAI.TypeParam? value) => new ComputerAction(value); /// /// @@ -565,7 +565,7 @@ public ComputerAction( global::tryAGI.OpenAI.MoveParam? move, global::tryAGI.OpenAI.ScreenshotParam? screenshot, global::tryAGI.OpenAI.ScrollParam? scroll, - global::tryAGI.OpenAI.TypeParam? type, + global::tryAGI.OpenAI.TypeParam? typeValue, global::tryAGI.OpenAI.WaitParam? wait ) { @@ -578,7 +578,7 @@ public ComputerAction( Move = move; Screenshot = screenshot; Scroll = scroll; - Type = type; + TypeValue = typeValue; Wait = wait; } @@ -587,7 +587,7 @@ public ComputerAction( /// public object? Object => Wait as object ?? - Type as object ?? + TypeValue as object ?? Scroll as object ?? Screenshot as object ?? Move as object ?? @@ -608,7 +608,7 @@ Click as object Move?.ToString() ?? Screenshot?.ToString() ?? Scroll?.ToString() ?? - Type?.ToString() ?? + TypeValue?.ToString() ?? Wait?.ToString() ; @@ -617,7 +617,7 @@ Click as object /// public bool Validate() { - return IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && IsMove && !IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && IsScreenshot && !IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && IsScroll && !IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && IsType && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsType && IsWait; + return IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && IsScreenshot && !IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && IsScroll && !IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && IsTypeValue && !IsWait || !IsClick && !IsDoubleClick && !IsDrag && !IsKeypress && !IsMove && !IsScreenshot && !IsScroll && !IsTypeValue && IsWait; } /// @@ -631,7 +631,7 @@ public bool Validate() global::System.Func? move = null, global::System.Func? screenshot = null, global::System.Func? scroll = null, - global::System.Func? type = null, + global::System.Func? typeValue = null, global::System.Func? wait = null, bool validate = true) { @@ -668,9 +668,9 @@ public bool Validate() { return scroll(Scroll!); } - else if (IsType && type != null) + else if (IsTypeValue && typeValue != null) { - return type(Type!); + return typeValue(TypeValue!); } else if (IsWait && wait != null) { @@ -698,7 +698,7 @@ public void Match( global::System.Action? scroll = null, - global::System.Action? type = null, + global::System.Action? typeValue = null, global::System.Action? wait = null, bool validate = true) @@ -736,9 +736,9 @@ public void Match( { scroll?.Invoke(Scroll!); } - else if (IsType) + else if (IsTypeValue) { - type?.Invoke(Type!); + typeValue?.Invoke(TypeValue!); } else if (IsWait) { @@ -757,7 +757,7 @@ public void Switch( global::System.Action? move = null, global::System.Action? screenshot = null, global::System.Action? scroll = null, - global::System.Action? type = null, + global::System.Action? typeValue = null, global::System.Action? wait = null, bool validate = true) { @@ -794,9 +794,9 @@ public void Switch( { scroll?.Invoke(Scroll!); } - else if (IsType) + else if (IsTypeValue) { - type?.Invoke(Type!); + typeValue?.Invoke(TypeValue!); } else if (IsWait) { @@ -825,7 +825,7 @@ public override int GetHashCode() typeof(global::tryAGI.OpenAI.ScreenshotParam), Scroll, typeof(global::tryAGI.OpenAI.ScrollParam), - Type, + TypeValue, typeof(global::tryAGI.OpenAI.TypeParam), Wait, typeof(global::tryAGI.OpenAI.WaitParam), @@ -852,7 +852,7 @@ public bool Equals(ComputerAction other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Move, other.Move) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Screenshot, other.Screenshot) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Scroll, other.Scroll) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Type, other.Type) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TypeValue, other.TypeValue) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Wait, other.Wait) ; }