generated from tryAGI/SdkTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions[bot]
committed
Dec 21, 2024
1 parent
e35f7b6
commit 056a689
Showing
8 changed files
with
288 additions
and
69 deletions.
There are no files selected for viewing
140 changes: 72 additions & 68 deletions
140
src/libs/Ultravox/Generated/JsonSerializerContextTypes.g.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1VadSettings.Json.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
#nullable enable | ||
|
||
namespace Ultravox | ||
{ | ||
public sealed partial class UltravoxV1VadSettings | ||
{ | ||
/// <summary> | ||
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext. | ||
/// </summary> | ||
public string ToJson( | ||
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) | ||
{ | ||
return global::System.Text.Json.JsonSerializer.Serialize( | ||
this, | ||
this.GetType(), | ||
jsonSerializerContext); | ||
} | ||
|
||
/// <summary> | ||
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. | ||
/// </summary> | ||
#if NET8_0_OR_GREATER | ||
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] | ||
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] | ||
#endif | ||
public string ToJson( | ||
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) | ||
{ | ||
return global::System.Text.Json.JsonSerializer.Serialize( | ||
this, | ||
jsonSerializerOptions); | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a JSON string using the provided JsonSerializerContext. | ||
/// </summary> | ||
public static global::Ultravox.UltravoxV1VadSettings? FromJson( | ||
string json, | ||
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) | ||
{ | ||
return global::System.Text.Json.JsonSerializer.Deserialize( | ||
json, | ||
typeof(global::Ultravox.UltravoxV1VadSettings), | ||
jsonSerializerContext) as global::Ultravox.UltravoxV1VadSettings; | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a JSON string using the provided JsonSerializerOptions. | ||
/// </summary> | ||
#if NET8_0_OR_GREATER | ||
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] | ||
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] | ||
#endif | ||
public static global::Ultravox.UltravoxV1VadSettings? FromJson( | ||
string json, | ||
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) | ||
{ | ||
return global::System.Text.Json.JsonSerializer.Deserialize<global::Ultravox.UltravoxV1VadSettings>( | ||
json, | ||
jsonSerializerOptions); | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a JSON stream using the provided JsonSerializerContext. | ||
/// </summary> | ||
public static async global::System.Threading.Tasks.ValueTask<global::Ultravox.UltravoxV1VadSettings?> FromJsonStreamAsync( | ||
global::System.IO.Stream jsonStream, | ||
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) | ||
{ | ||
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( | ||
jsonStream, | ||
typeof(global::Ultravox.UltravoxV1VadSettings), | ||
jsonSerializerContext).ConfigureAwait(false)) as global::Ultravox.UltravoxV1VadSettings; | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a JSON stream using the provided JsonSerializerOptions. | ||
/// </summary> | ||
#if NET8_0_OR_GREATER | ||
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] | ||
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] | ||
#endif | ||
public static global::System.Threading.Tasks.ValueTask<global::Ultravox.UltravoxV1VadSettings?> FromJsonStreamAsync( | ||
global::System.IO.Stream jsonStream, | ||
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) | ||
{ | ||
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Ultravox.UltravoxV1VadSettings?>( | ||
jsonStream, | ||
jsonSerializerOptions); | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1VadSettings.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
#nullable enable | ||
|
||
namespace Ultravox | ||
{ | ||
/// <summary> | ||
/// Call-level VAD settings. | ||
/// </summary> | ||
public sealed partial class UltravoxV1VadSettings | ||
{ | ||
/// <summary> | ||
/// The delay to wait after the last speech frame before ending the user's "turn". Increasing<br/> | ||
/// this value makes the agent wait longer before speaking after the user stops speaking. | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("turnEndpointDelay")] | ||
public string? TurnEndpointDelay { get; set; } | ||
|
||
/// <summary> | ||
/// The minimum duration of user speech required to be considered a user turn. | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("minimumTurnDuration")] | ||
public string? MinimumTurnDuration { get; set; } | ||
|
||
/// <summary> | ||
/// The minimum duration of user speech required to interrupt the agent. | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("minimumInterruptionDuration")] | ||
public string? MinimumInterruptionDuration { get; set; } | ||
|
||
/// <summary> | ||
/// Additional properties that are not explicitly defined in the schema | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonExtensionData] | ||
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>(); | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UltravoxV1VadSettings" /> class. | ||
/// </summary> | ||
/// <param name="turnEndpointDelay"> | ||
/// The delay to wait after the last speech frame before ending the user's "turn". Increasing<br/> | ||
/// this value makes the agent wait longer before speaking after the user stops speaking. | ||
/// </param> | ||
/// <param name="minimumTurnDuration"> | ||
/// The minimum duration of user speech required to be considered a user turn. | ||
/// </param> | ||
/// <param name="minimumInterruptionDuration"> | ||
/// The minimum duration of user speech required to interrupt the agent. | ||
/// </param> | ||
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] | ||
public UltravoxV1VadSettings( | ||
string? turnEndpointDelay, | ||
string? minimumTurnDuration, | ||
string? minimumInterruptionDuration) | ||
{ | ||
this.TurnEndpointDelay = turnEndpointDelay; | ||
this.MinimumTurnDuration = minimumTurnDuration; | ||
this.MinimumInterruptionDuration = minimumInterruptionDuration; | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UltravoxV1VadSettings" /> class. | ||
/// </summary> | ||
public UltravoxV1VadSettings() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters