From baa987ba46d9de51f2274c637b4eb2d0221e7c6f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Sep 2024 15:22:00 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...hreadIdRunsRunIdSubmitToolOutputsPost.g.cs | 3 + .../AI21.Models.SubmitToolOutputsRequest.g.cs | 6 + ...AI21.Models.SubmitToolOutputsResponse.g.cs | 72 ++++++++++ .../Generated/AI21.Models.ToolCallOutput.g.cs | 30 +++++ .../AI21.Models.ToolCallOutputOutput.g.cs | 18 +++ .../Generated/JsonSerializerContextTypes.g.cs | 126 ++++++++++-------- src/libs/AI21/openapi.yaml | 65 +++++++++ 7 files changed, 263 insertions(+), 57 deletions(-) create mode 100644 src/libs/AI21/Generated/AI21.Models.ToolCallOutput.g.cs create mode 100644 src/libs/AI21/Generated/AI21.Models.ToolCallOutputOutput.g.cs diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs index 3b8c169..8944a00 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs @@ -111,15 +111,18 @@ partial void ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSu /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync( string threadId, string runId, + global::System.Collections.Generic.IList toolOutputs, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::AI21.SubmitToolOutputsRequest { + ToolOutputs = toolOutputs, }; return await SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync( diff --git a/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs index 929d300..3788565 100644 --- a/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs @@ -8,6 +8,12 @@ namespace AI21 /// public sealed partial class SubmitToolOutputsRequest { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_outputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ToolOutputs { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs index 18258dd..924b42f 100644 --- a/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs @@ -8,6 +8,78 @@ namespace AI21 /// public sealed partial class SubmitToolOutputsResponse { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thread_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ThreadId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AssistantId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// An enumeration. + /// + [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; } + + /// + /// An enumeration. + /// + [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; } + + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Object { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_id")] + public string? ExecutionId { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/AI21/Generated/AI21.Models.ToolCallOutput.g.cs b/src/libs/AI21/Generated/AI21.Models.ToolCallOutput.g.cs new file mode 100644 index 0000000..973e40a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ToolCallOutput.g.cs @@ -0,0 +1,30 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class ToolCallOutput + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolCallId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::AI21.ToolCallOutputOutput? Output { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ToolCallOutputOutput.g.cs b/src/libs/AI21/Generated/AI21.Models.ToolCallOutputOutput.g.cs new file mode 100644 index 0000000..219ea75 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ToolCallOutputOutput.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class ToolCallOutputOutput + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs b/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs index 395adc9..741d7e8 100644 --- a/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs @@ -533,230 +533,242 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AI21.SubmitToolOutputsResponse? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::AI21.SummarizationResponse? Type131 { get; set; } + public global::AI21.ToolCallOutput? Type131 { get; set; } /// /// /// - public global::AI21.SummarizeBody? Type132 { get; set; } + public global::AI21.ToolCallOutputOutput? Type132 { get; set; } /// /// /// - public global::AI21.SummaryMethod? Type133 { get; set; } + public global::AI21.SubmitToolOutputsResponse? Type133 { get; set; } /// /// /// - public global::AI21.SummarizeBySegmentResponse? Type134 { get; set; } + public global::AI21.SummarizationResponse? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::AI21.SummarizeBody? Type135 { get; set; } /// /// /// - public global::AI21.SystemMessage? Type136 { get; set; } + public global::AI21.SummaryMethod? Type136 { get; set; } /// /// /// - public global::AI21.SystemMessageRole? Type137 { get; set; } + public global::AI21.SummarizeBySegmentResponse? Type137 { get; set; } /// /// /// - public global::AI21.TokenizeBody? Type138 { get; set; } + public global::System.Collections.Generic.IList? Type138 { get; set; } /// /// /// - public global::AI21.ToolDefinition? Type139 { get; set; } + public global::AI21.SystemMessage? Type139 { get; set; } /// /// /// - public global::AI21.ToolDefinitionType? Type140 { get; set; } + public global::AI21.SystemMessageRole? Type140 { get; set; } /// /// /// - public global::AI21.ToolMessage? Type141 { get; set; } + public global::AI21.TokenizeBody? Type141 { get; set; } /// /// /// - public global::AI21.ToolMessageRole? Type142 { get; set; } + public global::AI21.ToolDefinition? Type142 { get; set; } /// /// /// - public global::AI21.UserMessage? Type143 { get; set; } + public global::AI21.ToolDefinitionType? Type143 { get; set; } /// /// /// - public global::AI21.UserMessageRole? Type144 { get; set; } + public global::AI21.ToolMessage? Type144 { get; set; } /// /// /// - public global::AI21.LanguageStudioApiServerDataTypesChatChatRequest? Type145 { get; set; } + public global::AI21.ToolMessageRole? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type146 { get; set; } + public global::AI21.UserMessage? Type146 { get; set; } /// /// /// - public global::System.OneOf? Type147 { get; set; } + public global::AI21.UserMessageRole? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::AI21.LanguageStudioApiServerDataTypesChatChatRequest? Type148 { get; set; } /// /// /// - public global::System.AnyOf>? Type149 { get; set; } + public global::System.Collections.Generic.IList>? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type150 { get; set; } + public global::System.OneOf? Type150 { get; set; } /// /// /// - public global::System.AllOf? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::AI21.LanguageStudioApiServerDataTypesJ2ChatChatRequest? Type152 { get; set; } + public global::System.AnyOf>? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::AI21.ConvertDocumentFileStudioV1ChatFilesConvertPostResponse? Type154 { get; set; } + public global::System.AllOf? Type154 { get; set; } /// /// /// - public global::System.AnyOf>? Type155 { get; set; } + public global::AI21.LanguageStudioApiServerDataTypesJ2ChatChatRequest? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::System.Collections.Generic.IList? Type156 { get; set; } /// /// /// - public global::AI21.V1J2LightCompleteResponse? Type157 { get; set; } + public global::AI21.ConvertDocumentFileStudioV1ChatFilesConvertPostResponse? Type157 { get; set; } /// /// /// - public global::AI21.V1J2LightCustomModelCompleteResponse? Type158 { get; set; } + public global::System.AnyOf>? Type158 { get; set; } /// /// /// - public global::AI21.V1J2MidCompleteResponse? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::AI21.V1J2MidCustomModelCompleteResponse? Type160 { get; set; } + public global::AI21.V1J2LightCompleteResponse? Type160 { get; set; } /// /// /// - public global::AI21.V1J2UltraCompleteResponse? Type161 { get; set; } + public global::AI21.V1J2LightCustomModelCompleteResponse? Type161 { get; set; } /// /// /// - public global::AI21.V1J2UltraCompleteResponse2? Type162 { get; set; } + public global::AI21.V1J2MidCompleteResponse? Type162 { get; set; } /// /// /// - public global::AI21.V1J2LargeCompleteResponse? Type163 { get; set; } + public global::AI21.V1J2MidCustomModelCompleteResponse? Type163 { get; set; } /// /// /// - public global::AI21.V1J2LargeInstructCompleteResponse? Type164 { get; set; } + public global::AI21.V1J2UltraCompleteResponse? Type164 { get; set; } /// /// /// - public global::AI21.V1J2GrandeCompleteResponse? Type165 { get; set; } + public global::AI21.V1J2UltraCompleteResponse2? Type165 { get; set; } /// /// /// - public global::AI21.V1J2GrandeInstructCompleteResponse? Type166 { get; set; } + public global::AI21.V1J2LargeCompleteResponse? Type166 { get; set; } /// /// /// - public global::AI21.V1J2JumboCompleteResponse? Type167 { get; set; } + public global::AI21.V1J2LargeInstructCompleteResponse? Type167 { get; set; } /// /// /// - public global::AI21.V1J2JumboInstructCompleteResponse? Type168 { get; set; } + public global::AI21.V1J2GrandeCompleteResponse? Type168 { get; set; } /// /// /// - public global::AI21.V1J2LargeCustomModelCompleteResponse? Type169 { get; set; } + public global::AI21.V1J2GrandeInstructCompleteResponse? Type169 { get; set; } /// /// /// - public global::AI21.V1J2GrandeCustomModelCompleteResponse? Type170 { get; set; } + public global::AI21.V1J2JumboCompleteResponse? Type170 { get; set; } /// /// /// - public global::AI21.V1J2JumboCompleteResponse2? Type171 { get; set; } + public global::AI21.V1J2JumboInstructCompleteResponse? Type171 { get; set; } /// /// /// - public global::AI21.V1GetCustomModelsResponse? Type172 { get; set; } + public global::AI21.V1J2LargeCustomModelCompleteResponse? Type172 { get; set; } /// /// /// - public global::AI21.V1CreateCustomModelResponse? Type173 { get; set; } + public global::AI21.V1J2GrandeCustomModelCompleteResponse? Type173 { get; set; } /// /// /// - public global::AI21.V1GetCustomModelResponse? Type174 { get; set; } + public global::AI21.V1J2JumboCompleteResponse2? Type174 { get; set; } /// /// /// - public global::AI21.V1UpdateCustomModelResponse? Type175 { get; set; } + public global::AI21.V1GetCustomModelsResponse? Type175 { get; set; } /// /// /// - public global::AI21.V1GetDatasetsResponse? Type176 { get; set; } + public global::AI21.V1CreateCustomModelResponse? Type176 { get; set; } /// /// /// - public global::AI21.V1UploadDatasetResponse? Type177 { get; set; } + public global::AI21.V1GetCustomModelResponse? Type177 { get; set; } /// /// /// - public global::AI21.V1GetDatasetResponse? Type178 { get; set; } + public global::AI21.V1UpdateCustomModelResponse? Type178 { get; set; } /// /// /// - public global::AI21.V1DeleteDatasetResponse? Type179 { get; set; } + public global::AI21.V1GetDatasetsResponse? Type179 { get; set; } /// /// /// - public global::AI21.V1GetDatasetDownloadUrlResponse? Type180 { get; set; } + public global::AI21.V1UploadDatasetResponse? Type180 { get; set; } /// /// /// - public global::AI21.V1ParaphrazeResponse? Type181 { get; set; } + public global::AI21.V1GetDatasetResponse? Type181 { get; set; } /// /// /// - public global::AI21.V1EmbedResponse? Type182 { get; set; } + public global::AI21.V1DeleteDatasetResponse? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::AI21.V1GetDatasetDownloadUrlResponse? Type183 { get; set; } /// /// /// - public global::AI21.V1LibraryManagementResponse? Type184 { get; set; } + public global::AI21.V1ParaphrazeResponse? Type184 { get; set; } /// /// /// - public global::AI21.V1AnswerResponse? Type185 { get; set; } + public global::AI21.V1EmbedResponse? Type185 { get; set; } /// /// /// - public global::AI21.V1TokenizeResponse? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } + /// + /// + /// + public global::AI21.V1LibraryManagementResponse? Type187 { get; set; } + /// + /// + /// + public global::AI21.V1AnswerResponse? Type188 { get; set; } + /// + /// + /// + public global::AI21.V1TokenizeResponse? Type189 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AI21/openapi.yaml b/src/libs/AI21/openapi.yaml index 39e05f1..d538294 100644 --- a/src/libs/AI21/openapi.yaml +++ b/src/libs/AI21/openapi.yaml @@ -3046,10 +3046,64 @@ components: description: An enumeration. SubmitToolOutputsRequest: title: SubmitToolOutputsRequest + required: + - tool_outputs type: object + properties: + tool_outputs: + title: Tool Outputs + type: array + items: + $ref: '#/components/schemas/ToolCallOutput' SubmitToolOutputsResponse: title: SubmitToolOutputsResponse + required: + - thread_id + - assistant_id + - description + - status + - optimization + - id + - created_at + - updated_at + - object type: object + properties: + thread_id: + title: Thread Id + type: string + format: uuid + assistant_id: + title: Assistant Id + type: string + format: uuid + description: + title: Description + type: string + status: + $ref: '#/components/schemas/RunStatus' + optimization: + $ref: '#/components/schemas/RunOptimization' + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + format: uuid + created_at: + title: Created At + type: string + format: date-time + updated_at: + title: Updated At + type: string + format: date-time + object: + title: Object + type: string + execution_id: + title: Execution Id + type: string + format: uuid SummarizationResponse: title: SummarizationResponse required: @@ -3163,6 +3217,17 @@ components: default: function function: $ref: '#/components/schemas/ToolFunction' + ToolCallOutput: + title: ToolCallOutput + required: + - tool_call_id + type: object + properties: + tool_call_id: + title: Tool Call Id + type: string + output: + title: Output ToolDefinition: title: ToolDefinition required: