From eaa1c339d4ea1dc20f0a67c119c9b789c2b58f38 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 23:39:21 +0000 Subject: [PATCH] Release 0.1.7 --- package.json | 2 +- src/api/resources/agents/client/Client.ts | 24 +++++----- .../resources/archivalMemory/client/Client.ts | 16 +++---- .../agents/resources/context/client/Client.ts | 4 +- .../resources/coreMemory/client/Client.ts | 28 +++++------ .../memoryVariables/client/Client.ts | 4 +- .../resources/messages/client/Client.ts | 20 ++++---- .../resources/recallMemory/client/Client.ts | 4 +- .../agents/resources/sources/client/Client.ts | 4 +- .../resources/templates/client/Client.ts | 12 ++--- .../agents/resources/tools/client/Client.ts | 12 ++--- src/api/resources/blocks/client/Client.ts | 28 +++++------ src/api/resources/health/client/Client.ts | 4 +- src/api/resources/jobs/client/Client.ts | 16 +++---- src/api/resources/models/client/Client.ts | 8 ++-- src/api/resources/providers/client/Client.ts | 16 +++---- src/api/resources/sources/client/Client.ts | 32 ++++++------- .../sources/resources/files/client/Client.ts | 12 ++--- .../resources/passages/client/Client.ts | 4 +- src/api/resources/tools/client/Client.ts | 48 +++++++++---------- src/api/types/LettaSchemasToolTool.ts | 6 ++- src/api/types/ToolType.ts | 10 ++++ src/api/types/index.ts | 1 + .../types/LettaSchemasToolTool.ts | 7 ++- src/serialization/types/ToolType.ts | 17 +++++++ src/serialization/types/index.ts | 1 + src/version.ts | 2 +- 27 files changed, 189 insertions(+), 153 deletions(-) create mode 100644 src/api/types/ToolType.ts create mode 100644 src/serialization/types/ToolType.ts diff --git a/package.json b/package.json index 33faddf..5be061e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@letta-ai/letta-client", - "version": "0.1.6", + "version": "0.1.7", "private": false, "repository": "https://github.com/letta-ai/letta-node", "main": "./index.js", diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts index a32b1e3..8afc280 100644 --- a/src/api/resources/agents/client/Client.ts +++ b/src/api/resources/agents/client/Client.ts @@ -137,8 +137,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -225,8 +225,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -305,8 +305,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -384,8 +384,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -462,8 +462,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -545,8 +545,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/archivalMemory/client/Client.ts b/src/api/resources/agents/resources/archivalMemory/client/Client.ts index 094a062..10d5552 100644 --- a/src/api/resources/agents/resources/archivalMemory/client/Client.ts +++ b/src/api/resources/agents/resources/archivalMemory/client/Client.ts @@ -55,8 +55,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -155,8 +155,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -242,8 +242,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -329,8 +329,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/context/client/Client.ts b/src/api/resources/agents/resources/context/client/Client.ts index 1ada212..2c963eb 100644 --- a/src/api/resources/agents/resources/context/client/Client.ts +++ b/src/api/resources/agents/resources/context/client/Client.ts @@ -52,8 +52,8 @@ export class Context { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/coreMemory/client/Client.ts b/src/api/resources/agents/resources/coreMemory/client/Client.ts index 1283fd3..7255321 100644 --- a/src/api/resources/agents/resources/coreMemory/client/Client.ts +++ b/src/api/resources/agents/resources/coreMemory/client/Client.ts @@ -55,8 +55,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,8 +137,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -221,8 +221,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -307,8 +307,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -395,8 +395,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -477,8 +477,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -566,8 +566,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/memoryVariables/client/Client.ts b/src/api/resources/agents/resources/memoryVariables/client/Client.ts index fbba6d6..1d955dd 100644 --- a/src/api/resources/agents/resources/memoryVariables/client/Client.ts +++ b/src/api/resources/agents/resources/memoryVariables/client/Client.ts @@ -57,8 +57,8 @@ export class MemoryVariables { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/messages/client/Client.ts b/src/api/resources/agents/resources/messages/client/Client.ts index be20ec3..94ef8d6 100644 --- a/src/api/resources/agents/resources/messages/client/Client.ts +++ b/src/api/resources/agents/resources/messages/client/Client.ts @@ -80,8 +80,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -171,8 +171,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -260,8 +260,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -340,8 +340,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -444,8 +444,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/recallMemory/client/Client.ts b/src/api/resources/agents/resources/recallMemory/client/Client.ts index 55ba1a2..cf14f24 100644 --- a/src/api/resources/agents/resources/recallMemory/client/Client.ts +++ b/src/api/resources/agents/resources/recallMemory/client/Client.ts @@ -55,8 +55,8 @@ export class RecallMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/sources/client/Client.ts b/src/api/resources/agents/resources/sources/client/Client.ts index eb46dd1..bd59a59 100644 --- a/src/api/resources/agents/resources/sources/client/Client.ts +++ b/src/api/resources/agents/resources/sources/client/Client.ts @@ -52,8 +52,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/templates/client/Client.ts b/src/api/resources/agents/resources/templates/client/Client.ts index 415541d..17b04df 100644 --- a/src/api/resources/agents/resources/templates/client/Client.ts +++ b/src/api/resources/agents/resources/templates/client/Client.ts @@ -66,8 +66,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -151,8 +151,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -243,8 +243,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/tools/client/Client.ts b/src/api/resources/agents/resources/tools/client/Client.ts index 524113e..f55bfe6 100644 --- a/src/api/resources/agents/resources/tools/client/Client.ts +++ b/src/api/resources/agents/resources/tools/client/Client.ts @@ -52,8 +52,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -136,8 +136,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -222,8 +222,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/blocks/client/Client.ts b/src/api/resources/blocks/client/Client.ts index 6b963ae..6db1d9c 100644 --- a/src/api/resources/blocks/client/Client.ts +++ b/src/api/resources/blocks/client/Client.ts @@ -67,8 +67,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -148,8 +148,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -226,8 +226,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -303,8 +303,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -385,8 +385,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -475,8 +475,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -559,8 +559,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/health/client/Client.ts b/src/api/resources/health/client/Client.ts index 8b17eeb..8d7e8e8 100644 --- a/src/api/resources/health/client/Client.ts +++ b/src/api/resources/health/client/Client.ts @@ -47,8 +47,8 @@ export class Health { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts index 3c92ada..9a4b3d5 100644 --- a/src/api/resources/jobs/client/Client.ts +++ b/src/api/resources/jobs/client/Client.ts @@ -58,8 +58,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,8 +137,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -216,8 +216,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -295,8 +295,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/models/client/Client.ts b/src/api/resources/models/client/Client.ts index ecd58c7..1ddb881 100644 --- a/src/api/resources/models/client/Client.ts +++ b/src/api/resources/models/client/Client.ts @@ -47,8 +47,8 @@ export class Models { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -108,8 +108,8 @@ export class Models { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/providers/client/Client.ts b/src/api/resources/providers/client/Client.ts index 0d05dc9..7c743e3 100644 --- a/src/api/resources/providers/client/Client.ts +++ b/src/api/resources/providers/client/Client.ts @@ -65,8 +65,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -151,8 +151,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -237,8 +237,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -325,8 +325,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/client/Client.ts b/src/api/resources/sources/client/Client.ts index edb16bf..242f29c 100644 --- a/src/api/resources/sources/client/Client.ts +++ b/src/api/resources/sources/client/Client.ts @@ -65,8 +65,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -144,8 +144,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -222,8 +222,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -302,8 +302,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -380,8 +380,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -461,8 +461,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -551,8 +551,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -643,8 +643,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/resources/files/client/Client.ts b/src/api/resources/sources/resources/files/client/Client.ts index 4dd82d0..cccf959 100644 --- a/src/api/resources/sources/resources/files/client/Client.ts +++ b/src/api/resources/sources/resources/files/client/Client.ts @@ -62,8 +62,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -160,8 +160,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -241,8 +241,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/resources/passages/client/Client.ts b/src/api/resources/sources/resources/passages/client/Client.ts index 430a583..8e15015 100644 --- a/src/api/resources/sources/resources/passages/client/Client.ts +++ b/src/api/resources/sources/resources/passages/client/Client.ts @@ -52,8 +52,8 @@ export class Passages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts index 6a62426..b5e048f 100644 --- a/src/api/resources/tools/client/Client.ts +++ b/src/api/resources/tools/client/Client.ts @@ -52,8 +52,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -131,8 +131,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -209,8 +209,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -289,8 +289,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -381,8 +381,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -466,8 +466,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -551,8 +551,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -630,8 +630,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -717,8 +717,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -796,8 +796,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -878,8 +878,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -962,8 +962,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.6", - "User-Agent": "@letta-ai/letta-client/0.1.6", + "X-Fern-SDK-Version": "0.1.7", + "User-Agent": "@letta-ai/letta-client/0.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/LettaSchemasToolTool.ts b/src/api/types/LettaSchemasToolTool.ts index 3621bc6..135ddfd 100644 --- a/src/api/types/LettaSchemasToolTool.ts +++ b/src/api/types/LettaSchemasToolTool.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Letta from "../index"; + /** * Representation of a tool, which is a function that can be called by the agent. * @@ -15,6 +17,8 @@ export interface LettaSchemasToolTool { /** The human-friendly ID of the Tool */ id?: string; + /** The type of the tool. */ + toolType?: Letta.ToolType; /** The description of the tool. */ description?: string; /** The type of the source code. */ @@ -26,7 +30,7 @@ export interface LettaSchemasToolTool { /** Metadata tags. */ tags?: string[]; /** The source code of the function. */ - sourceCode: string; + sourceCode?: string; /** The JSON schema of the function. */ jsonSchema?: Record; /** The maximum number of characters in the response. */ diff --git a/src/api/types/ToolType.ts b/src/api/types/ToolType.ts new file mode 100644 index 0000000..864b1bb --- /dev/null +++ b/src/api/types/ToolType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ToolType = "custom" | "letta_core" | "letta_memory_core"; +export const ToolType = { + Custom: "custom", + LettaCore: "letta_core", + LettaMemoryCore: "letta_memory_core", +} as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index f22723d..11eae78 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -93,6 +93,7 @@ export * from "./ToolMessage"; export * from "./ToolReturnMessageStatus"; export * from "./ToolReturnMessage"; export * from "./ToolRuleType"; +export * from "./ToolType"; export * from "./UsageStatistics"; export * from "./User"; export * from "./UserCreate"; diff --git a/src/serialization/types/LettaSchemasToolTool.ts b/src/serialization/types/LettaSchemasToolTool.ts index 71a4054..210bc16 100644 --- a/src/serialization/types/LettaSchemasToolTool.ts +++ b/src/serialization/types/LettaSchemasToolTool.ts @@ -5,18 +5,20 @@ import * as serializers from "../index"; import * as Letta from "../../api/index"; import * as core from "../../core"; +import { ToolType } from "./ToolType"; export const LettaSchemasToolTool: core.serialization.ObjectSchema< serializers.LettaSchemasToolTool.Raw, Letta.LettaSchemasToolTool > = core.serialization.object({ id: core.serialization.string().optional(), + toolType: core.serialization.property("tool_type", ToolType.optional()), description: core.serialization.string().optional(), sourceType: core.serialization.property("source_type", core.serialization.string().optional()), module: core.serialization.string().optional(), name: core.serialization.string().optional(), tags: core.serialization.list(core.serialization.string()).optional(), - sourceCode: core.serialization.property("source_code", core.serialization.string()), + sourceCode: core.serialization.property("source_code", core.serialization.string().optional()), jsonSchema: core.serialization.property( "json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() @@ -29,12 +31,13 @@ export const LettaSchemasToolTool: core.serialization.ObjectSchema< export declare namespace LettaSchemasToolTool { interface Raw { id?: string | null; + tool_type?: ToolType.Raw | null; description?: string | null; source_type?: string | null; module?: string | null; name?: string | null; tags?: string[] | null; - source_code: string; + source_code?: string | null; json_schema?: Record | null; return_char_limit?: number | null; created_by_id?: string | null; diff --git a/src/serialization/types/ToolType.ts b/src/serialization/types/ToolType.ts new file mode 100644 index 0000000..342af7f --- /dev/null +++ b/src/serialization/types/ToolType.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Letta from "../../api/index"; +import * as core from "../../core"; + +export const ToolType: core.serialization.Schema = core.serialization.enum_([ + "custom", + "letta_core", + "letta_memory_core", +]); + +export declare namespace ToolType { + type Raw = "custom" | "letta_core" | "letta_memory_core"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index f22723d..11eae78 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -93,6 +93,7 @@ export * from "./ToolMessage"; export * from "./ToolReturnMessageStatus"; export * from "./ToolReturnMessage"; export * from "./ToolRuleType"; +export * from "./ToolType"; export * from "./UsageStatistics"; export * from "./User"; export * from "./UserCreate"; diff --git a/src/version.ts b/src/version.ts index a7a74dc..f7bdb79 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.1.6"; +export const SDK_VERSION = "0.1.7";