Skip to content

Commit

Permalink
Release 0.1.32
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 19, 2025
1 parent aa1831f commit 4de8309
Show file tree
Hide file tree
Showing 47 changed files with 335 additions and 164 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@letta-ai/letta-client",
"version": "0.1.31",
"version": "0.1.32",
"private": false,
"repository": "https://github.com/letta-ai/letta-node",
"main": "./index.js",
Expand Down
47 changes: 31 additions & 16 deletions src/api/resources/agents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,19 @@ export class Agents {
request: Letta.AgentsListRequest = {},
requestOptions?: Agents.RequestOptions,
): Promise<Letta.AgentState[]> {
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId } =
request;
const {
name,
tags,
matchAllTags,
before,
after,
limit,
queryText,
projectId,
templateId,
baseTemplateId,
identifierKey,
} = request;
const _queryParams: Record<string, string | string[] | object | object[]> = {};
if (name != null) {
_queryParams["name"] = name;
Expand Down Expand Up @@ -145,6 +156,10 @@ export class Agents {
_queryParams["base_template_id"] = baseTemplateId;
}

if (identifierKey != null) {
_queryParams["identifier_key"] = identifierKey;
}

const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.baseUrl)) ??
Expand All @@ -156,8 +171,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -241,8 +256,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -323,8 +338,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -404,8 +419,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -484,8 +499,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -577,8 +592,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -664,8 +679,8 @@ export class Agents {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
4 changes: 4 additions & 0 deletions src/api/resources/agents/client/requests/AgentsListRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ export interface AgentsListRequest {
* Search agents by base template id
*/
baseTemplateId?: string;
/**
* Search agents by identifier key
*/
identifierKey?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export interface CreateAgentRequest {
templateId?: string;
/** The base template id of the agent. */
baseTemplateId?: string;
/** The identifier key belonging to the identity associated with this agent. */
identifierKey?: string;
/** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
messageBufferAutoclear?: boolean;
}
2 changes: 2 additions & 0 deletions src/api/resources/agents/client/requests/UpdateAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export interface UpdateAgent {
templateId?: string;
/** The base template id of the agent. */
baseTemplateId?: string;
/** The identifier key belonging to the identity associated with this agent. */
identifierKey?: string;
/** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
messageBufferAutoclear?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class ArchivalMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -166,8 +166,8 @@ export class ArchivalMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -255,8 +255,8 @@ export class ArchivalMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/agents/resources/context/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class Context {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
24 changes: 12 additions & 12 deletions src/api/resources/agents/resources/coreMemory/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -145,8 +145,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -235,8 +235,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -319,8 +319,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -407,8 +407,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -495,8 +495,8 @@ export class CoreMemory {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export class MemoryVariables {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/agents/resources/messages/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -182,8 +182,8 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -273,8 +273,8 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -355,8 +355,8 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -461,8 +461,8 @@ export class Messages {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/agents/resources/sources/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export class Sources {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -149,8 +149,8 @@ export class Sources {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -232,8 +232,8 @@ export class Sources {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/agents/resources/templates/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export class Templates {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -157,8 +157,8 @@ export class Templates {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -250,8 +250,8 @@ export class Templates {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@letta-ai/letta-client",
"X-Fern-SDK-Version": "0.1.31",
"User-Agent": "@letta-ai/letta-client/0.1.31",
"X-Fern-SDK-Version": "0.1.32",
"User-Agent": "@letta-ai/letta-client/0.1.32",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Loading

0 comments on commit 4de8309

Please sign in to comment.