Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.CreateDocumentRequestDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeJsonConverter),
typeof(global::Vectara.JsonConverters.SummarizeDocumentStreamedResponseDiscriminatorTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.MetadataQueryRequestLevelJsonConverter),
typeof(global::Vectara.JsonConverters.MetadataQueryRequestLevelNullableJsonConverter),
typeof(global::Vectara.JsonConverters.LanguageJsonConverter),
typeof(global::Vectara.JsonConverters.LanguageNullableJsonConverter),
typeof(global::Vectara.JsonConverters.QueryWarningJsonConverter),
Expand Down Expand Up @@ -57,6 +59,10 @@ namespace Vectara
typeof(global::Vectara.JsonConverters.JobTypeNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CorpusRoleRoleJsonConverter),
typeof(global::Vectara.JsonConverters.CorpusRoleRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.AgentRoleRoleJsonConverter),
typeof(global::Vectara.JsonConverters.AgentRoleRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleJsonConverter),
typeof(global::Vectara.JsonConverters.ApiKeyRoleNullableJsonConverter),
typeof(global::Vectara.JsonConverters.CreateAppClientRequestDiscriminatorTypeJsonConverter),
Expand Down
87 changes: 87 additions & 0 deletions src/libs/Vectara/Generated/Vectara.AgentConnectorsClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

#nullable enable

namespace Vectara
{
/// <summary>
/// Create and manage connectors that allow agents to receive events from external platforms like Slack<br/>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class AgentConnectorsClient : global::Vectara.IAgentConnectorsClient, global::System.IDisposable
{
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.vectara.io";

private bool _disposeHttpClient = true;

/// <inheritdoc/>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <inheritdoc/>
public System.Uri? BaseUri => HttpClient.BaseAddress;

/// <inheritdoc/>
public global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization> Authorizations { get; }

/// <inheritdoc/>
public bool ReadResponseAsString { get; set; }
#if DEBUG
= true;
#endif
/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Vectara.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the AgentConnectorsClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public AgentConnectorsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true)
{
HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization>();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
}

/// <inheritdoc/>
public void Dispose()
{
if (_disposeHttpClient)
{
HttpClient.Dispose();
}
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpRequestMessage request);
partial void ProcessResponse(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpResponseMessage response);
partial void ProcessResponseContent(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpResponseMessage response,
ref string content);
}
}
87 changes: 87 additions & 0 deletions src/libs/Vectara/Generated/Vectara.AgentsClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

#nullable enable

namespace Vectara
{
/// <summary>
/// Create and interact with AI agents that can use tools and corpora to perform complex queries<br/>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class AgentsClient : global::Vectara.IAgentsClient, global::System.IDisposable
{
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.vectara.io";

private bool _disposeHttpClient = true;

/// <inheritdoc/>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <inheritdoc/>
public System.Uri? BaseUri => HttpClient.BaseAddress;

/// <inheritdoc/>
public global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization> Authorizations { get; }

/// <inheritdoc/>
public bool ReadResponseAsString { get; set; }
#if DEBUG
= true;
#endif
/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Vectara.SourceGenerationContext.Default;


/// <summary>
/// Creates a new instance of the AgentsClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public AgentsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true)
{
HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Vectara.EndPointAuthorization>();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
}

/// <inheritdoc/>
public void Dispose()
{
if (_disposeHttpClient)
{
HttpClient.Dispose();
}
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpRequestMessage request);
partial void ProcessResponse(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpResponseMessage response);
partial void ProcessResponseContent(
global::System.Net.Http.HttpClient client,
global::System.Net.Http.HttpResponseMessage response,
ref string content);
}
}
Loading