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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessAgentsCountDeployedAgentsResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentsCountDeployedAgentsResponse.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentsCountDeployedAgentsResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -155,7 +155,7 @@ partial void ProcessAgentsCountDeployedAgentsResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentsCountDeployedAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentsCountDeployedAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
if (ReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_404 = global::Letta.AgentsGetAgentVariablesResponse2.FromJson(__content_404, JsonSerializerOptions);
__value_404 = global::Letta.AgentsGetAgentVariablesResponse2.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_404 = global::Letta.AgentsGetAgentVariablesResponse2.FromJson(__content_404, JsonSerializerOptions);
__value_404 = global::Letta.AgentsGetAgentVariablesResponse2.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -146,7 +146,7 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentsGetAgentVariablesResponse.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentsGetAgentVariablesResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -176,7 +176,7 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentsGetAgentVariablesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentsGetAgentVariablesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -117,7 +117,7 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentsSearchDeployedAgentsResponse.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentsSearchDeployedAgentsResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -147,7 +147,7 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentsSearchDeployedAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentsSearchDeployedAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ partial void ProcessAttachArchiveToAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -156,7 +156,7 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentState.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentState.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -186,7 +186,7 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ partial void ProcessAttachFolderToAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -156,7 +156,7 @@ partial void ProcessAttachFolderToAgentResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentState.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentState.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -186,7 +186,7 @@ partial void ProcessAttachFolderToAgentResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ partial void ProcessAttachIdentityToAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ partial void ProcessAttachToolToAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -156,7 +156,7 @@ partial void ProcessAttachToolToAgentResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Letta.AgentState.FromJson(__content, JsonSerializerOptions) ??
global::Letta.AgentState.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -186,7 +186,7 @@ partial void ProcessAttachToolToAgentResponseContent(
).ConfigureAwait(false);

return
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Letta.AgentState.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ partial void ProcessCancelMessageResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -114,13 +114,13 @@ partial void ProcessCancelMessageResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -150,7 +150,7 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize<global::System.Collections.Generic.IList<string>?>(__content, JsonSerializerOptions) ??
(global::System.Collections.Generic.IList<string>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -180,7 +180,7 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync<global::System.Collections.Generic.IList<string>?>(__content, JsonSerializerOptions).ConfigureAwait(false) ??
(global::System.Collections.Generic.IList<string>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ partial void ProcessCloseFileForAgentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Letta.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down
Loading