@letta-ai/letta-client 0.1.203 → 0.1.205
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/api/resources/agents/client/Client.js +11 -11
- 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/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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 +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +7 -7
- package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +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 +4 -4
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- 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/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- 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.js +10 -10
- 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/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +2 -1
- package/api/resources/templates/client/Client.js +12 -11
- package/api/resources/templates/client/requests/index.d.ts +0 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +14 -0
- package/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +13 -0
- package/api/resources/templates/{client/requests/TemplatesCreateTemplateRequest.d.ts → types/TemplatesCreateTemplateRequestAgentId.d.ts} +3 -5
- package/api/resources/templates/types/TemplatesCreateTemplateRequestAgentId.js +5 -0
- package/api/resources/templates/types/index.d.ts +3 -0
- package/api/resources/templates/types/index.js +3 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/InternalTemplateAgentCreate.d.ts +99 -0
- package/api/types/InternalTemplateAgentCreate.js +5 -0
- package/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
- package/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
- package/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
- package/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
- package/api/types/InternalTemplateBlockCreate.d.ts +35 -0
- package/api/types/InternalTemplateBlockCreate.js +5 -0
- package/api/types/InternalTemplateGroupCreate.d.ts +25 -0
- package/api/types/InternalTemplateGroupCreate.js +5 -0
- package/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
- package/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/api/resources/agents/client/Client.js +11 -11
- 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/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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 +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +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 +4 -4
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- 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/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- 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.js +10 -10
- 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/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +2 -1
- package/dist/api/resources/templates/client/Client.js +12 -11
- package/dist/api/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +14 -0
- package/dist/api/resources/templates/types/TemplatesCreateTemplateRequest.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +13 -0
- package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +5 -0
- package/dist/api/resources/templates/{client/requests/TemplatesCreateTemplateRequest.d.ts → types/TemplatesCreateTemplateRequestAgentId.d.ts} +3 -5
- package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentId.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +3 -0
- package/dist/api/resources/templates/types/index.js +3 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/InternalTemplateAgentCreate.d.ts +99 -0
- package/dist/api/types/InternalTemplateAgentCreate.js +5 -0
- package/dist/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
- package/dist/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
- package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
- package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
- package/dist/api/types/InternalTemplateBlockCreate.d.ts +35 -0
- package/dist/api/types/InternalTemplateBlockCreate.js +5 -0
- package/dist/api/types/InternalTemplateGroupCreate.d.ts +25 -0
- package/dist/api/types/InternalTemplateGroupCreate.js +5 -0
- package/dist/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
- package/dist/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/templates/client/requests/index.js +1 -3
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +12 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequest.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentId.d.ts +14 -0
- package/dist/serialization/resources/templates/{client/requests/TemplatesCreateTemplateRequest.js → types/TemplatesCreateTemplateRequestAgentId.js} +4 -3
- package/dist/serialization/resources/templates/types/index.d.ts +3 -0
- package/dist/serialization/resources/templates/types/index.js +3 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.js +94 -0
- package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
- package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
- package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
- package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
- package/dist/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
- package/dist/serialization/types/InternalTemplateBlockCreate.js +56 -0
- package/dist/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
- package/dist/serialization/types/InternalTemplateGroupCreate.js +51 -0
- package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
- package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2 -1
- package/serialization/resources/templates/client/requests/index.d.ts +0 -1
- package/serialization/resources/templates/client/requests/index.js +1 -3
- package/serialization/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +12 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateRequest.js +46 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +45 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentId.d.ts +14 -0
- package/serialization/resources/templates/{client/requests/TemplatesCreateTemplateRequest.js → types/TemplatesCreateTemplateRequestAgentId.js} +4 -3
- package/serialization/resources/templates/types/index.d.ts +3 -0
- package/serialization/resources/templates/types/index.js +3 -0
- package/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
- package/serialization/types/InternalTemplateAgentCreate.js +94 -0
- package/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
- package/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
- package/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
- package/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
- package/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
- package/serialization/types/InternalTemplateBlockCreate.js +56 -0
- package/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
- package/serialization/types/InternalTemplateGroupCreate.js +51 -0
- package/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
- package/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +0 -13
- package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +0 -13
- /package/api/resources/templates/{client/requests → types}/TemplatesCreateTemplateRequest.js +0 -0
- /package/{dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.js → api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js} +0 -0
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* {
|
|
7
|
-
* agentId: "agent_id"
|
|
8
|
-
* }
|
|
5
|
+
* Create a template from an existing agent
|
|
9
6
|
*/
|
|
10
|
-
export interface
|
|
7
|
+
export interface TemplatesCreateTemplateRequestAgentId {
|
|
8
|
+
type: "agent";
|
|
11
9
|
/** The ID of the agent to use as a template, can be from any project */
|
|
12
10
|
agentId: string;
|
|
13
11
|
/** Optional custom name for the template. If not provided, a random name will be generated. */
|
|
@@ -25,6 +25,9 @@ export * from "./TemplatesGetTemplateSnapshotResponseConfiguration";
|
|
|
25
25
|
export * from "./TemplatesGetTemplateSnapshotResponseType";
|
|
26
26
|
export * from "./TemplatesGetTemplateSnapshotResponse";
|
|
27
27
|
export * from "./TemplatesForkTemplateResponse";
|
|
28
|
+
export * from "./TemplatesCreateTemplateRequestAgentId";
|
|
29
|
+
export * from "./TemplatesCreateTemplateRequestAgentFile";
|
|
30
|
+
export * from "./TemplatesCreateTemplateRequest";
|
|
28
31
|
export * from "./TemplatesCreateTemplateResponse";
|
|
29
32
|
export * from "./TemplatesRenameTemplateResponse";
|
|
30
33
|
export * from "./TemplatesUpdateTemplateDescriptionResponse";
|
|
@@ -41,6 +41,9 @@ __exportStar(require("./TemplatesGetTemplateSnapshotResponseConfiguration"), exp
|
|
|
41
41
|
__exportStar(require("./TemplatesGetTemplateSnapshotResponseType"), exports);
|
|
42
42
|
__exportStar(require("./TemplatesGetTemplateSnapshotResponse"), exports);
|
|
43
43
|
__exportStar(require("./TemplatesForkTemplateResponse"), exports);
|
|
44
|
+
__exportStar(require("./TemplatesCreateTemplateRequestAgentId"), exports);
|
|
45
|
+
__exportStar(require("./TemplatesCreateTemplateRequestAgentFile"), exports);
|
|
46
|
+
__exportStar(require("./TemplatesCreateTemplateRequest"), exports);
|
|
44
47
|
__exportStar(require("./TemplatesCreateTemplateResponse"), exports);
|
|
45
48
|
__exportStar(require("./TemplatesRenameTemplateResponse"), exports);
|
|
46
49
|
__exportStar(require("./TemplatesUpdateTemplateDescriptionResponse"), exports);
|
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -348,7 +348,7 @@ class Tools {
|
|
|
348
348
|
method: "GET",
|
|
349
349
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
350
350
|
? yield core.Supplier.get(this._options.project)
|
|
351
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
351
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
352
352
|
contentType: "application/json",
|
|
353
353
|
queryParameters: _queryParams,
|
|
354
354
|
requestType: "json",
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
method: "GET",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
queryParameters: _queryParams,
|
|
480
480
|
requestType: "json",
|
|
@@ -553,7 +553,7 @@ class Tools {
|
|
|
553
553
|
method: "POST",
|
|
554
554
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
555
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
556
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -632,7 +632,7 @@ class Tools {
|
|
|
632
632
|
method: "PUT",
|
|
633
633
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
634
634
|
? yield core.Supplier.get(this._options.project)
|
|
635
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
635
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
636
636
|
contentType: "application/json",
|
|
637
637
|
requestType: "json",
|
|
638
638
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -708,7 +708,7 @@ class Tools {
|
|
|
708
708
|
method: "POST",
|
|
709
709
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
710
710
|
? yield core.Supplier.get(this._options.project)
|
|
711
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
711
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
712
712
|
contentType: "application/json",
|
|
713
713
|
requestType: "json",
|
|
714
714
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -789,7 +789,7 @@ class Tools {
|
|
|
789
789
|
method: "POST",
|
|
790
790
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
791
791
|
? yield core.Supplier.get(this._options.project)
|
|
792
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
792
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
793
793
|
contentType: "application/json",
|
|
794
794
|
requestType: "json",
|
|
795
795
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -867,7 +867,7 @@ class Tools {
|
|
|
867
867
|
method: "GET",
|
|
868
868
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
869
869
|
? yield core.Supplier.get(this._options.project)
|
|
870
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
870
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
871
871
|
contentType: "application/json",
|
|
872
872
|
requestType: "json",
|
|
873
873
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -943,7 +943,7 @@ class Tools {
|
|
|
943
943
|
method: "GET",
|
|
944
944
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
945
945
|
? yield core.Supplier.get(this._options.project)
|
|
946
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
946
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
947
947
|
contentType: "application/json",
|
|
948
948
|
requestType: "json",
|
|
949
949
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1019,7 +1019,7 @@ class Tools {
|
|
|
1019
1019
|
method: "POST",
|
|
1020
1020
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1021
1021
|
? yield core.Supplier.get(this._options.project)
|
|
1022
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1022
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1023
1023
|
contentType: "application/json",
|
|
1024
1024
|
requestType: "json",
|
|
1025
1025
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1096,7 +1096,7 @@ class Tools {
|
|
|
1096
1096
|
method: "GET",
|
|
1097
1097
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1098
1098
|
? yield core.Supplier.get(this._options.project)
|
|
1099
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1099
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1100
1100
|
contentType: "application/json",
|
|
1101
1101
|
requestType: "json",
|
|
1102
1102
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1176,7 +1176,7 @@ class Tools {
|
|
|
1176
1176
|
method: "PUT",
|
|
1177
1177
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1178
1178
|
? yield core.Supplier.get(this._options.project)
|
|
1179
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1179
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1180
1180
|
contentType: "application/json",
|
|
1181
1181
|
requestType: "json",
|
|
1182
1182
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1253,7 +1253,7 @@ class Tools {
|
|
|
1253
1253
|
method: "GET",
|
|
1254
1254
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1255
1255
|
? yield core.Supplier.get(this._options.project)
|
|
1256
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1256
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1257
1257
|
contentType: "application/json",
|
|
1258
1258
|
requestType: "json",
|
|
1259
1259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1330,7 +1330,7 @@ class Tools {
|
|
|
1330
1330
|
method: "POST",
|
|
1331
1331
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1332
1332
|
? yield core.Supplier.get(this._options.project)
|
|
1333
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1333
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1334
1334
|
contentType: "application/json",
|
|
1335
1335
|
requestType: "json",
|
|
1336
1336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1406,7 +1406,7 @@ class Tools {
|
|
|
1406
1406
|
method: "DELETE",
|
|
1407
1407
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1408
1408
|
? yield core.Supplier.get(this._options.project)
|
|
1409
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1409
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1410
1410
|
contentType: "application/json",
|
|
1411
1411
|
requestType: "json",
|
|
1412
1412
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1483,7 +1483,7 @@ class Tools {
|
|
|
1483
1483
|
method: "PATCH",
|
|
1484
1484
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1485
1485
|
? yield core.Supplier.get(this._options.project)
|
|
1486
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1486
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1487
1487
|
contentType: "application/json",
|
|
1488
1488
|
requestType: "json",
|
|
1489
1489
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1565,7 +1565,7 @@ class Tools {
|
|
|
1565
1565
|
method: "POST",
|
|
1566
1566
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1567
1567
|
? yield core.Supplier.get(this._options.project)
|
|
1568
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1568
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1569
1569
|
contentType: "application/json",
|
|
1570
1570
|
requestType: "json",
|
|
1571
1571
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1626,7 +1626,7 @@ class Tools {
|
|
|
1626
1626
|
method: "POST",
|
|
1627
1627
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1628
1628
|
? yield core.Supplier.get(this._options.project)
|
|
1629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1629
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
|
|
1630
1630
|
contentType: "application/json",
|
|
1631
1631
|
requestType: "json",
|
|
1632
1632
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Used for Letta Cloud
|
|
7
|
+
*/
|
|
8
|
+
export interface InternalTemplateAgentCreate {
|
|
9
|
+
/** The name of the agent. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** The blocks to create in the agent's in-context memory. */
|
|
12
|
+
memoryBlocks?: Letta.CreateBlock[];
|
|
13
|
+
/** The tools used by the agent. */
|
|
14
|
+
tools?: string[];
|
|
15
|
+
/** The ids of the tools used by the agent. */
|
|
16
|
+
toolIds?: string[];
|
|
17
|
+
/** The ids of the sources used by the agent. */
|
|
18
|
+
sourceIds?: string[];
|
|
19
|
+
/** The ids of the blocks used by the agent. */
|
|
20
|
+
blockIds?: string[];
|
|
21
|
+
/** The tool rules governing the agent. */
|
|
22
|
+
toolRules?: Letta.InternalTemplateAgentCreateToolRulesItem[];
|
|
23
|
+
/** The tags associated with the agent. */
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/** The system prompt used by the agent. */
|
|
26
|
+
system?: string;
|
|
27
|
+
/** The type of agent. */
|
|
28
|
+
agentType?: Letta.AgentType;
|
|
29
|
+
/** The LLM configuration used by the agent. */
|
|
30
|
+
llmConfig?: Letta.LlmConfig;
|
|
31
|
+
/** The embedding configuration used by the agent. */
|
|
32
|
+
embeddingConfig?: Letta.EmbeddingConfig;
|
|
33
|
+
/** The initial set of messages to put in the agent's in-context memory. */
|
|
34
|
+
initialMessageSequence?: Letta.MessageCreate[];
|
|
35
|
+
/** If true, attaches the Letta core tools (e.g. core_memory related functions). */
|
|
36
|
+
includeBaseTools?: boolean;
|
|
37
|
+
/** If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent). */
|
|
38
|
+
includeMultiAgentTools?: boolean;
|
|
39
|
+
/** If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed). */
|
|
40
|
+
includeBaseToolRules?: boolean;
|
|
41
|
+
/** If true, automatically creates and attaches a default data source for this agent. */
|
|
42
|
+
includeDefaultSource?: boolean;
|
|
43
|
+
/** The description of the agent. */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** The metadata of the agent. */
|
|
46
|
+
metadata?: Record<string, unknown>;
|
|
47
|
+
/** The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config. */
|
|
48
|
+
model?: string;
|
|
49
|
+
/** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
|
|
50
|
+
embedding?: string;
|
|
51
|
+
/** The context window limit used by the agent. */
|
|
52
|
+
contextWindowLimit?: number;
|
|
53
|
+
/** The embedding chunk size used by the agent. */
|
|
54
|
+
embeddingChunkSize?: number;
|
|
55
|
+
/** The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value. */
|
|
56
|
+
maxTokens?: number;
|
|
57
|
+
/** The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value. */
|
|
58
|
+
maxReasoningTokens?: number;
|
|
59
|
+
/** Whether to enable internal extended thinking step for a reasoner model. */
|
|
60
|
+
enableReasoner?: boolean;
|
|
61
|
+
/** Whether to enable reasoning for this agent. */
|
|
62
|
+
reasoning?: boolean;
|
|
63
|
+
/** The template id used to configure the agent */
|
|
64
|
+
fromTemplate?: string;
|
|
65
|
+
/** Whether the agent is a template */
|
|
66
|
+
template?: boolean;
|
|
67
|
+
/** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
|
|
68
|
+
project?: string;
|
|
69
|
+
/** The environment variables for tool execution specific to this agent. */
|
|
70
|
+
toolExecEnvironmentVariables?: Record<string, string | undefined>;
|
|
71
|
+
/** The variables that should be set for the agent. */
|
|
72
|
+
memoryVariables?: Record<string, string | undefined>;
|
|
73
|
+
/** The id of the project the agent belongs to. */
|
|
74
|
+
projectId?: string;
|
|
75
|
+
/** The id of the template. */
|
|
76
|
+
templateId: string;
|
|
77
|
+
/** The id of the base template. */
|
|
78
|
+
baseTemplateId: string;
|
|
79
|
+
/** The ids of the identities associated with this agent. */
|
|
80
|
+
identityIds?: string[];
|
|
81
|
+
/** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
|
|
82
|
+
messageBufferAutoclear?: boolean;
|
|
83
|
+
/** If set to True, memory management will move to a background agent thread. */
|
|
84
|
+
enableSleeptime?: boolean;
|
|
85
|
+
/** The response format for the agent. */
|
|
86
|
+
responseFormat?: Letta.InternalTemplateAgentCreateResponseFormat;
|
|
87
|
+
/** The timezone of the agent (IANA format). */
|
|
88
|
+
timezone?: string;
|
|
89
|
+
/** Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent. */
|
|
90
|
+
maxFilesOpen?: number;
|
|
91
|
+
/** The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent. */
|
|
92
|
+
perFileViewWindowCharLimit?: number;
|
|
93
|
+
/** If set to True, the agent will be hidden. */
|
|
94
|
+
hidden?: boolean;
|
|
95
|
+
/** The id of the deployment. */
|
|
96
|
+
deploymentId: string;
|
|
97
|
+
/** The id of the entity within the template. */
|
|
98
|
+
entityId: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export type InternalTemplateAgentCreateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.ParentToolRule | Letta.RequiredBeforeExitToolRule | Letta.RequiresApprovalToolRule | Letta.InitToolRule;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Used for Letta Cloud
|
|
6
|
+
*/
|
|
7
|
+
export interface InternalTemplateBlockCreate {
|
|
8
|
+
/** Value of the block. */
|
|
9
|
+
value: string;
|
|
10
|
+
/** Character limit of the block. */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** The associated project id. */
|
|
13
|
+
projectId?: string;
|
|
14
|
+
/** Name of the block if it is a template. */
|
|
15
|
+
name?: string;
|
|
16
|
+
isTemplate?: boolean;
|
|
17
|
+
/** The id of the template. */
|
|
18
|
+
templateId: string;
|
|
19
|
+
/** The id of the base template. */
|
|
20
|
+
baseTemplateId: string;
|
|
21
|
+
/** The id of the deployment. */
|
|
22
|
+
deploymentId: string;
|
|
23
|
+
/** The id of the entity within the template. */
|
|
24
|
+
entityId: string;
|
|
25
|
+
/** Preserve the block on template migration. */
|
|
26
|
+
preserveOnMigration?: boolean;
|
|
27
|
+
/** Label of the block. */
|
|
28
|
+
label: string;
|
|
29
|
+
/** Whether the agent has read-only access to the block. */
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
/** Description of the block. */
|
|
32
|
+
description?: string;
|
|
33
|
+
/** Metadata of the block. */
|
|
34
|
+
metadata?: Record<string, unknown>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Used for Letta Cloud
|
|
7
|
+
*/
|
|
8
|
+
export interface InternalTemplateGroupCreate {
|
|
9
|
+
/** */
|
|
10
|
+
agentIds: string[];
|
|
11
|
+
/** */
|
|
12
|
+
description: string;
|
|
13
|
+
/** */
|
|
14
|
+
managerConfig?: Letta.InternalTemplateGroupCreateManagerConfig;
|
|
15
|
+
/** The associated project id. */
|
|
16
|
+
projectId?: string;
|
|
17
|
+
/** */
|
|
18
|
+
sharedBlockIds?: string[];
|
|
19
|
+
/** The id of the base template. */
|
|
20
|
+
baseTemplateId: string;
|
|
21
|
+
/** The id of the template. */
|
|
22
|
+
templateId: string;
|
|
23
|
+
/** The id of the deployment. */
|
|
24
|
+
deploymentId: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type InternalTemplateGroupCreateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SleeptimeManager | Letta.SupervisorManager | Letta.VoiceSleeptimeManager;
|
|
@@ -149,6 +149,12 @@ export * from "./ImportedAgentsResponse";
|
|
|
149
149
|
export * from "./InitToolRule";
|
|
150
150
|
export * from "./InputAudioFormat";
|
|
151
151
|
export * from "./InputAudio";
|
|
152
|
+
export * from "./InternalTemplateAgentCreateToolRulesItem";
|
|
153
|
+
export * from "./InternalTemplateAgentCreateResponseFormat";
|
|
154
|
+
export * from "./InternalTemplateAgentCreate";
|
|
155
|
+
export * from "./InternalTemplateBlockCreate";
|
|
156
|
+
export * from "./InternalTemplateGroupCreateManagerConfig";
|
|
157
|
+
export * from "./InternalTemplateGroupCreate";
|
|
152
158
|
export * from "./JsonSchema";
|
|
153
159
|
export * from "./Job";
|
|
154
160
|
export * from "./JobStatus";
|
package/dist/api/types/index.js
CHANGED
|
@@ -165,6 +165,12 @@ __exportStar(require("./ImportedAgentsResponse"), exports);
|
|
|
165
165
|
__exportStar(require("./InitToolRule"), exports);
|
|
166
166
|
__exportStar(require("./InputAudioFormat"), exports);
|
|
167
167
|
__exportStar(require("./InputAudio"), exports);
|
|
168
|
+
__exportStar(require("./InternalTemplateAgentCreateToolRulesItem"), exports);
|
|
169
|
+
__exportStar(require("./InternalTemplateAgentCreateResponseFormat"), exports);
|
|
170
|
+
__exportStar(require("./InternalTemplateAgentCreate"), exports);
|
|
171
|
+
__exportStar(require("./InternalTemplateBlockCreate"), exports);
|
|
172
|
+
__exportStar(require("./InternalTemplateGroupCreateManagerConfig"), exports);
|
|
173
|
+
__exportStar(require("./InternalTemplateGroupCreate"), exports);
|
|
168
174
|
__exportStar(require("./JsonSchema"), exports);
|
|
169
175
|
__exportStar(require("./Job"), exports);
|
|
170
176
|
__exportStar(require("./JobStatus"), exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { TemplatesSaveTemplateVersionRequest } from "./TemplatesSaveTemplateVersionRequest";
|
|
2
2
|
export { TemplatesDeleteTemplateRequest } from "./TemplatesDeleteTemplateRequest";
|
|
3
3
|
export { TemplatesForkTemplateRequest } from "./TemplatesForkTemplateRequest";
|
|
4
|
-
export { TemplatesCreateTemplateRequest } from "./TemplatesCreateTemplateRequest";
|
|
5
4
|
export { TemplatesRenameTemplateRequest } from "./TemplatesRenameTemplateRequest";
|
|
6
5
|
export { TemplatesUpdateTemplateDescriptionRequest } from "./TemplatesUpdateTemplateDescriptionRequest";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TemplatesUpdateTemplateDescriptionRequest = exports.TemplatesRenameTemplateRequest = exports.
|
|
3
|
+
exports.TemplatesUpdateTemplateDescriptionRequest = exports.TemplatesRenameTemplateRequest = exports.TemplatesForkTemplateRequest = exports.TemplatesDeleteTemplateRequest = exports.TemplatesSaveTemplateVersionRequest = void 0;
|
|
4
4
|
var TemplatesSaveTemplateVersionRequest_1 = require("./TemplatesSaveTemplateVersionRequest");
|
|
5
5
|
Object.defineProperty(exports, "TemplatesSaveTemplateVersionRequest", { enumerable: true, get: function () { return TemplatesSaveTemplateVersionRequest_1.TemplatesSaveTemplateVersionRequest; } });
|
|
6
6
|
var TemplatesDeleteTemplateRequest_1 = require("./TemplatesDeleteTemplateRequest");
|
|
7
7
|
Object.defineProperty(exports, "TemplatesDeleteTemplateRequest", { enumerable: true, get: function () { return TemplatesDeleteTemplateRequest_1.TemplatesDeleteTemplateRequest; } });
|
|
8
8
|
var TemplatesForkTemplateRequest_1 = require("./TemplatesForkTemplateRequest");
|
|
9
9
|
Object.defineProperty(exports, "TemplatesForkTemplateRequest", { enumerable: true, get: function () { return TemplatesForkTemplateRequest_1.TemplatesForkTemplateRequest; } });
|
|
10
|
-
var TemplatesCreateTemplateRequest_1 = require("./TemplatesCreateTemplateRequest");
|
|
11
|
-
Object.defineProperty(exports, "TemplatesCreateTemplateRequest", { enumerable: true, get: function () { return TemplatesCreateTemplateRequest_1.TemplatesCreateTemplateRequest; } });
|
|
12
10
|
var TemplatesRenameTemplateRequest_1 = require("./TemplatesRenameTemplateRequest");
|
|
13
11
|
Object.defineProperty(exports, "TemplatesRenameTemplateRequest", { enumerable: true, get: function () { return TemplatesRenameTemplateRequest_1.TemplatesRenameTemplateRequest; } });
|
|
14
12
|
var TemplatesUpdateTemplateDescriptionRequest_1 = require("./TemplatesUpdateTemplateDescriptionRequest");
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { TemplatesCreateTemplateRequestAgentId } from "./TemplatesCreateTemplateRequestAgentId";
|
|
8
|
+
import { TemplatesCreateTemplateRequestAgentFile } from "./TemplatesCreateTemplateRequestAgentFile";
|
|
9
|
+
export declare const TemplatesCreateTemplateRequest: core.serialization.Schema<serializers.TemplatesCreateTemplateRequest.Raw, Letta.TemplatesCreateTemplateRequest>;
|
|
10
|
+
export declare namespace TemplatesCreateTemplateRequest {
|
|
11
|
+
type Raw = TemplatesCreateTemplateRequestAgentId.Raw | TemplatesCreateTemplateRequestAgentFile.Raw;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TemplatesCreateTemplateRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const TemplatesCreateTemplateRequestAgentId_1 = require("./TemplatesCreateTemplateRequestAgentId");
|
|
42
|
+
const TemplatesCreateTemplateRequestAgentFile_1 = require("./TemplatesCreateTemplateRequestAgentFile");
|
|
43
|
+
exports.TemplatesCreateTemplateRequest = core.serialization.undiscriminatedUnion([
|
|
44
|
+
TemplatesCreateTemplateRequestAgentId_1.TemplatesCreateTemplateRequestAgentId,
|
|
45
|
+
TemplatesCreateTemplateRequestAgentFile_1.TemplatesCreateTemplateRequestAgentFile,
|
|
46
|
+
]);
|