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


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsCountDeployedAgentsSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AgentsCountDeployedAgentsSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AgentsCountDeployedAgentsSecurityRequirement0,
};
partial void PrepareAgentsCountDeployedAgentsArguments(
global::System.Net.Http.HttpClient httpClient,
global::System.Collections.Generic.IList<global::Letta.OneOf<global::Letta.AgentsCountDeployedAgentsSearchItemVariant1, global::Letta.AgentsCountDeployedAgentsSearchItemVariant2, global::Letta.AgentsCountDeployedAgentsSearchItemVariant3, global::Letta.AgentsCountDeployedAgentsSearchItemVariant4, global::Letta.AgentsCountDeployedAgentsSearchItemVariant5, global::Letta.AgentsCountDeployedAgentsSearchItemVariant6>>? search,
Expand Down Expand Up @@ -48,14 +67,20 @@ partial void ProcessAgentsCountDeployedAgentsResponseContent(
projectId: ref projectId,
combinator: ref combinator);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AgentsCountDeployedAgentsSecurityRequirements,
operationName: "AgentsCountDeployedAgentsAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: "/v1/agents/search/count",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("search", search, selector: static x => x.ToString() ?? string.Empty, delimiter: ",", explode: true)
.AddOptionalParameter("project_id", projectId)
.AddOptionalParameter("combinator", combinator?.ToValueString())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -65,7 +90,7 @@ partial void ProcessAgentsCountDeployedAgentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsGetAgentVariablesSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AgentsGetAgentVariablesSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AgentsGetAgentVariablesSecurityRequirement0,
};
partial void PrepareAgentsGetAgentVariablesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string agentId);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
httpClient: HttpClient,
agentId: ref agentId);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AgentsGetAgentVariablesSecurityRequirements,
operationName: "AgentsGetAgentVariablesAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/core-memory/variables",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -50,7 +75,7 @@ partial void ProcessAgentsGetAgentVariablesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AgentsSearchDeployedAgentsSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AgentsSearchDeployedAgentsSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AgentsSearchDeployedAgentsSecurityRequirement0,
};
partial void PrepareAgentsSearchDeployedAgentsArguments(
global::System.Net.Http.HttpClient httpClient,
global::Letta.AgentsSearchDeployedAgentsRequest request);
Expand Down Expand Up @@ -41,9 +60,15 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AgentsSearchDeployedAgentsSecurityRequirements,
operationName: "AgentsSearchDeployedAgentsAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: "/v1/agents/search",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -53,7 +78,7 @@ partial void ProcessAgentsSearchDeployedAgentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AttachArchiveToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AttachArchiveToAgentSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AttachArchiveToAgentSecurityRequirement0,
};
partial void PrepareAttachArchiveToAgentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string archiveId,
Expand Down Expand Up @@ -45,9 +64,15 @@ partial void ProcessAttachArchiveToAgentResponseContent(
archiveId: ref archiveId,
agentId: ref agentId);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AttachArchiveToAgentSecurityRequirements,
operationName: "AttachArchiveToAgentAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/archives/attach/{archiveId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
Expand All @@ -57,7 +82,7 @@ partial void ProcessAttachArchiveToAgentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AttachCoreMemoryBlockSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AttachCoreMemoryBlockSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AttachCoreMemoryBlockSecurityRequirement0,
};
partial void PrepareAttachCoreMemoryBlockArguments(
global::System.Net.Http.HttpClient httpClient,
ref string blockId,
Expand Down Expand Up @@ -47,9 +66,15 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
blockId: ref blockId,
agentId: ref agentId);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AttachCoreMemoryBlockSecurityRequirements,
operationName: "AttachCoreMemoryBlockAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/core-memory/blocks/attach/{blockId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
Expand All @@ -59,7 +84,7 @@ partial void ProcessAttachCoreMemoryBlockResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AttachFolderToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AttachFolderToAgentSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AttachFolderToAgentSecurityRequirement0,
};
partial void PrepareAttachFolderToAgentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string folderId,
Expand Down Expand Up @@ -47,9 +66,15 @@ partial void ProcessAttachFolderToAgentResponseContent(
folderId: ref folderId,
agentId: ref agentId);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AttachFolderToAgentSecurityRequirements,
operationName: "AttachFolderToAgentAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/folders/attach/{folderId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
Expand All @@ -59,7 +84,7 @@ partial void ProcessAttachFolderToAgentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Letta
{
public partial class AgentsClient
{


private static readonly global::Letta.EndPointSecurityRequirement s_AttachIdentityToAgentSecurityRequirement0 =
new global::Letta.EndPointSecurityRequirement
{
Authorizations = new global::Letta.EndPointAuthorizationRequirement[]
{ new global::Letta.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Letta.EndPointSecurityRequirement[] s_AttachIdentityToAgentSecurityRequirements =
new global::Letta.EndPointSecurityRequirement[]
{ s_AttachIdentityToAgentSecurityRequirement0,
};
partial void PrepareAttachIdentityToAgentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string identityId,
Expand Down Expand Up @@ -45,9 +64,15 @@ partial void ProcessAttachIdentityToAgentResponseContent(
identityId: ref identityId,
agentId: ref agentId);


var __authorizations = global::Letta.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AttachIdentityToAgentSecurityRequirements,
operationName: "AttachIdentityToAgentAsync");

var __pathBuilder = new global::Letta.PathBuilder(
path: $"/v1/agents/{agentId}/identities/attach/{identityId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
Expand All @@ -57,7 +82,7 @@ partial void ProcessAttachIdentityToAgentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Loading
Loading