@letta-ai/letta-client 0.1.104 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +6 -3
- package/Client.js +14 -9
- package/api/resources/agents/client/Client.js +9 -9
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +5 -5
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.d.ts +39 -0
- package/api/resources/embeddingModels/client/Client.js +117 -0
- package/api/resources/embeddingModels/client/index.d.ts +1 -0
- package/api/resources/embeddingModels/client/index.js +2 -0
- package/api/resources/embeddings/client/Client.d.ts +2 -3
- package/api/resources/embeddings/client/Client.js +6 -13
- package/api/resources/groups/client/Client.js +5 -5
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.d.ts +11 -11
- package/api/resources/sources/client/Client.js +67 -67
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +12 -11
- package/api/resources/tools/client/Client.js +63 -56
- package/api/resources/tools/client/requests/ToolsCountRequest.d.ts +13 -0
- package/api/resources/tools/client/requests/ToolsCountRequest.js +5 -0
- package/api/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/LocalSandboxConfig.d.ts +2 -2
- package/dist/Client.d.ts +6 -3
- package/dist/Client.js +14 -9
- package/dist/api/resources/agents/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.d.ts +39 -0
- package/dist/api/resources/embeddingModels/client/Client.js +117 -0
- package/dist/api/resources/embeddingModels/client/index.d.ts +1 -0
- package/dist/api/resources/embeddingModels/client/index.js +2 -0
- package/dist/api/resources/embeddings/client/Client.d.ts +2 -3
- package/dist/api/resources/embeddings/client/Client.js +6 -13
- package/dist/api/resources/groups/client/Client.js +5 -5
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +11 -11
- package/dist/api/resources/sources/client/Client.js +67 -67
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +12 -11
- package/dist/api/resources/tools/client/Client.js +63 -56
- package/dist/api/resources/tools/client/requests/ToolsCountRequest.d.ts +13 -0
- package/dist/api/resources/tools/client/requests/ToolsCountRequest.js +5 -0
- package/dist/api/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/LocalSandboxConfig.d.ts +2 -2
- package/{serialization/resources/embeddings → dist/serialization/resources/embeddingModels}/client/list.d.ts +1 -1
- package/dist/serialization/resources/embeddingModels/index.d.ts +1 -0
- package/dist/serialization/resources/embeddingModels/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/sources/client/index.d.ts +1 -1
- package/dist/serialization/resources/sources/client/index.js +2 -2
- package/dist/serialization/resources/tools/client/index.d.ts +1 -1
- package/dist/serialization/resources/tools/client/index.js +2 -2
- package/dist/serialization/types/LocalSandboxConfig.d.ts +1 -1
- package/dist/serialization/types/LocalSandboxConfig.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +118 -68
- package/{dist/serialization/resources/embeddings → serialization/resources/embeddingModels}/client/list.d.ts +1 -1
- package/serialization/resources/embeddingModels/index.d.ts +1 -0
- package/serialization/resources/embeddingModels/index.js +17 -0
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/sources/client/index.d.ts +1 -1
- package/serialization/resources/sources/client/index.js +2 -2
- package/serialization/resources/tools/client/index.d.ts +1 -1
- package/serialization/resources/tools/client/index.js +2 -2
- package/serialization/types/LocalSandboxConfig.d.ts +1 -1
- package/serialization/types/LocalSandboxConfig.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/{dist/serialization/resources/embeddings → api/resources/embeddingModels}/index.d.ts +0 -0
- /package/{dist/serialization/resources/embeddings → api/resources/embeddingModels}/index.js +0 -0
- /package/{serialization/resources/embeddings → dist/api/resources/embeddingModels}/index.d.ts +0 -0
- /package/{serialization/resources/embeddings → dist/api/resources/embeddingModels}/index.js +0 -0
- /package/dist/serialization/resources/{embeddings → embeddingModels}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{embeddings → embeddingModels}/client/index.js +0 -0
- /package/dist/serialization/resources/{embeddings → embeddingModels}/client/list.js +0 -0
- /package/serialization/resources/{embeddings → embeddingModels}/client/index.d.ts +0 -0
- /package/serialization/resources/{embeddings → embeddingModels}/client/index.js +0 -0
- /package/serialization/resources/{embeddings → embeddingModels}/client/list.js +0 -0
|
@@ -15,7 +15,7 @@ export * from "./projects/types";
|
|
|
15
15
|
export * as sources from "./sources";
|
|
16
16
|
export * as identities from "./identities";
|
|
17
17
|
export * as models from "./models";
|
|
18
|
-
export * as
|
|
18
|
+
export * as embeddingModels from "./embeddingModels";
|
|
19
19
|
export * as blocks from "./blocks";
|
|
20
20
|
export * as jobs from "./jobs";
|
|
21
21
|
export * as providers from "./providers";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.
|
|
39
|
+
exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
@@ -54,7 +54,7 @@ __exportStar(require("./projects/types"), exports);
|
|
|
54
54
|
exports.sources = __importStar(require("./sources"));
|
|
55
55
|
exports.identities = __importStar(require("./identities"));
|
|
56
56
|
exports.models = __importStar(require("./models"));
|
|
57
|
-
exports.
|
|
57
|
+
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
58
58
|
exports.blocks = __importStar(require("./blocks"));
|
|
59
59
|
exports.jobs = __importStar(require("./jobs"));
|
|
60
60
|
exports.providers = __importStar(require("./providers"));
|
|
@@ -36,8 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.list = exports.retrieveByName = exports.count = void 0;
|
|
40
|
+
exports.count = __importStar(require("./count"));
|
|
40
41
|
exports.retrieveByName = __importStar(require("./retrieveByName"));
|
|
41
42
|
exports.list = __importStar(require("./list"));
|
|
42
|
-
exports.count = __importStar(require("./count"));
|
|
43
43
|
__exportStar(require("./requests"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as list from "./list";
|
|
2
1
|
export * as count from "./count";
|
|
2
|
+
export * as list from "./list";
|
|
3
3
|
export * as upsertBaseTools from "./upsertBaseTools";
|
|
4
4
|
export * as listComposioApps from "./listComposioApps";
|
|
5
5
|
export * as listComposioActionsByApp from "./listComposioActionsByApp";
|
|
@@ -36,9 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.deleteMcpServer = exports.listMcpToolsByServer = exports.addMcpServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.upsertBaseTools = exports.
|
|
40
|
-
exports.list = __importStar(require("./list"));
|
|
39
|
+
exports.deleteMcpServer = exports.listMcpToolsByServer = exports.addMcpServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.upsertBaseTools = exports.list = exports.count = void 0;
|
|
41
40
|
exports.count = __importStar(require("./count"));
|
|
41
|
+
exports.list = __importStar(require("./list"));
|
|
42
42
|
exports.upsertBaseTools = __importStar(require("./upsertBaseTools"));
|
|
43
43
|
exports.listComposioApps = __importStar(require("./listComposioApps"));
|
|
44
44
|
exports.listComposioActionsByApp = __importStar(require("./listComposioActionsByApp"));
|
|
@@ -9,7 +9,7 @@ export declare const LocalSandboxConfig: core.serialization.ObjectSchema<seriali
|
|
|
9
9
|
export declare namespace LocalSandboxConfig {
|
|
10
10
|
interface Raw {
|
|
11
11
|
sandbox_dir?: string | null;
|
|
12
|
-
|
|
12
|
+
force_create_venv?: boolean | null;
|
|
13
13
|
venv_name?: string | null;
|
|
14
14
|
pip_requirements?: PipRequirement.Raw[] | null;
|
|
15
15
|
}
|
|
@@ -41,7 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const PipRequirement_1 = require("./PipRequirement");
|
|
42
42
|
exports.LocalSandboxConfig = core.serialization.object({
|
|
43
43
|
sandboxDir: core.serialization.property("sandbox_dir", core.serialization.string().optional()),
|
|
44
|
-
|
|
44
|
+
forceCreateVenv: core.serialization.property("force_create_venv", core.serialization.boolean().optional()),
|
|
45
45
|
venvName: core.serialization.property("venv_name", core.serialization.string().optional()),
|
|
46
46
|
pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
|
|
47
47
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.106";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -199,7 +199,7 @@ await client.tools.modify("tool_id");
|
|
|
199
199
|
</dl>
|
|
200
200
|
</details>
|
|
201
201
|
|
|
202
|
-
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">
|
|
202
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">count</a>({ ...params }) -> number</code></summary>
|
|
203
203
|
<dl>
|
|
204
204
|
<dd>
|
|
205
205
|
|
|
@@ -211,7 +211,7 @@ await client.tools.modify("tool_id");
|
|
|
211
211
|
<dl>
|
|
212
212
|
<dd>
|
|
213
213
|
|
|
214
|
-
Get a
|
|
214
|
+
Get a count of all tools available to agents belonging to the org of the user.
|
|
215
215
|
|
|
216
216
|
</dd>
|
|
217
217
|
</dl>
|
|
@@ -227,7 +227,7 @@ Get a list of all tools available to agents belonging to the org of the user
|
|
|
227
227
|
<dd>
|
|
228
228
|
|
|
229
229
|
```typescript
|
|
230
|
-
await client.tools.
|
|
230
|
+
await client.tools.count();
|
|
231
231
|
```
|
|
232
232
|
|
|
233
233
|
</dd>
|
|
@@ -243,7 +243,7 @@ await client.tools.list();
|
|
|
243
243
|
<dl>
|
|
244
244
|
<dd>
|
|
245
245
|
|
|
246
|
-
**request:** `Letta.
|
|
246
|
+
**request:** `Letta.ToolsCountRequest`
|
|
247
247
|
|
|
248
248
|
</dd>
|
|
249
249
|
</dl>
|
|
@@ -262,7 +262,7 @@ await client.tools.list();
|
|
|
262
262
|
</dl>
|
|
263
263
|
</details>
|
|
264
264
|
|
|
265
|
-
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">
|
|
265
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">list</a>({ ...params }) -> Letta.Tool[]</code></summary>
|
|
266
266
|
<dl>
|
|
267
267
|
<dd>
|
|
268
268
|
|
|
@@ -274,7 +274,7 @@ await client.tools.list();
|
|
|
274
274
|
<dl>
|
|
275
275
|
<dd>
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
Get a list of all tools available to agents belonging to the org of the user
|
|
278
278
|
|
|
279
279
|
</dd>
|
|
280
280
|
</dl>
|
|
@@ -290,9 +290,7 @@ Create a new tool
|
|
|
290
290
|
<dd>
|
|
291
291
|
|
|
292
292
|
```typescript
|
|
293
|
-
await client.tools.
|
|
294
|
-
sourceCode: "source_code",
|
|
295
|
-
});
|
|
293
|
+
await client.tools.list();
|
|
296
294
|
```
|
|
297
295
|
|
|
298
296
|
</dd>
|
|
@@ -308,7 +306,7 @@ await client.tools.create({
|
|
|
308
306
|
<dl>
|
|
309
307
|
<dd>
|
|
310
308
|
|
|
311
|
-
**request:** `Letta.
|
|
309
|
+
**request:** `Letta.ToolsListRequest`
|
|
312
310
|
|
|
313
311
|
</dd>
|
|
314
312
|
</dl>
|
|
@@ -327,7 +325,7 @@ await client.tools.create({
|
|
|
327
325
|
</dl>
|
|
328
326
|
</details>
|
|
329
327
|
|
|
330
|
-
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">
|
|
328
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">create</a>({ ...params }) -> Letta.Tool</code></summary>
|
|
331
329
|
<dl>
|
|
332
330
|
<dd>
|
|
333
331
|
|
|
@@ -339,7 +337,7 @@ await client.tools.create({
|
|
|
339
337
|
<dl>
|
|
340
338
|
<dd>
|
|
341
339
|
|
|
342
|
-
Create
|
|
340
|
+
Create a new tool
|
|
343
341
|
|
|
344
342
|
</dd>
|
|
345
343
|
</dl>
|
|
@@ -355,7 +353,7 @@ Create or update a tool
|
|
|
355
353
|
<dd>
|
|
356
354
|
|
|
357
355
|
```typescript
|
|
358
|
-
await client.tools.
|
|
356
|
+
await client.tools.create({
|
|
359
357
|
sourceCode: "source_code",
|
|
360
358
|
});
|
|
361
359
|
```
|
|
@@ -392,7 +390,7 @@ await client.tools.upsert({
|
|
|
392
390
|
</dl>
|
|
393
391
|
</details>
|
|
394
392
|
|
|
395
|
-
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">
|
|
393
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">upsert</a>({ ...params }) -> Letta.Tool</code></summary>
|
|
396
394
|
<dl>
|
|
397
395
|
<dd>
|
|
398
396
|
|
|
@@ -404,7 +402,7 @@ await client.tools.upsert({
|
|
|
404
402
|
<dl>
|
|
405
403
|
<dd>
|
|
406
404
|
|
|
407
|
-
|
|
405
|
+
Create or update a tool
|
|
408
406
|
|
|
409
407
|
</dd>
|
|
410
408
|
</dl>
|
|
@@ -420,7 +418,9 @@ Get a count of all tools available to agents belonging to the org of the user
|
|
|
420
418
|
<dd>
|
|
421
419
|
|
|
422
420
|
```typescript
|
|
423
|
-
await client.tools.
|
|
421
|
+
await client.tools.upsert({
|
|
422
|
+
sourceCode: "source_code",
|
|
423
|
+
});
|
|
424
424
|
```
|
|
425
425
|
|
|
426
426
|
</dd>
|
|
@@ -436,6 +436,14 @@ await client.tools.count();
|
|
|
436
436
|
<dl>
|
|
437
437
|
<dd>
|
|
438
438
|
|
|
439
|
+
**request:** `Letta.ToolCreate`
|
|
440
|
+
|
|
441
|
+
</dd>
|
|
442
|
+
</dl>
|
|
443
|
+
|
|
444
|
+
<dl>
|
|
445
|
+
<dd>
|
|
446
|
+
|
|
439
447
|
**requestOptions:** `Tools.RequestOptions`
|
|
440
448
|
|
|
441
449
|
</dd>
|
|
@@ -1088,7 +1096,7 @@ await client.tools.deleteMcpServer("mcp_server_name");
|
|
|
1088
1096
|
|
|
1089
1097
|
## Sources
|
|
1090
1098
|
|
|
1091
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1099
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">count</a>() -> number</code></summary>
|
|
1092
1100
|
<dl>
|
|
1093
1101
|
<dd>
|
|
1094
1102
|
|
|
@@ -1100,7 +1108,7 @@ await client.tools.deleteMcpServer("mcp_server_name");
|
|
|
1100
1108
|
<dl>
|
|
1101
1109
|
<dd>
|
|
1102
1110
|
|
|
1103
|
-
|
|
1111
|
+
Count all data sources created by a user.
|
|
1104
1112
|
|
|
1105
1113
|
</dd>
|
|
1106
1114
|
</dl>
|
|
@@ -1116,7 +1124,7 @@ Get all sources
|
|
|
1116
1124
|
<dd>
|
|
1117
1125
|
|
|
1118
1126
|
```typescript
|
|
1119
|
-
await client.sources.
|
|
1127
|
+
await client.sources.count();
|
|
1120
1128
|
```
|
|
1121
1129
|
|
|
1122
1130
|
</dd>
|
|
@@ -1132,14 +1140,6 @@ await client.sources.retrieve("source_id");
|
|
|
1132
1140
|
<dl>
|
|
1133
1141
|
<dd>
|
|
1134
1142
|
|
|
1135
|
-
**sourceId:** `string`
|
|
1136
|
-
|
|
1137
|
-
</dd>
|
|
1138
|
-
</dl>
|
|
1139
|
-
|
|
1140
|
-
<dl>
|
|
1141
|
-
<dd>
|
|
1142
|
-
|
|
1143
1143
|
**requestOptions:** `Sources.RequestOptions`
|
|
1144
1144
|
|
|
1145
1145
|
</dd>
|
|
@@ -1151,7 +1151,7 @@ await client.sources.retrieve("source_id");
|
|
|
1151
1151
|
</dl>
|
|
1152
1152
|
</details>
|
|
1153
1153
|
|
|
1154
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1154
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">retrieve</a>(sourceId) -> Letta.Source</code></summary>
|
|
1155
1155
|
<dl>
|
|
1156
1156
|
<dd>
|
|
1157
1157
|
|
|
@@ -1163,7 +1163,7 @@ await client.sources.retrieve("source_id");
|
|
|
1163
1163
|
<dl>
|
|
1164
1164
|
<dd>
|
|
1165
1165
|
|
|
1166
|
-
|
|
1166
|
+
Get all sources
|
|
1167
1167
|
|
|
1168
1168
|
</dd>
|
|
1169
1169
|
</dl>
|
|
@@ -1179,7 +1179,7 @@ Delete a data source.
|
|
|
1179
1179
|
<dd>
|
|
1180
1180
|
|
|
1181
1181
|
```typescript
|
|
1182
|
-
await client.sources.
|
|
1182
|
+
await client.sources.retrieve("source_id");
|
|
1183
1183
|
```
|
|
1184
1184
|
|
|
1185
1185
|
</dd>
|
|
@@ -1214,7 +1214,7 @@ await client.sources.delete("source_id");
|
|
|
1214
1214
|
</dl>
|
|
1215
1215
|
</details>
|
|
1216
1216
|
|
|
1217
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1217
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">delete</a>(sourceId) -> unknown</code></summary>
|
|
1218
1218
|
<dl>
|
|
1219
1219
|
<dd>
|
|
1220
1220
|
|
|
@@ -1226,7 +1226,7 @@ await client.sources.delete("source_id");
|
|
|
1226
1226
|
<dl>
|
|
1227
1227
|
<dd>
|
|
1228
1228
|
|
|
1229
|
-
|
|
1229
|
+
Delete a data source.
|
|
1230
1230
|
|
|
1231
1231
|
</dd>
|
|
1232
1232
|
</dl>
|
|
@@ -1242,7 +1242,7 @@ Update the name or documentation of an existing data source.
|
|
|
1242
1242
|
<dd>
|
|
1243
1243
|
|
|
1244
1244
|
```typescript
|
|
1245
|
-
await client.sources.
|
|
1245
|
+
await client.sources.delete("source_id");
|
|
1246
1246
|
```
|
|
1247
1247
|
|
|
1248
1248
|
</dd>
|
|
@@ -1266,14 +1266,6 @@ await client.sources.modify("source_id");
|
|
|
1266
1266
|
<dl>
|
|
1267
1267
|
<dd>
|
|
1268
1268
|
|
|
1269
|
-
**request:** `Letta.SourceUpdate`
|
|
1270
|
-
|
|
1271
|
-
</dd>
|
|
1272
|
-
</dl>
|
|
1273
|
-
|
|
1274
|
-
<dl>
|
|
1275
|
-
<dd>
|
|
1276
|
-
|
|
1277
1269
|
**requestOptions:** `Sources.RequestOptions`
|
|
1278
1270
|
|
|
1279
1271
|
</dd>
|
|
@@ -1285,7 +1277,7 @@ await client.sources.modify("source_id");
|
|
|
1285
1277
|
</dl>
|
|
1286
1278
|
</details>
|
|
1287
1279
|
|
|
1288
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1280
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">modify</a>(sourceId, { ...params }) -> Letta.Source</code></summary>
|
|
1289
1281
|
<dl>
|
|
1290
1282
|
<dd>
|
|
1291
1283
|
|
|
@@ -1297,7 +1289,7 @@ await client.sources.modify("source_id");
|
|
|
1297
1289
|
<dl>
|
|
1298
1290
|
<dd>
|
|
1299
1291
|
|
|
1300
|
-
|
|
1292
|
+
Update the name or documentation of an existing data source.
|
|
1301
1293
|
|
|
1302
1294
|
</dd>
|
|
1303
1295
|
</dl>
|
|
@@ -1313,7 +1305,7 @@ Get a source by name
|
|
|
1313
1305
|
<dd>
|
|
1314
1306
|
|
|
1315
1307
|
```typescript
|
|
1316
|
-
await client.sources.
|
|
1308
|
+
await client.sources.modify("source_id");
|
|
1317
1309
|
```
|
|
1318
1310
|
|
|
1319
1311
|
</dd>
|
|
@@ -1329,7 +1321,15 @@ await client.sources.retrieveByName("source_name");
|
|
|
1329
1321
|
<dl>
|
|
1330
1322
|
<dd>
|
|
1331
1323
|
|
|
1332
|
-
**
|
|
1324
|
+
**sourceId:** `string`
|
|
1325
|
+
|
|
1326
|
+
</dd>
|
|
1327
|
+
</dl>
|
|
1328
|
+
|
|
1329
|
+
<dl>
|
|
1330
|
+
<dd>
|
|
1331
|
+
|
|
1332
|
+
**request:** `Letta.SourceUpdate`
|
|
1333
1333
|
|
|
1334
1334
|
</dd>
|
|
1335
1335
|
</dl>
|
|
@@ -1348,7 +1348,7 @@ await client.sources.retrieveByName("source_name");
|
|
|
1348
1348
|
</dl>
|
|
1349
1349
|
</details>
|
|
1350
1350
|
|
|
1351
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1351
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">retrieveByName</a>(sourceName) -> string</code></summary>
|
|
1352
1352
|
<dl>
|
|
1353
1353
|
<dd>
|
|
1354
1354
|
|
|
@@ -1360,7 +1360,7 @@ await client.sources.retrieveByName("source_name");
|
|
|
1360
1360
|
<dl>
|
|
1361
1361
|
<dd>
|
|
1362
1362
|
|
|
1363
|
-
|
|
1363
|
+
Get a source by name
|
|
1364
1364
|
|
|
1365
1365
|
</dd>
|
|
1366
1366
|
</dl>
|
|
@@ -1376,7 +1376,7 @@ List all data sources created by a user.
|
|
|
1376
1376
|
<dd>
|
|
1377
1377
|
|
|
1378
1378
|
```typescript
|
|
1379
|
-
await client.sources.
|
|
1379
|
+
await client.sources.retrieveByName("source_name");
|
|
1380
1380
|
```
|
|
1381
1381
|
|
|
1382
1382
|
</dd>
|
|
@@ -1392,6 +1392,14 @@ await client.sources.list();
|
|
|
1392
1392
|
<dl>
|
|
1393
1393
|
<dd>
|
|
1394
1394
|
|
|
1395
|
+
**sourceName:** `string`
|
|
1396
|
+
|
|
1397
|
+
</dd>
|
|
1398
|
+
</dl>
|
|
1399
|
+
|
|
1400
|
+
<dl>
|
|
1401
|
+
<dd>
|
|
1402
|
+
|
|
1395
1403
|
**requestOptions:** `Sources.RequestOptions`
|
|
1396
1404
|
|
|
1397
1405
|
</dd>
|
|
@@ -1403,7 +1411,7 @@ await client.sources.list();
|
|
|
1403
1411
|
</dl>
|
|
1404
1412
|
</details>
|
|
1405
1413
|
|
|
1406
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1414
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">list</a>() -> Letta.Source[]</code></summary>
|
|
1407
1415
|
<dl>
|
|
1408
1416
|
<dd>
|
|
1409
1417
|
|
|
@@ -1415,7 +1423,7 @@ await client.sources.list();
|
|
|
1415
1423
|
<dl>
|
|
1416
1424
|
<dd>
|
|
1417
1425
|
|
|
1418
|
-
|
|
1426
|
+
List all data sources created by a user.
|
|
1419
1427
|
|
|
1420
1428
|
</dd>
|
|
1421
1429
|
</dl>
|
|
@@ -1431,9 +1439,7 @@ Create a new data source.
|
|
|
1431
1439
|
<dd>
|
|
1432
1440
|
|
|
1433
1441
|
```typescript
|
|
1434
|
-
await client.sources.
|
|
1435
|
-
name: "name",
|
|
1436
|
-
});
|
|
1442
|
+
await client.sources.list();
|
|
1437
1443
|
```
|
|
1438
1444
|
|
|
1439
1445
|
</dd>
|
|
@@ -1449,14 +1455,6 @@ await client.sources.create({
|
|
|
1449
1455
|
<dl>
|
|
1450
1456
|
<dd>
|
|
1451
1457
|
|
|
1452
|
-
**request:** `Letta.SourceCreate`
|
|
1453
|
-
|
|
1454
|
-
</dd>
|
|
1455
|
-
</dl>
|
|
1456
|
-
|
|
1457
|
-
<dl>
|
|
1458
|
-
<dd>
|
|
1459
|
-
|
|
1460
1458
|
**requestOptions:** `Sources.RequestOptions`
|
|
1461
1459
|
|
|
1462
1460
|
</dd>
|
|
@@ -1468,7 +1466,7 @@ await client.sources.create({
|
|
|
1468
1466
|
</dl>
|
|
1469
1467
|
</details>
|
|
1470
1468
|
|
|
1471
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">
|
|
1469
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">create</a>({ ...params }) -> Letta.Source</code></summary>
|
|
1472
1470
|
<dl>
|
|
1473
1471
|
<dd>
|
|
1474
1472
|
|
|
@@ -1480,7 +1478,7 @@ await client.sources.create({
|
|
|
1480
1478
|
<dl>
|
|
1481
1479
|
<dd>
|
|
1482
1480
|
|
|
1483
|
-
|
|
1481
|
+
Create a new data source.
|
|
1484
1482
|
|
|
1485
1483
|
</dd>
|
|
1486
1484
|
</dl>
|
|
@@ -1496,7 +1494,9 @@ Count all data sources created by a user.
|
|
|
1496
1494
|
<dd>
|
|
1497
1495
|
|
|
1498
1496
|
```typescript
|
|
1499
|
-
await client.sources.
|
|
1497
|
+
await client.sources.create({
|
|
1498
|
+
name: "name",
|
|
1499
|
+
});
|
|
1500
1500
|
```
|
|
1501
1501
|
|
|
1502
1502
|
</dd>
|
|
@@ -1512,6 +1512,14 @@ await client.sources.count();
|
|
|
1512
1512
|
<dl>
|
|
1513
1513
|
<dd>
|
|
1514
1514
|
|
|
1515
|
+
**request:** `Letta.SourceCreate`
|
|
1516
|
+
|
|
1517
|
+
</dd>
|
|
1518
|
+
</dl>
|
|
1519
|
+
|
|
1520
|
+
<dl>
|
|
1521
|
+
<dd>
|
|
1522
|
+
|
|
1515
1523
|
**requestOptions:** `Sources.RequestOptions`
|
|
1516
1524
|
|
|
1517
1525
|
</dd>
|
|
@@ -2866,9 +2874,9 @@ await client.models.list();
|
|
|
2866
2874
|
</dl>
|
|
2867
2875
|
</details>
|
|
2868
2876
|
|
|
2869
|
-
##
|
|
2877
|
+
## EmbeddingModels
|
|
2870
2878
|
|
|
2871
|
-
<details><summary><code>client.
|
|
2879
|
+
<details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">list</a>() -> Letta.EmbeddingConfig[]</code></summary>
|
|
2872
2880
|
<dl>
|
|
2873
2881
|
<dd>
|
|
2874
2882
|
|
|
@@ -2881,7 +2889,7 @@ await client.models.list();
|
|
|
2881
2889
|
<dd>
|
|
2882
2890
|
|
|
2883
2891
|
```typescript
|
|
2884
|
-
await client.
|
|
2892
|
+
await client.embeddingModels.list();
|
|
2885
2893
|
```
|
|
2886
2894
|
|
|
2887
2895
|
</dd>
|
|
@@ -2897,7 +2905,7 @@ await client.embeddings.list();
|
|
|
2897
2905
|
<dl>
|
|
2898
2906
|
<dd>
|
|
2899
2907
|
|
|
2900
|
-
**requestOptions:** `
|
|
2908
|
+
**requestOptions:** `EmbeddingModels.RequestOptions`
|
|
2901
2909
|
|
|
2902
2910
|
</dd>
|
|
2903
2911
|
</dl>
|
|
@@ -4536,6 +4544,48 @@ await client.voice.createVoiceChatCompletions("agent_id", {
|
|
|
4536
4544
|
</dl>
|
|
4537
4545
|
</details>
|
|
4538
4546
|
|
|
4547
|
+
## Embeddings
|
|
4548
|
+
|
|
4549
|
+
<details><summary><code>client.embeddings.<a href="/src/api/resources/embeddings/client/Client.ts">getTotalStorageSize</a>() -> void</code></summary>
|
|
4550
|
+
<dl>
|
|
4551
|
+
<dd>
|
|
4552
|
+
|
|
4553
|
+
#### 🔌 Usage
|
|
4554
|
+
|
|
4555
|
+
<dl>
|
|
4556
|
+
<dd>
|
|
4557
|
+
|
|
4558
|
+
<dl>
|
|
4559
|
+
<dd>
|
|
4560
|
+
|
|
4561
|
+
```typescript
|
|
4562
|
+
await client.embeddings.getTotalStorageSize();
|
|
4563
|
+
```
|
|
4564
|
+
|
|
4565
|
+
</dd>
|
|
4566
|
+
</dl>
|
|
4567
|
+
</dd>
|
|
4568
|
+
</dl>
|
|
4569
|
+
|
|
4570
|
+
#### ⚙️ Parameters
|
|
4571
|
+
|
|
4572
|
+
<dl>
|
|
4573
|
+
<dd>
|
|
4574
|
+
|
|
4575
|
+
<dl>
|
|
4576
|
+
<dd>
|
|
4577
|
+
|
|
4578
|
+
**requestOptions:** `Embeddings.RequestOptions`
|
|
4579
|
+
|
|
4580
|
+
</dd>
|
|
4581
|
+
</dl>
|
|
4582
|
+
</dd>
|
|
4583
|
+
</dl>
|
|
4584
|
+
|
|
4585
|
+
</dd>
|
|
4586
|
+
</dl>
|
|
4587
|
+
</details>
|
|
4588
|
+
|
|
4539
4589
|
## Templates
|
|
4540
4590
|
|
|
4541
4591
|
<details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">list</a>({ ...params }) -> Letta.TemplatesListResponse</code></summary>
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EmbeddingConfig } from "../../../types/EmbeddingConfig";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.embeddingModels.list.Response.Raw, Letta.EmbeddingConfig[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = EmbeddingConfig.Raw[];
|
|
11
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -15,7 +15,7 @@ export * from "./projects/types";
|
|
|
15
15
|
export * as sources from "./sources";
|
|
16
16
|
export * as identities from "./identities";
|
|
17
17
|
export * as models from "./models";
|
|
18
|
-
export * as
|
|
18
|
+
export * as embeddingModels from "./embeddingModels";
|
|
19
19
|
export * as blocks from "./blocks";
|
|
20
20
|
export * as jobs from "./jobs";
|
|
21
21
|
export * as providers from "./providers";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.
|
|
39
|
+
exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
@@ -54,7 +54,7 @@ __exportStar(require("./projects/types"), exports);
|
|
|
54
54
|
exports.sources = __importStar(require("./sources"));
|
|
55
55
|
exports.identities = __importStar(require("./identities"));
|
|
56
56
|
exports.models = __importStar(require("./models"));
|
|
57
|
-
exports.
|
|
57
|
+
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
58
58
|
exports.blocks = __importStar(require("./blocks"));
|
|
59
59
|
exports.jobs = __importStar(require("./jobs"));
|
|
60
60
|
exports.providers = __importStar(require("./providers"));
|