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 @@ -140,7 +140,7 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
PrepareAgentsGetAgentVariablesRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ partial void ProcessAttachArchiveToAgentResponseContent(
PrepareAttachArchiveToAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
archiveId: archiveId,
agentId: agentId);
archiveId: archiveId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
PrepareAttachCoreMemoryBlockRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
blockId: blockId,
agentId: agentId);
blockId: blockId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessAttachFolderToAgentResponseContent(
PrepareAttachFolderToAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
folderId: folderId,
agentId: agentId);
folderId: folderId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ partial void ProcessAttachIdentityToAgentResponseContent(
PrepareAttachIdentityToAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
identityId: identityId,
agentId: agentId);
identityId: identityId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessAttachToolToAgentResponseContent(
PrepareAttachToolToAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
toolId: toolId,
agentId: agentId);
toolId: toolId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ partial void ProcessCancelMessageResponseContent(
PrepareCancelMessageRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
PrepareCloseAllFilesForAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ partial void ProcessCloseFileForAgentResponseContent(
PrepareCloseFileForAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId,
agentId: agentId);
fileId: fileId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ partial void ProcessCreateAgentMessageAsyncResponseContent(
PrepareCreateAgentMessageAsyncRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessCreatePassageResponseContent(
PrepareCreatePassageRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ partial void ProcessDeleteAgentResponseContent(
PrepareDeleteAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ partial void ProcessDeletePassageResponseContent(
PrepareDeletePassageRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
memoryId: memoryId,
agentId: agentId);
memoryId: memoryId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ partial void ProcessDetachArchiveFromAgentResponseContent(
PrepareDetachArchiveFromAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
archiveId: archiveId,
agentId: agentId);
archiveId: archiveId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessDetachCoreMemoryBlockResponseContent(
PrepareDetachCoreMemoryBlockRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
blockId: blockId,
agentId: agentId);
blockId: blockId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessDetachFolderFromAgentResponseContent(
PrepareDetachFolderFromAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
folderId: folderId,
agentId: agentId);
folderId: folderId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ partial void ProcessDetachIdentityFromAgentResponseContent(
PrepareDetachIdentityFromAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
identityId: identityId,
agentId: agentId);
identityId: identityId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ partial void ProcessDetachToolFromAgentResponseContent(
PrepareDetachToolFromAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
toolId: toolId,
agentId: agentId);
toolId: toolId!,
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ partial void ProcessExportAgentResponseContent(
PrepareExportAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
maxSteps: maxSteps,
useLegacyFormat: useLegacyFormat,
conversationId: conversationId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessExportAgentWithSkillsResponseContent(
PrepareExportAgentWithSkillsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ partial void ProcessGenerateCompletionResponseContent(
PrepareGenerateCompletionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
request: request);

return __httpRequest;
Expand Down
54 changes: 41 additions & 13 deletions src/libs/Letta/Generated/Letta.AgentsClient.ImportAgent.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,38 @@ partial void ProcessImportAgentResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{xOverrideEmbeddingModel}"),
content: new global::System.Net.Http.StringContent(xOverrideEmbeddingModel ?? string.Empty),
name: "\"x-override-embedding-model\"");
}
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentFile,
name: "\"file\"",
Expand All @@ -167,84 +195,84 @@ partial void ProcessImportAgentResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.OverrideExistingTools}"),
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.OverrideExistingTools, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"override_existing_tools\"");
}
if (request.StripMessages != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StripMessages}"),
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.StripMessages, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"strip_messages\"");
}
if (request.Secrets != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Secrets}"),
content: new global::System.Net.Http.StringContent(request.Secrets ?? string.Empty),
name: "\"secrets\"");
}
if (request.Name != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Name}"),
content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty),
name: "\"name\"");
}
if (request.Embedding != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Embedding}"),
content: new global::System.Net.Http.StringContent(request.Embedding ?? string.Empty),
name: "\"embedding\"");
}
if (request.Model != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Model}"),
content: new global::System.Net.Http.StringContent(request.Model ?? string.Empty),
name: "\"model\"");
}
if (request.AppendCopySuffix != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.AppendCopySuffix}"),
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.AppendCopySuffix, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"append_copy_suffix\"");
}
if (request.OverrideName != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.OverrideName}"),
content: new global::System.Net.Http.StringContent(request.OverrideName ?? string.Empty),
name: "\"override_name\"");
}
if (request.OverrideEmbeddingHandle != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.OverrideEmbeddingHandle}"),
content: new global::System.Net.Http.StringContent(request.OverrideEmbeddingHandle ?? string.Empty),
name: "\"override_embedding_handle\"");
}
if (request.OverrideModelHandle != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.OverrideModelHandle}"),
content: new global::System.Net.Http.StringContent(request.OverrideModelHandle ?? string.Empty),
name: "\"override_model_handle\"");
}
if (request.ProjectId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ProjectId}"),
content: new global::System.Net.Http.StringContent(request.ProjectId ?? string.Empty),
name: "\"project_id\"");
}
if (request.EnvVarsJson != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.EnvVarsJson}"),
content: new global::System.Net.Http.StringContent(request.EnvVarsJson ?? string.Empty),
name: "\"env_vars_json\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ partial void ProcessListCoreMemoryBlocksResponseContent(
PrepareListCoreMemoryBlocksRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
before: before,
after: after,
limit: limit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ partial void ProcessListFilesForAgentResponseContent(
PrepareListFilesForAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
before: before,
after: after,
limit: limit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ partial void ProcessListFoldersForAgentResponseContent(
PrepareListFoldersForAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
before: before,
after: after,
limit: limit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ partial void ProcessListGroupsForAgentResponseContent(
PrepareListGroupsForAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
managerType: managerType,
before: before,
after: after,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ partial void ProcessListMessagesResponseContent(
PrepareListMessagesRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
before: before,
after: after,
limit: limit,
Expand Down
Loading
Loading