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
6 changes: 6 additions & 0 deletions src/libs/Zep/Generated/Zep.DataClient.AddData.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ partial void ProcessAddDataResponseContent(
/// </summary>
/// <param name="createdAt"></param>
/// <param name="data"></param>
/// <param name="documentId">
/// Optional document ID that groups episodes as chunks of the same document<br/>
/// on a graph. Parallel to thread_id for message threads.
/// </param>
/// <param name="graphId">
/// graph_id is the ID of the graph to which the data will be added. If adding to the user graph, please use user_id field instead.
/// </param>
Expand All @@ -534,6 +538,7 @@ partial void ProcessAddDataResponseContent(
string data,
global::Zep.ModelsGraphDataType type,
string? createdAt = default,
string? documentId = default,
string? graphId = default,
object? metadata = default,
string? sourceDescription = default,
Expand All @@ -546,6 +551,7 @@ partial void ProcessAddDataResponseContent(
{
CreatedAt = createdAt,
Data = data,
DocumentId = documentId,
GraphId = graphId,
Metadata = metadata,
SourceDescription = sourceDescription,
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Zep/Generated/Zep.DataClient.AddDataInBatchMode.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,9 @@ partial void ProcessAddDataInBatchModeResponseContent(
/// Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.<br/>
/// Adds data to the graph in batch mode, processing episodes concurrently.
/// </summary>
/// <param name="documentId">
/// Optional document ID applied to every episode in this batch request.
/// </param>
/// <param name="episodes"></param>
/// <param name="graphId">
/// graph_id is the ID of the graph to which the data will be added. If adding to the user graph, please use user_id field instead.
Expand All @@ -529,6 +532,7 @@ partial void ProcessAddDataInBatchModeResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::Zep.ApidataGraphEpisode>> AddDataInBatchModeAsync(
global::System.Collections.Generic.IList<global::Zep.ApidataEpisodeData> episodes,
string? documentId = default,
string? graphId = default,
bool? strictOntology = default,
string? userId = default,
Expand All @@ -537,6 +541,7 @@ partial void ProcessAddDataInBatchModeResponseContent(
{
var __request = new global::Zep.ApidataAddDataBatchRequest
{
DocumentId = documentId,
Episodes = episodes,
GraphId = graphId,
StrictOntology = strictOntology,
Expand Down
549 changes: 549 additions & 0 deletions src/libs/Zep/Generated/Zep.DocumentClient.GetEpisodesForADocument.g.cs

Large diffs are not rendered by default.

143 changes: 143 additions & 0 deletions src/libs/Zep/Generated/Zep.DocumentClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@

#nullable enable

namespace Zep
{
/// <summary>
/// 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 DocumentClient : global::Zep.IDocumentClient, global::System.IDisposable
{
/// <summary>
/// https://api.getzep.com/api/v2
/// </summary>
public const string DefaultBaseUrl = "https://api.getzep.com/api/v2";

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::Zep.EndPointAuthorization> Authorizations { get; }

/// <inheritdoc/>
public bool ReadResponseAsString { get; set; }
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Zep.AutoSDKClientOptions Options { get; }

internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Zep.SourceGenerationContext.Default);

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
get => JsonSerializerContextProvider.Value;
set => JsonSerializerContextProvider = new(() => value);
}


/// <summary>
/// Creates a new instance of the DocumentClient.
/// 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 DocumentClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the DocumentClient with explicit options but no base URL override.
/// Skips passing <c>baseUri</c> so the default base URL from the OpenAPI spec applies.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public DocumentClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
global::Zep.AutoSDKClientOptions? options,
bool disposeHttpClient = true) : this(
httpClient,
baseUri: null,
authorizations,
options,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the DocumentClient.
/// 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="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public DocumentClient(
global::System.Net.Http.HttpClient? httpClient,
global::System.Uri? baseUri,
global::System.Collections.Generic.List<global::Zep.EndPointAuthorization>? authorizations,
global::Zep.AutoSDKClientOptions? options,
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::Zep.EndPointAuthorization>();
Options = options ?? new global::Zep.AutoSDKClientOptions();
_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
Loading