Skip to content

Commit

Permalink
Merge pull request #34 from tryAGI/bot/update-openapi_202409121521
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 12, 2024
2 parents 540b66d + baa987b commit 7538df0
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,18 @@ partial void ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSu
/// </summary>
/// <param name="threadId"></param>
/// <param name="runId"></param>
/// <param name="toolOutputs"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::AI21.SubmitToolOutputsResponse> SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync(
string threadId,
string runId,
global::System.Collections.Generic.IList<global::AI21.ToolCallOutput> toolOutputs,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::AI21.SubmitToolOutputsRequest
{
ToolOutputs = toolOutputs,
};

return await SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace AI21
/// </summary>
public sealed partial class SubmitToolOutputsRequest
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_outputs")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::AI21.ToolCallOutput> ToolOutputs { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
72 changes: 72 additions & 0 deletions src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,78 @@ namespace AI21
/// </summary>
public sealed partial class SubmitToolOutputsResponse
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("thread_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ThreadId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string AssistantId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("description")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Description { get; set; }

/// <summary>
/// An enumeration.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::AI21.RunStatus Status { get; set; }

/// <summary>
/// An enumeration.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("optimization")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.RunOptimizationJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::AI21.RunOptimization Optimization { get; set; }

/// <summary>
/// A unique ID for the request (not the message). Repeated identical requests<br/>
/// get different IDs. However, for a streaming response, the ID will be the same<br/>
/// for all responses in the stream.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Id { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime CreatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("updated_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime UpdatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Object { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("execution_id")]
public string? ExecutionId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
30 changes: 30 additions & 0 deletions src/libs/AI21/Generated/AI21.Models.ToolCallOutput.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

#nullable enable

namespace AI21
{
/// <summary>
///
/// </summary>
public sealed partial class ToolCallOutput
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ToolCallId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("output")]
public global::AI21.ToolCallOutputOutput? Output { 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>();
}
}
18 changes: 18 additions & 0 deletions src/libs/AI21/Generated/AI21.Models.ToolCallOutputOutput.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#nullable enable

namespace AI21
{
/// <summary>
///
/// </summary>
public sealed partial class ToolCallOutputOutput
{

/// <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>();
}
}
Loading

0 comments on commit 7538df0

Please sign in to comment.