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 @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AgentsCountDeployedAgentsServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsCountDeployedAgentsSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -94,7 +107,9 @@ partial void ProcessAgentsCountDeployedAgentsResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: "/v1/agents/search/count",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AgentsCountDeployedAgentsServers,
defaultBaseUrl: "https://app.letta.com/"));
__pathBuilder
.AddOptionalParameter("search", search, selector: static x => x.ToString() ?? string.Empty, delimiter: ",", explode: true)
.AddOptionalParameter("project_id", projectId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AgentsGetAgentVariablesServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsGetAgentVariablesSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -84,7 +97,9 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/core-memory/variables",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AgentsGetAgentVariablesServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AgentsSearchDeployedAgentsServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsSearchDeployedAgentsSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -87,7 +100,9 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: "/v1/agents/search",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AgentsSearchDeployedAgentsServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AttachArchiveToAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AttachArchiveToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -91,7 +104,9 @@ partial void ProcessAttachArchiveToAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/archives/attach/{archiveId}",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AttachArchiveToAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AttachCoreMemoryBlockServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AttachCoreMemoryBlockSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -93,7 +106,9 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/core-memory/blocks/attach/{blockId}",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AttachCoreMemoryBlockServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AttachFolderToAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AttachFolderToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -93,7 +106,9 @@ partial void ProcessAttachFolderToAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/folders/attach/{folderId}",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AttachFolderToAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AttachIdentityToAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AttachIdentityToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -91,7 +104,9 @@ partial void ProcessAttachIdentityToAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/identities/attach/{identityId}",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AttachIdentityToAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_AttachToolToAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_AttachToolToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -93,7 +106,9 @@ partial void ProcessAttachToolToAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/tools/attach/{toolId}",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_AttachToolToAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
17 changes: 16 additions & 1 deletion src/libs/Letta/Generated/Letta.AgentsClient.CancelMessage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_CancelMessageServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_CancelMessageSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -95,7 +108,9 @@ partial void ProcessCancelMessageResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/messages/cancel",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_CancelMessageServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_CloseAllFilesForAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_CloseAllFilesForAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -88,7 +101,9 @@ partial void ProcessCloseAllFilesForAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/files/close-all",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_CloseAllFilesForAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_CloseFileForAgentServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_CloseFileForAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -95,7 +108,9 @@ partial void ProcessCloseFileForAgentResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/files/{fileId}/close",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_CloseFileForAgentServers,
defaultBaseUrl: "https://app.letta.com/"));
var __path = __pathBuilder.ToString();
__path = global::Letta.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down
17 changes: 16 additions & 1 deletion src/libs/Letta/Generated/Letta.AgentsClient.CountAgents.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ namespace Letta
public partial class AgentsClient
{

private static readonly global::Letta.AutoSDKServer[] s_CountAgentsServers = new global::Letta.AutoSDKServer[]
{ new global::Letta.AutoSDKServer(
id: "https-app-letta-com",
name: "Letta Cloud",
url: "https://app.letta.com/",
description: "Letta Cloud"),
new global::Letta.AutoSDKServer(
id: "http-localhost",
name: "Self-hosted",
url: "http://localhost:8283/",
description: "Self-hosted"),
};


private static readonly global::Letta.EndPointSecurityRequirement s_CountAgentsSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
Expand Down Expand Up @@ -158,7 +171,9 @@ partial void ProcessCountAgentsResponseContent(
{
var __pathBuilder = new global::Letta.PathBuilder(
path: "/v1/agents/count",
baseUri: HttpClient.BaseAddress);
baseUri: ResolveBaseUri(
servers: s_CountAgentsServers,
defaultBaseUrl: "https://app.letta.com/"));
__pathBuilder
.AddOptionalParameter("name", name)
.AddOptionalParameter("tags", tags?.ToString())
Expand Down
Loading
Loading