-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added generation of AdditionalProperties schemas.
- Loading branch information
Showing
47 changed files
with
9,440 additions
and
8,246 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
...hots/Cohere/NewtonsoftJson/_#G.Models.ClassifyResponseClassificationLabels2.g.verified.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,24 @@ | ||
//HintName: G.Models.ClassifyResponseClassificationLabels2.g.cs | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// Included only in responses | ||
/// </summary> | ||
public sealed partial class ClassifyResponseClassificationLabels2 | ||
{ | ||
/// <summary> | ||
/// Included only in responses | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonProperty("confidence")] | ||
public float? Confidence { get; set; } | ||
|
||
/// <summary> | ||
/// Additional properties that are not explicitly defined in the schema | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonExtensionData] | ||
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>(); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...tTests/Snapshots/Cohere/NewtonsoftJson/_#G.Models.ToolParameterDefinitions2.g.verified.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,37 @@ | ||
//HintName: G.Models.ToolParameterDefinitions2.g.cs | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public sealed partial class ToolParameterDefinitions2 | ||
{ | ||
/// <summary> | ||
/// The description of the parameter. | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonProperty("description")] | ||
public string? Description { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the parameter. Must be a valid Python type. | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonProperty("type", Required = global::Newtonsoft.Json.Required.Always)] | ||
public string Type { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Denotes whether the parameter is always present (required) or not. Defaults to not required.<br/> | ||
/// Default Value: false | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonProperty("required")] | ||
public bool? Required { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Additional properties that are not explicitly defined in the schema | ||
/// </summary> | ||
[global::Newtonsoft.Json.JsonExtensionData] | ||
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...hots/Cohere/SystemTextJson/_#G.Models.ClassifyResponseClassificationLabels2.g.verified.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,24 @@ | ||
//HintName: G.Models.ClassifyResponseClassificationLabels2.g.cs | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// Included only in responses | ||
/// </summary> | ||
public sealed partial class ClassifyResponseClassificationLabels2 | ||
{ | ||
/// <summary> | ||
/// Included only in responses | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("confidence")] | ||
public float? Confidence { 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>(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...tTests/Snapshots/Cohere/SystemTextJson/_#G.Models.ToolParameterDefinitions2.g.verified.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,38 @@ | ||
//HintName: G.Models.ToolParameterDefinitions2.g.cs | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public sealed partial class ToolParameterDefinitions2 | ||
{ | ||
/// <summary> | ||
/// The description of the parameter. | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("description")] | ||
public string? Description { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the parameter. Must be a valid Python type. | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("type")] | ||
[global::System.Text.Json.Serialization.JsonRequired] | ||
public required string Type { get; set; } | ||
|
||
/// <summary> | ||
/// Denotes whether the parameter is always present (required) or not. Defaults to not required.<br/> | ||
/// Default Value: false | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("required")] | ||
public bool? Required { get; set; } = false; | ||
|
||
/// <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>(); | ||
} | ||
} |
Oops, something went wrong.