@letta-ai/letta-client 0.1.7 → 0.1.8
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 +3 -0
- package/Client.js +5 -0
- package/api/resources/agents/client/Client.d.ts +13 -0
- package/api/resources/agents/client/Client.js +78 -6
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.d.ts +115 -0
- package/api/resources/runs/client/Client.js +500 -0
- package/api/resources/runs/client/index.d.ts +1 -0
- package/api/resources/runs/client/index.js +17 -0
- package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
- package/api/resources/runs/client/requests/index.d.ts +1 -0
- package/api/resources/runs/client/requests/index.js +2 -0
- package/api/resources/runs/index.d.ts +1 -0
- package/api/resources/runs/index.js +17 -0
- package/api/resources/sources/client/Client.js +8 -8
- 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/tools/client/Client.js +12 -12
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
- package/api/types/Job.d.ts +2 -0
- package/api/types/JobType.d.ts +8 -0
- package/api/types/JobType.js +10 -0
- package/api/types/LettaSchemasToolTool.d.ts +0 -2
- package/api/types/Run.d.ts +34 -0
- package/api/types/Run.js +5 -0
- package/api/types/ToolCreate.d.ts +0 -2
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +13 -0
- package/dist/api/resources/agents/client/Client.js +78 -6
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.d.ts +115 -0
- package/dist/api/resources/runs/client/Client.js +500 -0
- package/dist/api/resources/runs/client/index.d.ts +1 -0
- package/dist/api/resources/runs/client/index.js +17 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/client/requests/index.js +2 -0
- package/dist/api/resources/runs/index.d.ts +1 -0
- package/dist/api/resources/runs/index.js +17 -0
- package/dist/api/resources/sources/client/Client.js +8 -8
- 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/tools/client/Client.js +12 -12
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/JobType.d.ts +8 -0
- package/dist/api/types/JobType.js +10 -0
- package/dist/api/types/LettaSchemasToolTool.d.ts +0 -2
- package/dist/api/types/Run.d.ts +34 -0
- package/dist/api/types/Run.js +5 -0
- package/dist/api/types/ToolCreate.d.ts +0 -2
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
- package/dist/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/dist/serialization/resources/runs/client/index.d.ts +3 -0
- package/dist/serialization/resources/runs/client/index.js +29 -0
- package/dist/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
- package/dist/serialization/resources/runs/client/listActiveRuns.js +32 -0
- package/dist/serialization/resources/runs/client/listRuns.d.ts +11 -0
- package/dist/serialization/resources/runs/client/listRuns.js +32 -0
- package/dist/serialization/resources/runs/index.d.ts +1 -0
- package/dist/serialization/resources/runs/index.js +17 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/JobType.d.ts +10 -0
- package/dist/serialization/types/JobType.js +34 -0
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +0 -1
- package/dist/serialization/types/LettaSchemasToolTool.js +0 -1
- package/dist/serialization/types/Run.d.ts +22 -0
- package/dist/serialization/types/Run.js +43 -0
- package/dist/serialization/types/ToolCreate.d.ts +0 -1
- package/dist/serialization/types/ToolCreate.js +0 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +458 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
- package/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/serialization/resources/runs/client/index.d.ts +3 -0
- package/serialization/resources/runs/client/index.js +29 -0
- package/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listActiveRuns.js +32 -0
- package/serialization/resources/runs/client/listRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listRuns.js +32 -0
- package/serialization/resources/runs/index.d.ts +1 -0
- package/serialization/resources/runs/index.js +17 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/JobType.d.ts +10 -0
- package/serialization/types/JobType.js +34 -0
- package/serialization/types/LettaSchemasToolTool.d.ts +0 -1
- package/serialization/types/LettaSchemasToolTool.js +0 -1
- package/serialization/types/Run.d.ts +22 -0
- package/serialization/types/Run.js +43 -0
- package/serialization/types/ToolCreate.d.ts +0 -1
- package/serialization/types/ToolCreate.js +0 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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("./requests"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface GetRunMessagesRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Cursor for pagination
|
|
12
|
+
*/
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Filter messages after this date
|
|
16
|
+
*/
|
|
17
|
+
startDate?: Date;
|
|
18
|
+
/**
|
|
19
|
+
* Filter messages before this date
|
|
20
|
+
*/
|
|
21
|
+
endDate?: Date;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of messages to return
|
|
24
|
+
*/
|
|
25
|
+
limit?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Search text in message content
|
|
28
|
+
*/
|
|
29
|
+
queryText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sort order by creation time
|
|
32
|
+
*/
|
|
33
|
+
ascending?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Filter by message tags
|
|
36
|
+
*/
|
|
37
|
+
tags?: string | string[];
|
|
38
|
+
/**
|
|
39
|
+
* If true, match all tags. If false, match any tag
|
|
40
|
+
*/
|
|
41
|
+
matchAllTags?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Filter by message role
|
|
44
|
+
*/
|
|
45
|
+
role?: Letta.MessageRole;
|
|
46
|
+
/**
|
|
47
|
+
* Filter by tool call name
|
|
48
|
+
*/
|
|
49
|
+
toolName?: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GetRunMessagesRequest } from "./GetRunMessagesRequest";
|
|
@@ -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);
|
|
@@ -76,7 +76,7 @@ class Sources {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -141,7 +141,7 @@ class Sources {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Sources {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -267,7 +267,7 @@ class Sources {
|
|
|
267
267
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
268
268
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
|
|
269
269
|
method: "GET",
|
|
270
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
270
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
271
271
|
contentType: "application/json",
|
|
272
272
|
requestType: "json",
|
|
273
273
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -331,7 +331,7 @@ class Sources {
|
|
|
331
331
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
332
332
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
333
333
|
method: "GET",
|
|
334
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
334
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
335
335
|
contentType: "application/json",
|
|
336
336
|
requestType: "json",
|
|
337
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Sources {
|
|
|
398
398
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
399
399
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
400
400
|
method: "POST",
|
|
401
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
401
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -470,7 +470,7 @@ class Sources {
|
|
|
470
470
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
471
471
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/attach`),
|
|
472
472
|
method: "POST",
|
|
473
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
473
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
474
474
|
contentType: "application/json",
|
|
475
475
|
queryParameters: _queryParams,
|
|
476
476
|
requestType: "json",
|
|
@@ -542,7 +542,7 @@ class Sources {
|
|
|
542
542
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
543
543
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/detach`),
|
|
544
544
|
method: "POST",
|
|
545
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
545
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
546
546
|
contentType: "application/json",
|
|
547
547
|
queryParameters: _queryParams,
|
|
548
548
|
requestType: "json",
|
|
@@ -70,7 +70,7 @@ class Files {
|
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
71
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
72
72
|
method: "POST",
|
|
73
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
73
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
requestType: "file",
|
|
75
75
|
duplex: _maybeEncodedRequest.duplex,
|
|
76
76
|
body: _maybeEncodedRequest.body,
|
|
@@ -145,7 +145,7 @@ class Files {
|
|
|
145
145
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
146
146
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
|
|
147
147
|
method: "GET",
|
|
148
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
148
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
queryParameters: _queryParams,
|
|
151
151
|
requestType: "json",
|
|
@@ -212,7 +212,7 @@ class Files {
|
|
|
212
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
213
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
214
214
|
method: "DELETE",
|
|
215
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
215
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
requestType: "json",
|
|
218
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -66,7 +66,7 @@ class Passages {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
69
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -66,7 +66,7 @@ class Tools {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
69
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -131,7 +131,7 @@ class Tools {
|
|
|
131
131
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
132
132
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
133
133
|
method: "DELETE",
|
|
134
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
134
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -191,7 +191,7 @@ class Tools {
|
|
|
191
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
192
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
193
193
|
method: "PATCH",
|
|
194
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
194
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
requestType: "json",
|
|
197
197
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,7 +257,7 @@ class Tools {
|
|
|
257
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
258
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/name/${encodeURIComponent(toolName)}`),
|
|
259
259
|
method: "GET",
|
|
260
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
260
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -330,7 +330,7 @@ class Tools {
|
|
|
330
330
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
331
331
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
332
332
|
method: "GET",
|
|
333
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
333
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
334
334
|
contentType: "application/json",
|
|
335
335
|
queryParameters: _queryParams,
|
|
336
336
|
requestType: "json",
|
|
@@ -398,7 +398,7 @@ class Tools {
|
|
|
398
398
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
399
399
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
400
400
|
method: "POST",
|
|
401
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
401
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -466,7 +466,7 @@ class Tools {
|
|
|
466
466
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
467
467
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
468
468
|
method: "PUT",
|
|
469
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
469
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
470
470
|
contentType: "application/json",
|
|
471
471
|
requestType: "json",
|
|
472
472
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -531,7 +531,7 @@ class Tools {
|
|
|
531
531
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
532
532
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
533
533
|
method: "POST",
|
|
534
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
534
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
535
535
|
contentType: "application/json",
|
|
536
536
|
requestType: "json",
|
|
537
537
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -601,7 +601,7 @@ class Tools {
|
|
|
601
601
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
602
602
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
603
603
|
method: "POST",
|
|
604
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
604
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
605
605
|
contentType: "application/json",
|
|
606
606
|
requestType: "json",
|
|
607
607
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -666,7 +666,7 @@ class Tools {
|
|
|
666
666
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
667
667
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
668
668
|
method: "GET",
|
|
669
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
669
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
670
670
|
contentType: "application/json",
|
|
671
671
|
requestType: "json",
|
|
672
672
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -731,7 +731,7 @@ class Tools {
|
|
|
731
731
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
732
732
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
733
733
|
method: "GET",
|
|
734
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
734
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
735
735
|
contentType: "application/json",
|
|
736
736
|
requestType: "json",
|
|
737
737
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -796,7 +796,7 @@ class Tools {
|
|
|
796
796
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
797
797
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
798
798
|
method: "POST",
|
|
799
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
799
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
800
800
|
contentType: "application/json",
|
|
801
801
|
requestType: "json",
|
|
802
802
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -14,7 +14,7 @@ export interface ToolRunFromSource {
|
|
|
14
14
|
/** The source code of the function. */
|
|
15
15
|
sourceCode: string;
|
|
16
16
|
/** The arguments to pass to the tool. */
|
|
17
|
-
args: Record<string,
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
18
|
/** The environment variables to pass to the tool. */
|
|
19
19
|
envVars?: Record<string, string>;
|
|
20
20
|
/** The name of the tool to run. */
|
|
@@ -13,8 +13,6 @@ export interface ToolUpdate {
|
|
|
13
13
|
/** Metadata tags. */
|
|
14
14
|
tags?: string[];
|
|
15
15
|
/** The source code of the function. */
|
|
16
|
-
module?: string;
|
|
17
|
-
/** The source code of the function. */
|
|
18
16
|
sourceCode?: string;
|
|
19
17
|
/** The type of the source code. */
|
|
20
18
|
sourceType?: string;
|
package/dist/api/types/Job.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export interface LettaSchemasToolTool {
|
|
|
21
21
|
description?: string;
|
|
22
22
|
/** The type of the source code. */
|
|
23
23
|
sourceType?: string;
|
|
24
|
-
/** The module of the function. */
|
|
25
|
-
module?: string;
|
|
26
24
|
/** The name of the function. */
|
|
27
25
|
name?: string;
|
|
28
26
|
/** Metadata tags. */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Representation of a run, which is a job with a 'run' prefix in its ID.
|
|
7
|
+
* Inherits all fields and behavior from Job except for the ID prefix.
|
|
8
|
+
*
|
|
9
|
+
* Parameters:
|
|
10
|
+
* id (str): The unique identifier of the run (prefixed with 'run-').
|
|
11
|
+
* status (JobStatus): The status of the run.
|
|
12
|
+
* created_at (datetime): The unix timestamp of when the run was created.
|
|
13
|
+
* completed_at (datetime): The unix timestamp of when the run was completed.
|
|
14
|
+
* user_id (str): The unique identifier of the user associated with the run.
|
|
15
|
+
*/
|
|
16
|
+
export interface Run {
|
|
17
|
+
/** The id of the user that made this object. */
|
|
18
|
+
createdById?: string;
|
|
19
|
+
/** The id of the user that made this object. */
|
|
20
|
+
lastUpdatedById?: string;
|
|
21
|
+
/** The timestamp when the object was created. */
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
/** The timestamp when the object was last updated. */
|
|
24
|
+
updatedAt?: Date;
|
|
25
|
+
/** The status of the job. */
|
|
26
|
+
status?: Letta.JobStatus;
|
|
27
|
+
/** The unix timestamp of when the job was completed. */
|
|
28
|
+
completedAt?: Date;
|
|
29
|
+
/** The metadata of the job. */
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
jobType?: Letta.JobType;
|
|
32
|
+
/** The human-friendly ID of the Run */
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
@@ -9,8 +9,6 @@ export interface ToolCreate {
|
|
|
9
9
|
/** Metadata tags. */
|
|
10
10
|
tags?: string[];
|
|
11
11
|
/** The source code of the function. */
|
|
12
|
-
module?: string;
|
|
13
|
-
/** The source code of the function. */
|
|
14
12
|
sourceCode: string;
|
|
15
13
|
/** The source type of the function. */
|
|
16
14
|
sourceType?: string;
|
|
@@ -48,6 +48,7 @@ export * from "./Health";
|
|
|
48
48
|
export * from "./InitToolRule";
|
|
49
49
|
export * from "./Job";
|
|
50
50
|
export * from "./JobStatus";
|
|
51
|
+
export * from "./JobType";
|
|
51
52
|
export * from "./LlmConfigModelEndpointType";
|
|
52
53
|
export * from "./LlmConfig";
|
|
53
54
|
export * from "./LettaRequest";
|
|
@@ -69,6 +70,7 @@ export * from "./Provider";
|
|
|
69
70
|
export * from "./ReasoningMessage";
|
|
70
71
|
export * from "./RecallMemorySummary";
|
|
71
72
|
export * from "./ResponseFormat";
|
|
73
|
+
export * from "./Run";
|
|
72
74
|
export * from "./SandboxConfig";
|
|
73
75
|
export * from "./SandboxConfigCreateConfig";
|
|
74
76
|
export * from "./SandboxConfigCreate";
|
package/dist/api/types/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __exportStar(require("./Health"), exports);
|
|
|
64
64
|
__exportStar(require("./InitToolRule"), exports);
|
|
65
65
|
__exportStar(require("./Job"), exports);
|
|
66
66
|
__exportStar(require("./JobStatus"), exports);
|
|
67
|
+
__exportStar(require("./JobType"), exports);
|
|
67
68
|
__exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
68
69
|
__exportStar(require("./LlmConfig"), exports);
|
|
69
70
|
__exportStar(require("./LettaRequest"), exports);
|
|
@@ -85,6 +86,7 @@ __exportStar(require("./Provider"), exports);
|
|
|
85
86
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
86
87
|
__exportStar(require("./RecallMemorySummary"), exports);
|
|
87
88
|
__exportStar(require("./ResponseFormat"), exports);
|
|
89
|
+
__exportStar(require("./Run"), exports);
|
|
88
90
|
__exportStar(require("./SandboxConfig"), exports);
|
|
89
91
|
__exportStar(require("./SandboxConfigCreateConfig"), exports);
|
|
90
92
|
__exportStar(require("./SandboxConfigCreate"), exports);
|
|
@@ -34,7 +34,7 @@ export declare namespace CreateAgentRequest {
|
|
|
34
34
|
context_window_limit?: number | null;
|
|
35
35
|
embedding_chunk_size?: number | null;
|
|
36
36
|
from_template?: string | null;
|
|
37
|
-
|
|
37
|
+
project?: string | null;
|
|
38
38
|
tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
|
|
39
39
|
variables?: Record<string, string | null | undefined> | null;
|
|
40
40
|
}
|
|
@@ -56,7 +56,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
56
56
|
contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
|
|
57
57
|
embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
|
|
58
58
|
fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
|
|
59
|
-
|
|
59
|
+
project: core.serialization.string().optional(),
|
|
60
60
|
toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
61
61
|
variables: core.serialization
|
|
62
62
|
.record(core.serialization.string(), core.serialization.string().optional())
|
|
@@ -7,6 +7,6 @@ import * as core from "../../../../../../../core";
|
|
|
7
7
|
export declare const TemplatesCreateRequest: core.serialization.Schema<serializers.agents.TemplatesCreateRequest.Raw, Letta.agents.TemplatesCreateRequest>;
|
|
8
8
|
export declare namespace TemplatesCreateRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
project?: string | null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.TemplatesCreateRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../core"));
|
|
31
31
|
exports.TemplatesCreateRequest = core.serialization.object({
|
|
32
|
-
|
|
32
|
+
project: core.serialization.string().optional(),
|
|
33
33
|
});
|
|
@@ -6,6 +6,7 @@ export * as models from "./models";
|
|
|
6
6
|
export * as blocks from "./blocks";
|
|
7
7
|
export * as jobs from "./jobs";
|
|
8
8
|
export * as providers from "./providers";
|
|
9
|
+
export * as runs from "./runs";
|
|
9
10
|
export * from "./tools/client/requests";
|
|
10
11
|
export * from "./sources/client/requests";
|
|
11
12
|
export * from "./agents/client/requests";
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.providers = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
|
|
29
|
+
exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
|
|
30
30
|
exports.agents = __importStar(require("./agents"));
|
|
31
31
|
__exportStar(require("./agents/types"), exports);
|
|
32
32
|
exports.tools = __importStar(require("./tools"));
|
|
@@ -35,6 +35,7 @@ exports.models = __importStar(require("./models"));
|
|
|
35
35
|
exports.blocks = __importStar(require("./blocks"));
|
|
36
36
|
exports.jobs = __importStar(require("./jobs"));
|
|
37
37
|
exports.providers = __importStar(require("./providers"));
|
|
38
|
+
exports.runs = __importStar(require("./runs"));
|
|
38
39
|
__exportStar(require("./tools/client/requests"), exports);
|
|
39
40
|
__exportStar(require("./sources/client/requests"), exports);
|
|
40
41
|
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { LettaSchemasMessageMessage } from "../../../types/LettaSchemasMessageMessage";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.runs.getRunMessages.Response.Raw, Letta.LettaSchemasMessageMessage[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = LettaSchemasMessageMessage.Raw[];
|
|
11
|
+
}
|