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 @@ -150,7 +150,7 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext) as global::System.Collections.Generic.IList<string> ??
(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 @@ -181,7 +181,7 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<string> ??
(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
4 changes: 2 additions & 2 deletions src/libs/Letta/Generated/Letta.AgentsClient.CountAgents.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ partial void ProcessCountAgentsResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(int?), JsonSerializerContext) as int? ??
(int?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(int?), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -265,7 +265,7 @@ partial void ProcessCountAgentsResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(int?), JsonSerializerContext).ConfigureAwait(false) as int? ??
(int?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(int?), 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 @@ -163,7 +163,7 @@ partial void ProcessCreatePassageResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Passage>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.Passage> ??
(global::System.Collections.Generic.IList<global::Letta.Passage>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Passage>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Letta/Generated/Letta.AgentsClient.ListAgents.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ partial void ProcessListAgentsResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.AgentState>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.AgentState> ??
(global::System.Collections.Generic.IList<global::Letta.AgentState>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.AgentState>), 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 @@ -198,7 +198,7 @@ partial void ProcessListCoreMemoryBlocksResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.BlockResponse>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.BlockResponse> ??
(global::System.Collections.Generic.IList<global::Letta.BlockResponse>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.BlockResponse>), 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 @@ -198,7 +198,7 @@ partial void ProcessListFoldersForAgentResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Source2>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.Source2> ??
(global::System.Collections.Generic.IList<global::Letta.Source2>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Source2>), 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 @@ -207,7 +207,7 @@ partial void ProcessListGroupsForAgentResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Group>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.Group> ??
(global::System.Collections.Generic.IList<global::Letta.Group>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Group>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Letta/Generated/Letta.AgentsClient.ListMessages.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ partial void ProcessListMessagesResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.LettaMessageUnion>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.LettaMessageUnion> ??
(global::System.Collections.Generic.IList<global::Letta.LettaMessageUnion>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.LettaMessageUnion>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Letta/Generated/Letta.AgentsClient.ListPassages.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ partial void ProcessListPassagesResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Passage>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.Passage> ??
(global::System.Collections.Generic.IList<global::Letta.Passage>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Passage>), 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 @@ -198,7 +198,7 @@ partial void ProcessListToolsForAgentResponseContent(
__response.EnsureSuccessStatusCode();

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

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Tool>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::Letta.Tool> ??
(global::System.Collections.Generic.IList<global::Letta.Tool>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::Letta.Tool>), 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 @@ -159,7 +159,7 @@ partial void ProcessOpenFileForAgentResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext) as global::System.Collections.Generic.IList<string> ??
(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 @@ -190,7 +190,7 @@ partial void ProcessOpenFileForAgentResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<string>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<string> ??
(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
Loading