diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetMessagesStudioV1AssistantThreadsThreadIdMessagesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetMessagesStudioV1AssistantThreadsThreadIdMessagesGet.g.cs
new file mode 100644
index 0000000..f9c8178
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetMessagesStudioV1AssistantThreadsThreadIdMessagesGet.g.cs
@@ -0,0 +1,89 @@
+
+#nullable enable
+
+namespace AI21
+{
+ public partial class Ai21Api
+ {
+ partial void PrepareGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string threadId);
+ partial void PrepareGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string threadId);
+ partial void ProcessGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Get Messages
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task GetMessagesStudioV1AssistantThreadsThreadIdMessagesGetAsync(
+ string threadId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: _httpClient);
+ PrepareGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetArguments(
+ httpClient: _httpClient,
+ threadId: ref threadId);
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/studio/v1/assistant/threads/{threadId}/messages", global::System.UriKind.RelativeOrAbsolute));
+
+ PrepareRequest(
+ client: _httpClient,
+ request: httpRequest);
+ PrepareGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetRequest(
+ httpClient: _httpClient,
+ httpRequestMessage: httpRequest,
+ threadId: threadId);
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: _httpClient,
+ response: response);
+ ProcessGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetResponse(
+ httpClient: _httpClient,
+ httpResponseMessage: response);
+
+ var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: _httpClient,
+ response: response,
+ content: ref __content);
+ ProcessGetMessagesStudioV1AssistantThreadsThreadIdMessagesGetResponseContent(
+ httpClient: _httpClient,
+ httpResponseMessage: response,
+ content: ref __content);
+
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException ex)
+ {
+ throw new global::System.InvalidOperationException(__content, ex);
+ }
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::AI21.SourceGenerationContext.Default.GetMessagesResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs
new file mode 100644
index 0000000..3b8c169
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Ai21Api.SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPost.g.cs
@@ -0,0 +1,132 @@
+
+#nullable enable
+
+namespace AI21
+{
+ public partial class Ai21Api
+ {
+ partial void PrepareSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string threadId,
+ ref string runId,
+ global::AI21.SubmitToolOutputsRequest request);
+ partial void PrepareSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string threadId,
+ string runId,
+ global::AI21.SubmitToolOutputsRequest request);
+ partial void ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Submit Tool Outputs
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync(
+ string threadId,
+ string runId,
+ global::AI21.SubmitToolOutputsRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: _httpClient);
+ PrepareSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostArguments(
+ httpClient: _httpClient,
+ threadId: ref threadId,
+ runId: ref runId,
+ request: request);
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/studio/v1/assistant/threads/{threadId}/runs/{runId}/submit_tool_outputs", global::System.UriKind.RelativeOrAbsolute));
+ var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::AI21.SourceGenerationContext.Default.SubmitToolOutputsRequest);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: _httpClient,
+ request: httpRequest);
+ PrepareSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostRequest(
+ httpClient: _httpClient,
+ httpRequestMessage: httpRequest,
+ threadId: threadId,
+ runId: runId,
+ request: request);
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: _httpClient,
+ response: response);
+ ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostResponse(
+ httpClient: _httpClient,
+ httpResponseMessage: response);
+
+ var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: _httpClient,
+ response: response,
+ content: ref __content);
+ ProcessSubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostResponseContent(
+ httpClient: _httpClient,
+ httpResponseMessage: response,
+ content: ref __content);
+
+ try
+ {
+ response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException ex)
+ {
+ throw new global::System.InvalidOperationException(__content, ex);
+ }
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::AI21.SourceGenerationContext.Default.SubmitToolOutputsResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+
+ ///
+ /// Submit Tool Outputs
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync(
+ string threadId,
+ string runId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new global::AI21.SubmitToolOutputsRequest
+ {
+ };
+
+ return await SubmitToolOutputsStudioV1AssistantThreadsThreadIdRunsRunIdSubmitToolOutputsPostAsync(
+ threadId: threadId,
+ runId: runId,
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/AI21/Generated/AI21.Models.GetMessagesResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.GetMessagesResponse.g.cs
new file mode 100644
index 0000000..c3ce638
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Models.GetMessagesResponse.g.cs
@@ -0,0 +1,24 @@
+
+#nullable enable
+
+namespace AI21
+{
+ ///
+ ///
+ ///
+ public sealed partial class GetMessagesResponse
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("results")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Results { 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.MessageResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.MessageResponse.g.cs
new file mode 100644
index 0000000..7451b29
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Models.MessageResponse.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace AI21
+{
+ ///
+ ///
+ ///
+ public sealed partial class MessageResponse
+ {
+ ///
+ /// The role of an individual message.
+ /// - `user`: Input provided by the user. Any instructions given here that conflict
+ /// with instructions given in the `system` prompt take precedence over the `system`
+ /// prompt instructions.
+ /// - `assistant`: Response generated by the model.
+ /// - `system`: Initial instructions provided to the system to provide general guidance
+ /// on the tone and voice of the generated message. An initial system message is
+ /// optional but recommended to provide guidance on the tone of the chat. For
+ /// example, "You are a helpful chatbot with a background in earth sciences and a
+ /// charming French accent."
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("role")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Role { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("content")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Content { 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("thread_id")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string ThreadId { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")]
+ public string? AssistantId { 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.SubmitToolOutputsRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs
new file mode 100644
index 0000000..929d300
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsRequest.g.cs
@@ -0,0 +1,18 @@
+
+#nullable enable
+
+namespace AI21
+{
+ ///
+ ///
+ ///
+ public sealed partial class SubmitToolOutputsRequest
+ {
+
+ ///
+ /// 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.SubmitToolOutputsResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs
new file mode 100644
index 0000000..18258dd
--- /dev/null
+++ b/src/libs/AI21/Generated/AI21.Models.SubmitToolOutputsResponse.g.cs
@@ -0,0 +1,18 @@
+
+#nullable enable
+
+namespace AI21
+{
+ ///
+ ///
+ ///
+ public sealed partial class SubmitToolOutputsResponse
+ {
+
+ ///
+ /// 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 2a87959..395adc9 100644
--- a/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/AI21/Generated/JsonSerializerContextTypes.g.cs
@@ -369,374 +369,394 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::AI21.GetThreadRunResponse? Type89 { get; set; }
+ public global::AI21.GetMessagesResponse? Type89 { get; set; }
///
///
///
- public global::AI21.RunStatus? Type90 { get; set; }
+ public global::System.Collections.Generic.IList? Type90 { get; set; }
///
///
///
- public global::AI21.RunOptimization? Type91 { get; set; }
+ public global::AI21.MessageResponse? Type91 { get; set; }
///
///
///
- public global::AI21.HTTPValidationError? Type92 { get; set; }
+ public global::AI21.GetThreadRunResponse? Type92 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type93 { get; set; }
+ public global::AI21.RunStatus? Type93 { get; set; }
///
///
///
- public global::AI21.ValidationError? Type94 { get; set; }
+ public global::AI21.RunOptimization? Type94 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type95 { get; set; }
+ public global::AI21.HTTPValidationError? Type95 { get; set; }
///
///
///
- public global::System.AnyOf? Type96 { get; set; }
+ public global::System.Collections.Generic.IList? Type96 { get; set; }
///
///
///
- public global::AI21.Highlight? Type97 { get; set; }
+ public global::AI21.ValidationError? Type97 { get; set; }
///
///
///
- public global::AI21.LibraryAnswerRequest? Type98 { get; set; }
+ public global::System.Collections.Generic.IList>? Type98 { get; set; }
///
///
///
- public global::AI21.LibraryAnswerRequestLabelsFilterMode? Type99 { get; set; }
+ public global::System.AnyOf? Type99 { get; set; }
///
///
///
- public global::System.AllOf? Type100 { get; set; }
+ public global::AI21.Highlight? Type100 { get; set; }
///
///
///
- public global::AI21.RetrievalStrategy3? Type101 { get; set; }
+ public global::AI21.LibraryAnswerRequest? Type101 { get; set; }
///
///
///
- public global::AI21.LibraryAnswerResponse? Type102 { get; set; }
+ public global::AI21.LibraryAnswerRequestLabelsFilterMode? Type102 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type103 { get; set; }
+ public global::System.AllOf? Type103 { get; set; }
///
///
///
- public global::AI21.SourceDocument? Type104 { get; set; }
+ public global::AI21.RetrievalStrategy3? Type104 { get; set; }
///
///
///
- public global::AI21.LibrarySearchRequest? Type105 { get; set; }
+ public global::AI21.LibraryAnswerResponse? Type105 { get; set; }
///
///
///
- public global::AI21.LibrarySearchRequestLabelsFilterMode? Type106 { get; set; }
+ public global::System.Collections.Generic.IList? Type106 { get; set; }
///
///
///
- public global::AI21.LibrarySearchResponse? Type107 { get; set; }
+ public global::AI21.SourceDocument? Type107 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type108 { get; set; }
+ public global::AI21.LibrarySearchRequest? Type108 { get; set; }
///
///
///
- public global::AI21.LibrarySearchResult? Type109 { get; set; }
+ public global::AI21.LibrarySearchRequestLabelsFilterMode? Type109 { get; set; }
///
///
///
- public global::AI21.MockResponseConfig? Type110 { get; set; }
+ public global::AI21.LibrarySearchResponse? Type110 { get; set; }
///
///
///
- public global::AI21.ModelName? Type111 { get; set; }
+ public global::System.Collections.Generic.IList? Type111 { get; set; }
///
///
///
- public global::AI21.ParaphraseBody? Type112 { get; set; }
+ public global::AI21.LibrarySearchResult? Type112 { get; set; }
///
///
///
- public global::System.AllOf? Type113 { get; set; }
+ public global::AI21.MockResponseConfig? Type113 { get; set; }
///
///
///
- public global::AI21.StyleType? Type114 { get; set; }
+ public global::AI21.ModelName? Type114 { get; set; }
///
///
///
- public global::AI21.PostThreadRunRequest? Type115 { get; set; }
+ public global::AI21.ParaphraseBody? Type115 { get; set; }
///
///
///
- public global::AI21.PostThreadRunResponse? Type116 { get; set; }
+ public global::System.AllOf? Type116 { get; set; }
///
///
///
- public global::AI21.ResponseFormat? Type117 { get; set; }
+ public global::AI21.StyleType? Type117 { get; set; }
///
///
///
- public global::AI21.ResponseFormatType? Type118 { get; set; }
+ public global::AI21.PostThreadRunRequest? Type118 { get; set; }
///
///
///
- public global::AI21.Segment? Type119 { get; set; }
+ public global::AI21.PostThreadRunResponse? Type119 { get; set; }
///
///
///
- public global::AI21.SegmentSummary? Type120 { get; set; }
+ public global::AI21.ResponseFormat? Type120 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type121 { get; set; }
+ public global::AI21.ResponseFormatType? Type121 { get; set; }
///
///
///
- public global::AI21.SegmentationBody? Type122 { get; set; }
+ public global::AI21.Segment? Type122 { get; set; }
///
///
///
- public global::AI21.SegmentationResponse? Type123 { get; set; }
+ public global::AI21.SegmentSummary? Type123 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type124 { get; set; }
+ public global::System.Collections.Generic.IList? Type124 { get; set; }
///
///
///
- public global::AI21.SegmentedSummaryBody? Type125 { get; set; }
+ public global::AI21.SegmentationBody? Type125 { get; set; }
///
///
///
- public global::AI21.SummarizationResponse? Type126 { get; set; }
+ public global::AI21.SegmentationResponse? Type126 { get; set; }
///
///
///
- public global::AI21.SummarizeBody? Type127 { get; set; }
+ public global::System.Collections.Generic.IList? Type127 { get; set; }
///
///
///
- public global::AI21.SummaryMethod? Type128 { get; set; }
+ public global::AI21.SegmentedSummaryBody? Type128 { get; set; }
///
///
///
- public global::AI21.SummarizeBySegmentResponse? Type129 { get; set; }
+ public global::AI21.SubmitToolOutputsRequest? Type129 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type130 { get; set; }
+ public global::AI21.SubmitToolOutputsResponse? Type130 { get; set; }
///
///
///
- public global::AI21.SystemMessage? Type131 { get; set; }
+ public global::AI21.SummarizationResponse? Type131 { get; set; }
///
///
///
- public global::AI21.SystemMessageRole? Type132 { get; set; }
+ public global::AI21.SummarizeBody? Type132 { get; set; }
///
///
///
- public global::AI21.TokenizeBody? Type133 { get; set; }
+ public global::AI21.SummaryMethod? Type133 { get; set; }
///
///
///
- public global::AI21.ToolDefinition? Type134 { get; set; }
+ public global::AI21.SummarizeBySegmentResponse? Type134 { get; set; }
///
///
///
- public global::AI21.ToolDefinitionType? Type135 { get; set; }
+ public global::System.Collections.Generic.IList? Type135 { get; set; }
///
///
///
- public global::AI21.ToolMessage? Type136 { get; set; }
+ public global::AI21.SystemMessage? Type136 { get; set; }
///
///
///
- public global::AI21.ToolMessageRole? Type137 { get; set; }
+ public global::AI21.SystemMessageRole? Type137 { get; set; }
///
///
///
- public global::AI21.UserMessage? Type138 { get; set; }
+ public global::AI21.TokenizeBody? Type138 { get; set; }
///
///
///
- public global::AI21.UserMessageRole? Type139 { get; set; }
+ public global::AI21.ToolDefinition? Type139 { get; set; }
///
///
///
- public global::AI21.LanguageStudioApiServerDataTypesChatChatRequest? Type140 { get; set; }
+ public global::AI21.ToolDefinitionType? Type140 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList>? Type141 { get; set; }
+ public global::AI21.ToolMessage? Type141 { get; set; }
///
///
///
- public global::System.OneOf? Type142 { get; set; }
+ public global::AI21.ToolMessageRole? Type142 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type143 { get; set; }
+ public global::AI21.UserMessage? Type143 { get; set; }
///
///
///
- public global::System.AnyOf>? Type144 { get; set; }
+ public global::AI21.UserMessageRole? Type144 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type145 { get; set; }
+ public global::AI21.LanguageStudioApiServerDataTypesChatChatRequest? Type145 { get; set; }
///
///
///
- public global::System.AllOf? Type146 { get; set; }
+ public global::System.Collections.Generic.IList>? Type146 { get; set; }
///
///
///
- public global::AI21.LanguageStudioApiServerDataTypesJ2ChatChatRequest? Type147 { get; set; }
+ public global::System.OneOf? Type147 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type148 { get; set; }
+ public global::System.Collections.Generic.IList? Type148 { get; set; }
///
///
///
- public global::AI21.ConvertDocumentFileStudioV1ChatFilesConvertPostResponse? Type149 { get; set; }
+ public global::System.AnyOf>? Type149 { get; set; }
///
///
///
- public global::System.AnyOf>? Type150 { get; set; }
+ public global::System.Collections.Generic.IList? Type150 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type151 { get; set; }
+ public global::System.AllOf? Type151 { get; set; }
///
///
///
- public global::AI21.V1J2LightCompleteResponse? Type152 { get; set; }
+ public global::AI21.LanguageStudioApiServerDataTypesJ2ChatChatRequest? Type152 { get; set; }
///
///
///
- public global::AI21.V1J2LightCustomModelCompleteResponse? Type153 { get; set; }
+ public global::System.Collections.Generic.IList? Type153 { get; set; }
///
///
///
- public global::AI21.V1J2MidCompleteResponse? Type154 { get; set; }
+ public global::AI21.ConvertDocumentFileStudioV1ChatFilesConvertPostResponse? Type154 { get; set; }
///
///
///
- public global::AI21.V1J2MidCustomModelCompleteResponse? Type155 { get; set; }
+ public global::System.AnyOf>? Type155 { get; set; }
///
///
///
- public global::AI21.V1J2UltraCompleteResponse? Type156 { get; set; }
+ public global::System.Collections.Generic.IList? Type156 { get; set; }
///
///
///
- public global::AI21.V1J2UltraCompleteResponse2? Type157 { get; set; }
+ public global::AI21.V1J2LightCompleteResponse? Type157 { get; set; }
///
///
///
- public global::AI21.V1J2LargeCompleteResponse? Type158 { get; set; }
+ public global::AI21.V1J2LightCustomModelCompleteResponse? Type158 { get; set; }
///
///
///
- public global::AI21.V1J2LargeInstructCompleteResponse? Type159 { get; set; }
+ public global::AI21.V1J2MidCompleteResponse? Type159 { get; set; }
///
///
///
- public global::AI21.V1J2GrandeCompleteResponse? Type160 { get; set; }
+ public global::AI21.V1J2MidCustomModelCompleteResponse? Type160 { get; set; }
///
///
///
- public global::AI21.V1J2GrandeInstructCompleteResponse? Type161 { get; set; }
+ public global::AI21.V1J2UltraCompleteResponse? Type161 { get; set; }
///
///
///
- public global::AI21.V1J2JumboCompleteResponse? Type162 { get; set; }
+ public global::AI21.V1J2UltraCompleteResponse2? Type162 { get; set; }
///
///
///
- public global::AI21.V1J2JumboInstructCompleteResponse? Type163 { get; set; }
+ public global::AI21.V1J2LargeCompleteResponse? Type163 { get; set; }
///
///
///
- public global::AI21.V1J2LargeCustomModelCompleteResponse? Type164 { get; set; }
+ public global::AI21.V1J2LargeInstructCompleteResponse? Type164 { get; set; }
///
///
///
- public global::AI21.V1J2GrandeCustomModelCompleteResponse? Type165 { get; set; }
+ public global::AI21.V1J2GrandeCompleteResponse? Type165 { get; set; }
///
///
///
- public global::AI21.V1J2JumboCompleteResponse2? Type166 { get; set; }
+ public global::AI21.V1J2GrandeInstructCompleteResponse? Type166 { get; set; }
///
///
///
- public global::AI21.V1GetCustomModelsResponse? Type167 { get; set; }
+ public global::AI21.V1J2JumboCompleteResponse? Type167 { get; set; }
///
///
///
- public global::AI21.V1CreateCustomModelResponse? Type168 { get; set; }
+ public global::AI21.V1J2JumboInstructCompleteResponse? Type168 { get; set; }
///
///
///
- public global::AI21.V1GetCustomModelResponse? Type169 { get; set; }
+ public global::AI21.V1J2LargeCustomModelCompleteResponse? Type169 { get; set; }
///
///
///
- public global::AI21.V1UpdateCustomModelResponse? Type170 { get; set; }
+ public global::AI21.V1J2GrandeCustomModelCompleteResponse? Type170 { get; set; }
///
///
///
- public global::AI21.V1GetDatasetsResponse? Type171 { get; set; }
+ public global::AI21.V1J2JumboCompleteResponse2? Type171 { get; set; }
///
///
///
- public global::AI21.V1UploadDatasetResponse? Type172 { get; set; }
+ public global::AI21.V1GetCustomModelsResponse? Type172 { get; set; }
///
///
///
- public global::AI21.V1GetDatasetResponse? Type173 { get; set; }
+ public global::AI21.V1CreateCustomModelResponse? Type173 { get; set; }
///
///
///
- public global::AI21.V1DeleteDatasetResponse? Type174 { get; set; }
+ public global::AI21.V1GetCustomModelResponse? Type174 { get; set; }
///
///
///
- public global::AI21.V1GetDatasetDownloadUrlResponse? Type175 { get; set; }
+ public global::AI21.V1UpdateCustomModelResponse? Type175 { get; set; }
///
///
///
- public global::AI21.V1ParaphrazeResponse? Type176 { get; set; }
+ public global::AI21.V1GetDatasetsResponse? Type176 { get; set; }
///
///
///
- public global::AI21.V1EmbedResponse? Type177 { get; set; }
+ public global::AI21.V1UploadDatasetResponse? Type177 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type178 { get; set; }
+ public global::AI21.V1GetDatasetResponse? Type178 { get; set; }
///
///
///
- public global::AI21.V1LibraryManagementResponse? Type179 { get; set; }
+ public global::AI21.V1DeleteDatasetResponse? Type179 { get; set; }
///
///
///
- public global::AI21.V1AnswerResponse? Type180 { get; set; }
+ public global::AI21.V1GetDatasetDownloadUrlResponse? Type180 { get; set; }
///
///
///
- public global::AI21.V1TokenizeResponse? Type181 { get; set; }
+ public global::AI21.V1ParaphrazeResponse? Type181 { get; set; }
+ ///
+ ///
+ ///
+ public global::AI21.V1EmbedResponse? Type182 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type183 { get; set; }
+ ///
+ ///
+ ///
+ public global::AI21.V1LibraryManagementResponse? Type184 { get; set; }
+ ///
+ ///
+ ///
+ public global::AI21.V1AnswerResponse? Type185 { get; set; }
+ ///
+ ///
+ ///
+ public global::AI21.V1TokenizeResponse? Type186 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/AI21/openapi.yaml b/src/libs/AI21/openapi.yaml
index 5722925..39e05f1 100644
--- a/src/libs/AI21/openapi.yaml
+++ b/src/libs/AI21/openapi.yaml
@@ -1350,6 +1350,30 @@ paths:
schema:
$ref: '#/components/schemas/HTTPValidationError'
'/studio/v1/assistant/threads/{thread_id}/messages':
+ get:
+ summary: Get Messages
+ operationId: get_messages_studio_v1_assistant_threads__thread_id__messages_get
+ parameters:
+ - name: thread_id
+ in: path
+ required: true
+ schema:
+ title: Thread Id
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: Successful Response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GetMessagesResponse'
+ '422':
+ description: Validation Error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HTTPValidationError'
post:
summary: Create Message
operationId: create_message_studio_v1_assistant_threads__thread_id__messages_post
@@ -1443,6 +1467,44 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
+ '/studio/v1/assistant/threads/{thread_id}/runs/{run_id}/submit_tool_outputs':
+ post:
+ summary: Submit Tool Outputs
+ operationId: submit_tool_outputs_studio_v1_assistant_threads__thread_id__runs__run_id__submit_tool_outputs_post
+ parameters:
+ - name: thread_id
+ in: path
+ required: true
+ schema:
+ title: Thread Id
+ type: string
+ format: uuid
+ - name: run_id
+ in: path
+ required: true
+ schema:
+ title: Run Id
+ type: string
+ format: uuid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SubmitToolOutputsRequest'
+ required: true
+ responses:
+ '200':
+ description: Successful Response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SubmitToolOutputsResponse'
+ '422':
+ description: Validation Error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
AnswerBody:
@@ -2328,6 +2390,17 @@ components:
type: string
parameters:
$ref: '#/components/schemas/ToolParameters'
+ GetMessagesResponse:
+ title: GetMessagesResponse
+ required:
+ - results
+ type: object
+ properties:
+ results:
+ title: Results
+ type: array
+ items:
+ $ref: '#/components/schemas/MessageResponse'
GetThreadRunResponse:
title: GetThreadRunResponse
required:
@@ -2619,6 +2692,49 @@ components:
content:
title: Content
type: string
+ MessageResponse:
+ title: MessageResponse
+ required:
+ - role
+ - content
+ - id
+ - created_at
+ - updated_at
+ - object
+ - thread_id
+ type: object
+ properties:
+ role:
+ title: Role
+ type: string
+ description: "The role of an individual message.\n- `user`: Input provided by the user. Any instructions given here that conflict\n with instructions given in the `system` prompt take precedence over the `system`\n prompt instructions.\n- `assistant`: Response generated by the model.\n- `system`: Initial instructions provided to the system to provide general guidance\n on the tone and voice of the generated message. An initial system message is\n optional but recommended to provide guidance on the tone of the chat. For\n example, \"You are a helpful chatbot with a background in earth sciences and a\n charming French accent.\"\n"
+ content:
+ title: Content
+ type: string
+ 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
+ thread_id:
+ title: Thread Id
+ type: string
+ format: uuid
+ assistant_id:
+ title: Assistant Id
+ type: string
+ format: uuid
MockResponseConfig:
title: MockResponseConfig
type: object
@@ -2928,6 +3044,12 @@ components:
- casual
- general
description: An enumeration.
+ SubmitToolOutputsRequest:
+ title: SubmitToolOutputsRequest
+ type: object
+ SubmitToolOutputsResponse:
+ title: SubmitToolOutputsResponse
+ type: object
SummarizationResponse:
title: SummarizationResponse
required: