diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs
new file mode 100644
index 0000000..f39a39a
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceCreateAgent.g.cs
@@ -0,0 +1,262 @@
+
+#nullable enable
+
+namespace Instill
+{
+ public partial class AppClient
+ {
+ partial void PrepareAppPublicServiceCreateAgentArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string namespaceId,
+ global::Instill.CreateAgentBody request);
+ partial void PrepareAppPublicServiceCreateAgentRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string namespaceId,
+ global::Instill.CreateAgentBody request);
+ partial void ProcessAppPublicServiceCreateAgentResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAppPublicServiceCreateAgentResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Create an agent
+ /// Creates an agent.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync(
+ string namespaceId,
+ global::Instill.CreateAgentBody request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAppPublicServiceCreateAgentArguments(
+ httpClient: HttpClient,
+ namespaceId: ref namespaceId,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1alpha/namespaces/{namespaceId}/agents",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ 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);
+ PrepareAppPublicServiceCreateAgentRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ namespaceId: namespaceId,
+ 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);
+ ProcessAppPublicServiceCreateAgentResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Returned when the client credentials are not valid.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ string? __value_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string;
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string;
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // An unexpected error response.
+ if (!__response.IsSuccessStatusCode)
+ {
+ string? __content_default = null;
+ global::Instill.RpcStatus? __value_default = null;
+ if (ReadResponseAsString)
+ {
+ __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_default,
+ ResponseObject = __value_default,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAppPublicServiceCreateAgentResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Instill.CreateAgentResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Instill.CreateAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+
+ ///
+ /// Create an agent
+ /// Creates an agent.
+ ///
+ ///
+ ///
+ /// The agent display name.
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync(
+ string namespaceId,
+ string? displayName = default,
+ string? description = default,
+ global::System.Collections.Generic.IList? tags = default,
+ global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Instill.CreateAgentBody
+ {
+ DisplayName = displayName,
+ Description = description,
+ Tags = tags,
+ AiAgentApp = aiAgentApp,
+ };
+
+ return await AppPublicServiceCreateAgentAsync(
+ namespaceId: namespaceId,
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs
new file mode 100644
index 0000000..f850dd4
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteAgent.g.cs
@@ -0,0 +1,208 @@
+
+#nullable enable
+
+namespace Instill
+{
+ public partial class AppClient
+ {
+ partial void PrepareAppPublicServiceDeleteAgentArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string namespaceId,
+ ref string agentUid);
+ partial void PrepareAppPublicServiceDeleteAgentRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string namespaceId,
+ string agentUid);
+ partial void ProcessAppPublicServiceDeleteAgentResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAppPublicServiceDeleteAgentResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Delete an agent
+ /// Deletes an agent.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceDeleteAgentAsync(
+ string namespaceId,
+ string agentUid,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAppPublicServiceDeleteAgentArguments(
+ httpClient: HttpClient,
+ namespaceId: ref namespaceId,
+ agentUid: ref agentUid);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1alpha/namespaces/{namespaceId}/agents/{agentUid}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAppPublicServiceDeleteAgentRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ namespaceId: namespaceId,
+ agentUid: agentUid);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAppPublicServiceDeleteAgentResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Returned when the client credentials are not valid.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ string? __value_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string;
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string;
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // An unexpected error response.
+ if (!__response.IsSuccessStatusCode)
+ {
+ string? __content_default = null;
+ global::Instill.RpcStatus? __value_default = null;
+ if (ReadResponseAsString)
+ {
+ __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_default,
+ ResponseObject = __value_default,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAppPublicServiceDeleteAgentResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return __content;
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ return __content;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs
index 507f1aa..b1d1599 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceDeleteApp.g.cs
@@ -24,7 +24,7 @@ partial void ProcessAppPublicServiceDeleteAppResponseContent(
ref string content);
///
- /// Delete a app
+ /// Delete an app
/// Deletes an app.
///
///
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs
index bf702c9..d6caed1 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceGetPlaygroundConversation.g.cs
@@ -25,7 +25,7 @@ partial void ProcessAppPublicServiceGetPlaygroundConversationResponseContent(
///
/// Get Playground Conversation
- /// Returns the latest conversation of auth user(e.g. login user and api key user).
+ /// Returns the latest conversation for the authenticated user (e.g., logged-in user or API key user).
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs
new file mode 100644
index 0000000..fbfd7dc
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListAgents.g.cs
@@ -0,0 +1,206 @@
+
+#nullable enable
+
+namespace Instill
+{
+ public partial class AppClient
+ {
+ partial void PrepareAppPublicServiceListAgentsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string namespaceId);
+ partial void PrepareAppPublicServiceListAgentsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string namespaceId);
+ partial void ProcessAppPublicServiceListAgentsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAppPublicServiceListAgentsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// List all agents info
+ /// Returns a paginated list of agents.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceListAgentsAsync(
+ string namespaceId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAppPublicServiceListAgentsArguments(
+ httpClient: HttpClient,
+ namespaceId: ref namespaceId);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1alpha/namespaces/{namespaceId}/agents",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAppPublicServiceListAgentsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ namespaceId: namespaceId);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAppPublicServiceListAgentsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Returned when the client credentials are not valid.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ string? __value_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string;
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string;
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // An unexpected error response.
+ if (!__response.IsSuccessStatusCode)
+ {
+ string? __content_default = null;
+ global::Instill.RpcStatus? __value_default = null;
+ if (ReadResponseAsString)
+ {
+ __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_default,
+ ResponseObject = __value_default,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAppPublicServiceListAgentsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Instill.ListAgentsResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Instill.ListAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs
index 3ebc898..731de9e 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListChats.g.cs
@@ -31,7 +31,7 @@ partial void ProcessAppPublicServiceListChatsResponseContent(
///
/// List chats
- /// Returns a paginated list of conversations.
+ /// Returns a list of chats.
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs
new file mode 100644
index 0000000..bdd6f48
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceListTools.g.cs
@@ -0,0 +1,206 @@
+
+#nullable enable
+
+namespace Instill
+{
+ public partial class AppClient
+ {
+ partial void PrepareAppPublicServiceListToolsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string namespaceId);
+ partial void PrepareAppPublicServiceListToolsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string namespaceId);
+ partial void ProcessAppPublicServiceListToolsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAppPublicServiceListToolsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// List all tools
+ /// Returns a list of tools.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceListToolsAsync(
+ string namespaceId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAppPublicServiceListToolsArguments(
+ httpClient: HttpClient,
+ namespaceId: ref namespaceId);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1alpha/namespaces/{namespaceId}/tools",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAppPublicServiceListToolsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ namespaceId: namespaceId);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAppPublicServiceListToolsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Returned when the client credentials are not valid.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ string? __value_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string;
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string;
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // An unexpected error response.
+ if (!__response.IsSuccessStatusCode)
+ {
+ string? __content_default = null;
+ global::Instill.RpcStatus? __value_default = null;
+ if (ReadResponseAsString)
+ {
+ __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_default,
+ ResponseObject = __value_default,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAppPublicServiceListToolsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Instill.ListToolsResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Instill.ListToolsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
index 92cf86a..5dd5c3c 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
@@ -25,8 +25,8 @@ partial void ProcessAppPublicServiceRestartPlaygroundConversationResponseContent
///
/// Restart Playground Conversation
- /// Creates a new conversation and uses the auth user UID as creator UID and
- /// auto-generates a new conversation ID on the behalf of auth user.
+ /// Creates a new conversation using the authenticated user's UID as creator and
+ /// auto-generates a new conversation ID on behalf of the authenticated user.
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs
new file mode 100644
index 0000000..9236cde
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateAgent.g.cs
@@ -0,0 +1,266 @@
+
+#nullable enable
+
+namespace Instill
+{
+ public partial class AppClient
+ {
+ partial void PrepareAppPublicServiceUpdateAgentArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string namespaceId,
+ ref string agentUid,
+ global::Instill.UpdateAgentBody request);
+ partial void PrepareAppPublicServiceUpdateAgentRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string namespaceId,
+ string agentUid,
+ global::Instill.UpdateAgentBody request);
+ partial void ProcessAppPublicServiceUpdateAgentResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessAppPublicServiceUpdateAgentResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Update an agent
+ /// Updates the information of an agent.
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync(
+ string namespaceId,
+ string agentUid,
+ global::Instill.UpdateAgentBody request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAppPublicServiceUpdateAgentArguments(
+ httpClient: HttpClient,
+ namespaceId: ref namespaceId,
+ agentUid: ref agentUid,
+ request: request);
+
+ var __pathBuilder = new PathBuilder(
+ path: $"/v1alpha/namespaces/{namespaceId}/agents/{agentUid}",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Put,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ 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);
+ PrepareAppPublicServiceUpdateAgentRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ namespaceId: namespaceId,
+ agentUid: agentUid,
+ 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);
+ ProcessAppPublicServiceUpdateAgentResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ // Returned when the client credentials are not valid.
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ string? __value_401 = null;
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string;
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string;
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseObject = __value_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // An unexpected error response.
+ if (!__response.IsSuccessStatusCode)
+ {
+ string? __content_default = null;
+ global::Instill.RpcStatus? __value_default = null;
+ if (ReadResponseAsString)
+ {
+ __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false);
+ }
+
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_default,
+ ResponseObject = __value_default,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAppPublicServiceUpdateAgentResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ return
+ global::Instill.UpdateAgentResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
+ {
+ throw new global::Instill.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+
+ return
+ await global::Instill.UpdateAgentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ }
+
+ ///
+ /// Update an agent
+ /// Updates the information of an agent.
+ ///
+ ///
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ public async global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync(
+ string namespaceId,
+ string agentUid,
+ string? description = default,
+ global::System.Collections.Generic.IList? tags = default,
+ global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Instill.UpdateAgentBody
+ {
+ Description = description,
+ Tags = tags,
+ AiAgentApp = aiAgentApp,
+ };
+
+ return await AppPublicServiceUpdateAgentAsync(
+ namespaceId: namespaceId,
+ agentUid: agentUid,
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs
index c4f88ed..edadd3d 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateApp.g.cs
@@ -26,7 +26,7 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent(
ref string content);
///
- /// Update a app info
+ /// Update an app's information
/// Updates the information of an app.
///
///
@@ -224,7 +224,7 @@ partial void ProcessAppPublicServiceUpdateAppResponseContent(
}
///
- /// Update a app info
+ /// Update an app's information
/// Updates the information of an app.
///
///
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs
index 5a8bfa8..ba70bd0 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateChat.g.cs
@@ -230,7 +230,7 @@ partial void ProcessAppPublicServiceUpdateChatResponseContent(
///
///
///
- ///
+ ///
/// The token to cancel the operation with
///
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
@@ -238,13 +238,13 @@ partial void ProcessAppPublicServiceUpdateChatResponseContent(
string namespaceId,
string chatUid,
string? chatDisplayName = default,
- global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::Instill.AIAgentAppMetadata? aiAgentMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.UpdateChatBody
{
ChatDisplayName = chatDisplayName,
- AiAgentApp = aiAgentApp,
+ AiAgentMetadata = aiAgentMetadata,
};
return await AppPublicServiceUpdateChatAsync(
diff --git a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs
index e68a026..bb163ef 100644
--- a/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.AppClient.AppPublicServiceUpdateConversation.g.cs
@@ -239,8 +239,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent(
///
///
///
- ///
- ///
/// The token to cancel the operation with
///
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
@@ -251,8 +249,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent(
string? newConversationId = default,
string? lastUsedCatalogUid = default,
long? lastUsedTopK = default,
- global::Instill.AIAgentAppMetadata? aiAgentApp = default,
- string? conversationDisplayName = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Instill.UpdateConversationBody
@@ -260,8 +256,6 @@ partial void ProcessAppPublicServiceUpdateConversationResponseContent(
NewConversationId = newConversationId,
LastUsedCatalogUid = lastUsedCatalogUid,
LastUsedTopK = lastUsedTopK,
- AiAgentApp = aiAgentApp,
- ConversationDisplayName = conversationDisplayName,
};
return await AppPublicServiceUpdateConversationAsync(
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs
new file mode 100644
index 0000000..6a7349f
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceCreateAgent.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace Instill
+{
+ public partial interface IAppClient
+ {
+ ///
+ /// Create an agent
+ /// Creates an agent.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync(
+ string namespaceId,
+ global::Instill.CreateAgentBody request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create an agent
+ /// Creates an agent.
+ ///
+ ///
+ ///
+ /// The agent display name.
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceCreateAgentAsync(
+ string namespaceId,
+ string? displayName = default,
+ string? description = default,
+ global::System.Collections.Generic.IList? tags = default,
+ global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs
new file mode 100644
index 0000000..98f41bb
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteAgent.g.cs
@@ -0,0 +1,21 @@
+#nullable enable
+
+namespace Instill
+{
+ public partial interface IAppClient
+ {
+ ///
+ /// Delete an agent
+ /// Deletes an agent.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceDeleteAgentAsync(
+ string namespaceId,
+ string agentUid,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs
index 0760e52..d394856 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceDeleteApp.g.cs
@@ -5,7 +5,7 @@ namespace Instill
public partial interface IAppClient
{
///
- /// Delete a app
+ /// Delete an app
/// Deletes an app.
///
///
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs
index 84fdfe2..282d0e2 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceGetPlaygroundConversation.g.cs
@@ -6,7 +6,7 @@ public partial interface IAppClient
{
///
/// Get Playground Conversation
- /// Returns the latest conversation of auth user(e.g. login user and api key user).
+ /// Returns the latest conversation for the authenticated user (e.g., logged-in user or API key user).
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs
new file mode 100644
index 0000000..5e0d49e
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListAgents.g.cs
@@ -0,0 +1,19 @@
+#nullable enable
+
+namespace Instill
+{
+ public partial interface IAppClient
+ {
+ ///
+ /// List all agents info
+ /// Returns a paginated list of agents.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceListAgentsAsync(
+ string namespaceId,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs
index 6dc04bf..d6f8d13 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListChats.g.cs
@@ -6,7 +6,7 @@ public partial interface IAppClient
{
///
/// List chats
- /// Returns a paginated list of conversations.
+ /// Returns a list of chats.
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs
new file mode 100644
index 0000000..863b743
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceListTools.g.cs
@@ -0,0 +1,19 @@
+#nullable enable
+
+namespace Instill
+{
+ public partial interface IAppClient
+ {
+ ///
+ /// List all tools
+ /// Returns a list of tools.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceListToolsAsync(
+ string namespaceId,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
index 7ae01b7..c0c87fb 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceRestartPlaygroundConversation.g.cs
@@ -6,8 +6,8 @@ public partial interface IAppClient
{
///
/// Restart Playground Conversation
- /// Creates a new conversation and uses the auth user UID as creator UID and
- /// auto-generates a new conversation ID on the behalf of auth user.
+ /// Creates a new conversation using the authenticated user's UID as creator and
+ /// auto-generates a new conversation ID on behalf of the authenticated user.
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs
new file mode 100644
index 0000000..262726b
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateAgent.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace Instill
+{
+ public partial interface IAppClient
+ {
+ ///
+ /// Update an agent
+ /// Updates the information of an agent.
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync(
+ string namespaceId,
+ string agentUid,
+ global::Instill.UpdateAgentBody request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Update an agent
+ /// Updates the information of an agent.
+ ///
+ ///
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ /// The token to cancel the operation with
+ ///
+ [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
+ global::System.Threading.Tasks.Task AppPublicServiceUpdateAgentAsync(
+ string namespaceId,
+ string agentUid,
+ string? description = default,
+ global::System.Collections.Generic.IList? tags = default,
+ global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs
index 444675a..487281d 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateApp.g.cs
@@ -5,7 +5,7 @@ namespace Instill
public partial interface IAppClient
{
///
- /// Update a app info
+ /// Update an app's information
/// Updates the information of an app.
///
///
@@ -21,7 +21,7 @@ public partial interface IAppClient
global::System.Threading.CancellationToken cancellationToken = default);
///
- /// Update a app info
+ /// Update an app's information
/// Updates the information of an app.
///
///
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs
index 376db5d..95fbe6f 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateChat.g.cs
@@ -27,7 +27,7 @@ public partial interface IAppClient
///
///
///
- ///
+ ///
/// The token to cancel the operation with
///
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
@@ -35,7 +35,7 @@ public partial interface IAppClient
string namespaceId,
string chatUid,
string? chatDisplayName = default,
- global::Instill.AIAgentAppMetadata? aiAgentApp = default,
+ global::Instill.AIAgentAppMetadata? aiAgentMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs
index cc11ad8..3017895 100644
--- a/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs
+++ b/src/libs/Instill/Generated/Instill.IAppClient.AppPublicServiceUpdateConversation.g.cs
@@ -32,8 +32,6 @@ public partial interface IAppClient
///
///
///
- ///
- ///
/// The token to cancel the operation with
///
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_ALPHA_001")]
@@ -44,8 +42,6 @@ public partial interface IAppClient
string? newConversationId = default,
string? lastUsedCatalogUid = default,
long? lastUsedTopK = default,
- global::Instill.AIAgentAppMetadata? aiAgentApp = default,
- string? conversationDisplayName = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs
new file mode 100644
index 0000000..a4958a0
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.Agent.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class Agent
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.Agent? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.Agent),
+ jsonSerializerContext) as global::Instill.Agent;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.Agent? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.Agent),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.Agent;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.Agent.g.cs b/src/libs/Instill/Generated/Instill.Models.Agent.g.cs
new file mode 100644
index 0000000..4989c9a
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.Agent.g.cs
@@ -0,0 +1,140 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// Agent represents a agent.
+ ///
+ public sealed partial class Agent
+ {
+ ///
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agentUid")]
+ public string? AgentUid { get; set; }
+
+ ///
+ /// The agent display name.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("displayName")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string DisplayName { get; set; }
+
+ ///
+ /// The agent description.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
+ ///
+ /// The namespace of the agent.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("namespaceUid")]
+ public string? NamespaceUid { get; set; }
+
+ ///
+ /// The agent tags.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tags")]
+ public global::System.Collections.Generic.IList? Tags { get; set; }
+
+ ///
+ /// The agent metadata.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")]
+ public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; }
+
+ ///
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("creatorUid")]
+ public string? CreatorUid { get; set; }
+
+ ///
+ /// The creation time of the agent.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("createTime")]
+ public global::System.DateTime? CreateTime { get; set; }
+
+ ///
+ /// The last update time of the agent.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")]
+ public global::System.DateTime? UpdateTime { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// Included only in responses
+ ///
+ ///
+ /// The agent display name.
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The namespace of the agent.
+ /// Included only in responses
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ /// Included only in responses
+ ///
+ ///
+ /// Included only in responses
+ ///
+ ///
+ /// The creation time of the agent.
+ /// Included only in responses
+ ///
+ ///
+ /// The last update time of the agent.
+ /// Included only in responses
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public Agent(
+ string displayName,
+ string? agentUid,
+ string? description,
+ string? namespaceUid,
+ global::System.Collections.Generic.IList? tags,
+ global::Instill.AIAgentAppMetadata? aiAgentMetadata,
+ string? creatorUid,
+ global::System.DateTime? createTime,
+ global::System.DateTime? updateTime)
+ {
+ this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName));
+ this.AgentUid = agentUid;
+ this.Description = description;
+ this.NamespaceUid = namespaceUid;
+ this.Tags = tags;
+ this.AiAgentMetadata = aiAgentMetadata;
+ this.CreatorUid = creatorUid;
+ this.CreateTime = createTime;
+ this.UpdateTime = updateTime;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public Agent()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs
new file mode 100644
index 0000000..5512ad8
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class AppPublicServiceCreateAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.AppPublicServiceCreateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.AppPublicServiceCreateAgentResponse),
+ jsonSerializerContext) as global::Instill.AppPublicServiceCreateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.AppPublicServiceCreateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.AppPublicServiceCreateAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceCreateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs
new file mode 100644
index 0000000..1171791
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceCreateAgentResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ ///
+ ///
+ public sealed partial class AppPublicServiceCreateAgentResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public AppPublicServiceCreateAgentResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs
new file mode 100644
index 0000000..8aabbc6
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class AppPublicServiceDeleteAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.AppPublicServiceDeleteAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.AppPublicServiceDeleteAgentResponse),
+ jsonSerializerContext) as global::Instill.AppPublicServiceDeleteAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.AppPublicServiceDeleteAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.AppPublicServiceDeleteAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceDeleteAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs
new file mode 100644
index 0000000..d106f18
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceDeleteAgentResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ ///
+ ///
+ public sealed partial class AppPublicServiceDeleteAgentResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public AppPublicServiceDeleteAgentResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs
new file mode 100644
index 0000000..bd42276
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class AppPublicServiceListAgentsResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.AppPublicServiceListAgentsResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.AppPublicServiceListAgentsResponse),
+ jsonSerializerContext) as global::Instill.AppPublicServiceListAgentsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.AppPublicServiceListAgentsResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.AppPublicServiceListAgentsResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListAgentsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs
new file mode 100644
index 0000000..b8dfd50
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListAgentsResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ ///
+ ///
+ public sealed partial class AppPublicServiceListAgentsResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public AppPublicServiceListAgentsResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs
new file mode 100644
index 0000000..f5aa059
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class AppPublicServiceListToolsResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.AppPublicServiceListToolsResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.AppPublicServiceListToolsResponse),
+ jsonSerializerContext) as global::Instill.AppPublicServiceListToolsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.AppPublicServiceListToolsResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.AppPublicServiceListToolsResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceListToolsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs
new file mode 100644
index 0000000..ae96c3a
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceListToolsResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ ///
+ ///
+ public sealed partial class AppPublicServiceListToolsResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public AppPublicServiceListToolsResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs
new file mode 100644
index 0000000..ce806d1
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class AppPublicServiceUpdateAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.AppPublicServiceUpdateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.AppPublicServiceUpdateAgentResponse),
+ jsonSerializerContext) as global::Instill.AppPublicServiceUpdateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.AppPublicServiceUpdateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.AppPublicServiceUpdateAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.AppPublicServiceUpdateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs
new file mode 100644
index 0000000..0f5cf48
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.AppPublicServiceUpdateAgentResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ ///
+ ///
+ public sealed partial class AppPublicServiceUpdateAgentResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public AppPublicServiceUpdateAgentResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.Chat.g.cs b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs
index e95d7ab..3c93455 100644
--- a/src/libs/Instill/Generated/Instill.Models.Chat.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.Chat.g.cs
@@ -48,8 +48,8 @@ public sealed partial class Chat
///
/// Included only in responses
///
- [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")]
- public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; }
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")]
+ public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; }
///
///
@@ -84,7 +84,7 @@ public sealed partial class Chat
///
/// Included only in responses
///
- ///
+ ///
/// Included only in responses
///
///
@@ -97,7 +97,7 @@ public Chat(
long? lastUsedTopK,
global::System.DateTime? createTime,
global::System.DateTime? updateTime,
- global::Instill.AIAgentAppMetadata? aiAgentApp,
+ global::Instill.AIAgentAppMetadata? aiAgentMetadata,
string? tempCatalogId,
string? chatDisplayName)
{
@@ -107,7 +107,7 @@ public Chat(
this.LastUsedTopK = lastUsedTopK;
this.CreateTime = createTime;
this.UpdateTime = updateTime;
- this.AiAgentApp = aiAgentApp;
+ this.AiAgentMetadata = aiAgentMetadata;
this.TempCatalogId = tempCatalogId;
this.ChatDisplayName = chatDisplayName;
}
diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs
new file mode 100644
index 0000000..8d4c652
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class CreateAgentBody
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.CreateAgentBody? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.CreateAgentBody),
+ jsonSerializerContext) as global::Instill.CreateAgentBody;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.CreateAgentBody? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.CreateAgentBody),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateAgentBody;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs
new file mode 100644
index 0000000..5a3abed
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentBody.g.cs
@@ -0,0 +1,76 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// CreateAgentRequest represents a request to create a agent.
+ ///
+ public sealed partial class CreateAgentBody
+ {
+ ///
+ /// The agent display name.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("displayName")]
+ public string? DisplayName { get; set; }
+
+ ///
+ /// The agent description.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
+ ///
+ /// The agent tags.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tags")]
+ public global::System.Collections.Generic.IList? Tags { get; set; }
+
+ ///
+ /// The agent metadata.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")]
+ public global::Instill.AIAgentAppMetadata? AiAgentApp { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The agent display name.
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CreateAgentBody(
+ string? displayName,
+ string? description,
+ global::System.Collections.Generic.IList? tags,
+ global::Instill.AIAgentAppMetadata? aiAgentApp)
+ {
+ this.DisplayName = displayName;
+ this.Description = description;
+ this.Tags = tags;
+ this.AiAgentApp = aiAgentApp;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateAgentBody()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs
new file mode 100644
index 0000000..92730f0
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class CreateAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.CreateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.CreateAgentResponse),
+ jsonSerializerContext) as global::Instill.CreateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.CreateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.CreateAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.CreateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs
new file mode 100644
index 0000000..445840b
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.CreateAgentResponse.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// CreateAgentResponse represents a response for creating a agent.
+ ///
+ public sealed partial class CreateAgentResponse
+ {
+ ///
+ /// The created agent.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent")]
+ public global::Instill.Agent? Agent { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The created agent.
+ /// Included only in responses
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public CreateAgentResponse(
+ global::Instill.Agent? agent)
+ {
+ this.Agent = agent;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateAgentResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs
new file mode 100644
index 0000000..8ac9c79
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class DeleteAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.DeleteAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.DeleteAgentResponse),
+ jsonSerializerContext) as global::Instill.DeleteAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.DeleteAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.DeleteAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.DeleteAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs
new file mode 100644
index 0000000..88fd245
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.DeleteAgentResponse.g.cs
@@ -0,0 +1,27 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// DeleteAgentResponse represents a response for deleting a agent.
+ ///
+ public sealed partial class DeleteAgentResponse
+ {
+
+ ///
+ /// 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public DeleteAgentResponse(
+ )
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs
new file mode 100644
index 0000000..c043c3b
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class ListAgentsResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.ListAgentsResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.ListAgentsResponse),
+ jsonSerializerContext) as global::Instill.ListAgentsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.ListAgentsResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.ListAgentsResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListAgentsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs
new file mode 100644
index 0000000..6d97074
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.ListAgentsResponse.g.cs
@@ -0,0 +1,43 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// ListAgentsResponse represents a response for listing agents.
+ ///
+ public sealed partial class ListAgentsResponse
+ {
+ ///
+ /// The agents.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agents")]
+ public global::System.Collections.Generic.IList? Agents { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The agents.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ListAgentsResponse(
+ global::System.Collections.Generic.IList? agents)
+ {
+ this.Agents = agents;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ListAgentsResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs
new file mode 100644
index 0000000..c4cb59d
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class ListToolsResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.ListToolsResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.ListToolsResponse),
+ jsonSerializerContext) as global::Instill.ListToolsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.ListToolsResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.ListToolsResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListToolsResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs
new file mode 100644
index 0000000..f8c0ed6
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.ListToolsResponse.g.cs
@@ -0,0 +1,43 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// ListToolsResponse represents a response for listing tools.
+ ///
+ public sealed partial class ListToolsResponse
+ {
+ ///
+ /// The tools.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tools")]
+ public global::System.Collections.Generic.IList? Tools { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The tools.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public ListToolsResponse(
+ global::System.Collections.Generic.IList? tools)
+ {
+ this.Tools = tools;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ListToolsResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.Tool.g.cs b/src/libs/Instill/Generated/Instill.Models.Tool.g.cs
index 6e260b1..05c5bb1 100644
--- a/src/libs/Instill/Generated/Instill.Models.Tool.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.Tool.g.cs
@@ -9,17 +9,22 @@ namespace Instill
public sealed partial class Tool
{
///
- /// The tool name. e.g. ["preset/pipeline@v1.0.0", "preset/pipeline-2@v2.0.0"].
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("pipelineId")]
+ public string? PipelineId { get; set; }
+
+ ///
+ /// The tool name.
///
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Name { get; set; }
+ public string? Name { get; set; }
///
- ///
+ /// The tool connection key(variable) and value(id).
///
[global::System.Text.Json.Serialization.JsonPropertyName("config")]
- public object? Config { get; set; }
+ public global::System.Collections.Generic.Dictionary? Config { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -30,16 +35,21 @@ public sealed partial class Tool
///
/// Initializes a new instance of the class.
///
+ ///
///
- /// The tool name. e.g. ["preset/pipeline@v1.0.0", "preset/pipeline-2@v2.0.0"].
+ /// The tool name.
+ ///
+ ///
+ /// The tool connection key(variable) and value(id).
///
- ///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public Tool(
- string name,
- object? config)
+ string? pipelineId,
+ string? name,
+ global::System.Collections.Generic.Dictionary? config)
{
- this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.PipelineId = pipelineId;
+ this.Name = name;
this.Config = config;
}
diff --git a/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs b/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs
index 39a6423..fa81754 100644
--- a/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.ToolConfig.g.cs
@@ -4,7 +4,7 @@
namespace Instill
{
///
- ///
+ /// The tool connection key(variable) and value(id).
///
public sealed partial class ToolConfig
{
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs
new file mode 100644
index 0000000..d1f4731
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class UpdateAgentBody
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.UpdateAgentBody? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.UpdateAgentBody),
+ jsonSerializerContext) as global::Instill.UpdateAgentBody;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.UpdateAgentBody? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.UpdateAgentBody),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateAgentBody;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs
new file mode 100644
index 0000000..238e7ac
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentBody.g.cs
@@ -0,0 +1,65 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// UpdateAgentRequest represents a request to update a agent.
+ ///
+ public sealed partial class UpdateAgentBody
+ {
+ ///
+ /// The agent description.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")]
+ public string? Description { get; set; }
+
+ ///
+ /// The agent tags.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tags")]
+ public global::System.Collections.Generic.IList? Tags { get; set; }
+
+ ///
+ /// The agent metadata.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")]
+ public global::Instill.AIAgentAppMetadata? AiAgentApp { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The agent description.
+ ///
+ ///
+ /// The agent tags.
+ ///
+ ///
+ /// The agent metadata.
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public UpdateAgentBody(
+ string? description,
+ global::System.Collections.Generic.IList? tags,
+ global::Instill.AIAgentAppMetadata? aiAgentApp)
+ {
+ this.Description = description;
+ this.Tags = tags;
+ this.AiAgentApp = aiAgentApp;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public UpdateAgentBody()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs
new file mode 100644
index 0000000..f653e44
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Instill
+{
+ public sealed partial class UpdateAgentResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#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);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Instill.UpdateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Instill.UpdateAgentResponse),
+ jsonSerializerContext) as global::Instill.UpdateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#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::Instill.UpdateAgentResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Instill.UpdateAgentResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Instill.UpdateAgentResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#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 FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs
new file mode 100644
index 0000000..74cc21f
--- /dev/null
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateAgentResponse.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace Instill
+{
+ ///
+ /// UpdateAgentResponse represents a response for updating a agent.
+ ///
+ public sealed partial class UpdateAgentResponse
+ {
+ ///
+ /// The updated agent.
+ /// Included only in responses
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent")]
+ public global::Instill.Agent? Agent { 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();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The updated agent.
+ /// Included only in responses
+ ///
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+ public UpdateAgentResponse(
+ global::Instill.Agent? agent)
+ {
+ this.Agent = agent;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public UpdateAgentResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs
index 30d95df..078db91 100644
--- a/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateChatBody.g.cs
@@ -17,8 +17,8 @@ public sealed partial class UpdateChatBody
///
///
///
- [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")]
- public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; }
+ [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentMetadata")]
+ public global::Instill.AIAgentAppMetadata? AiAgentMetadata { get; set; }
///
/// Additional properties that are not explicitly defined in the schema
@@ -30,14 +30,14 @@ public sealed partial class UpdateChatBody
/// Initializes a new instance of the class.
///
///
- ///
+ ///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public UpdateChatBody(
string? chatDisplayName,
- global::Instill.AIAgentAppMetadata? aiAgentApp)
+ global::Instill.AIAgentAppMetadata? aiAgentMetadata)
{
this.ChatDisplayName = chatDisplayName;
- this.AiAgentApp = aiAgentApp;
+ this.AiAgentMetadata = aiAgentMetadata;
}
///
diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs
index dee658a..f00e6e4 100644
--- a/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.UpdateConversationBody.g.cs
@@ -26,18 +26,6 @@ public sealed partial class UpdateConversationBody
[global::System.Text.Json.Serialization.JsonPropertyName("lastUsedTopK")]
public long? LastUsedTopK { get; set; }
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("aiAgentApp")]
- public global::Instill.AIAgentAppMetadata? AiAgentApp { get; set; }
-
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("conversationDisplayName")]
- public string? ConversationDisplayName { get; set; }
-
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -50,21 +38,15 @@ public sealed partial class UpdateConversationBody
///
///
///
- ///
- ///
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public UpdateConversationBody(
string? newConversationId,
string? lastUsedCatalogUid,
- long? lastUsedTopK,
- global::Instill.AIAgentAppMetadata? aiAgentApp,
- string? conversationDisplayName)
+ long? lastUsedTopK)
{
this.NewConversationId = newConversationId;
this.LastUsedCatalogUid = lastUsedCatalogUid;
this.LastUsedTopK = lastUsedTopK;
- this.AiAgentApp = aiAgentApp;
- this.ConversationDisplayName = conversationDisplayName;
}
///
diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs
index e2781b7..ea969c2 100644
--- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs
+++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs
@@ -34,7 +34,7 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public object? Type4 { get; set; }
+ public global::System.Collections.Generic.Dictionary? Type4 { get; set; }
///
///
///
@@ -54,1406 +54,1438 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Instill.Any? Type9 { get; set; }
+ public global::Instill.Agent? Type9 { get; set; }
///
///
///
- public global::Instill.ApiToken? Type10 { get; set; }
+ public global::System.DateTime? Type10 { get; set; }
///
///
///
- public global::System.DateTime? Type11 { get; set; }
+ public global::Instill.Any? Type11 { get; set; }
///
///
///
- public global::Instill.ApiTokenState? Type12 { get; set; }
+ public object? Type12 { get; set; }
///
///
///
- public global::Instill.App? Type13 { get; set; }
+ public global::Instill.ApiToken? Type13 { get; set; }
///
///
///
- public global::Instill.AppType? Type14 { get; set; }
+ public global::Instill.ApiTokenState? Type14 { get; set; }
///
///
///
- public global::Instill.AppPublicServiceChatBody? Type15 { get; set; }
+ public global::Instill.App? Type15 { get; set; }
///
///
///
- public long? Type16 { get; set; }
+ public global::Instill.AppType? Type16 { get; set; }
///
///
///
- public global::Instill.AuthenticatedUser? Type17 { get; set; }
+ public global::Instill.AppPublicServiceChatBody? Type17 { get; set; }
///
///
///
- public bool? Type18 { get; set; }
+ public long? Type18 { get; set; }
///
///
///
- public global::Instill.OnboardingStatus? Type19 { get; set; }
+ public global::Instill.AuthenticatedUser? Type19 { get; set; }
///
///
///
- public global::Instill.UserProfile? Type20 { get; set; }
+ public bool? Type20 { get; set; }
///
///
///
- public global::System.Collections.Generic.Dictionary? Type21 { get; set; }
+ public global::Instill.OnboardingStatus? Type21 { get; set; }
///
///
///
- public global::Instill.Catalog? Type22 { get; set; }
+ public global::Instill.UserProfile? Type22 { get; set; }
///
///
///
- public global::Instill.CatalogRun? Type23 { get; set; }
+ public global::Instill.Catalog? Type23 { get; set; }
///
///
///
- public global::Instill.CatalogRunAction? Type24 { get; set; }
+ public global::Instill.CatalogRun? Type24 { get; set; }
///
///
///
- public global::Instill.RunStatus? Type25 { get; set; }
+ public global::Instill.CatalogRunAction? Type25 { get; set; }
///
///
///
- public global::Instill.RunSource? Type26 { get; set; }
+ public global::Instill.RunStatus? Type26 { get; set; }
///
///
///
- public global::Instill.CatalogType? Type27 { get; set; }
+ public global::Instill.RunSource? Type27 { get; set; }
///
///
///
- public global::Instill.ChatResponse? Type28 { get; set; }
+ public global::Instill.CatalogType? Type28 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList