@letta-ai/letta-client 0.1.127 → 0.1.129
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 +10 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.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 +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- 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 +2 -2
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +17 -17
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ChildToolRule.d.ts +2 -0
- package/api/types/ConditionalToolRule.d.ts +2 -0
- package/api/types/ContinueToolRule.d.ts +2 -0
- package/api/types/InitToolRule.d.ts +2 -0
- package/api/types/MaxCountPerStepToolRule.d.ts +2 -0
- package/api/types/ParentToolRule.d.ts +2 -0
- package/api/types/TerminalToolRule.d.ts +2 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.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 +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- 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 +2 -2
- 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.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +17 -17
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ChildToolRule.d.ts +2 -0
- package/dist/api/types/ConditionalToolRule.d.ts +2 -0
- package/dist/api/types/ContinueToolRule.d.ts +2 -0
- package/dist/api/types/InitToolRule.d.ts +2 -0
- package/dist/api/types/MaxCountPerStepToolRule.d.ts +2 -0
- package/dist/api/types/ParentToolRule.d.ts +2 -0
- package/dist/api/types/TerminalToolRule.d.ts +2 -0
- package/dist/serialization/types/ChildToolRule.d.ts +1 -0
- package/dist/serialization/types/ChildToolRule.js +1 -0
- package/dist/serialization/types/ConditionalToolRule.d.ts +1 -0
- package/dist/serialization/types/ConditionalToolRule.js +1 -0
- package/dist/serialization/types/ContinueToolRule.d.ts +1 -0
- package/dist/serialization/types/ContinueToolRule.js +1 -0
- package/dist/serialization/types/InitToolRule.d.ts +1 -0
- package/dist/serialization/types/InitToolRule.js +1 -0
- package/dist/serialization/types/MaxCountPerStepToolRule.d.ts +1 -0
- package/dist/serialization/types/MaxCountPerStepToolRule.js +1 -0
- package/dist/serialization/types/ParentToolRule.d.ts +1 -0
- package/dist/serialization/types/ParentToolRule.js +1 -0
- package/dist/serialization/types/TerminalToolRule.d.ts +1 -0
- package/dist/serialization/types/TerminalToolRule.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ChildToolRule.d.ts +1 -0
- package/serialization/types/ChildToolRule.js +1 -0
- package/serialization/types/ConditionalToolRule.d.ts +1 -0
- package/serialization/types/ConditionalToolRule.js +1 -0
- package/serialization/types/ContinueToolRule.d.ts +1 -0
- package/serialization/types/ContinueToolRule.js +1 -0
- package/serialization/types/InitToolRule.d.ts +1 -0
- package/serialization/types/InitToolRule.js +1 -0
- package/serialization/types/MaxCountPerStepToolRule.d.ts +1 -0
- package/serialization/types/MaxCountPerStepToolRule.js +1 -0
- package/serialization/types/ParentToolRule.d.ts +1 -0
- package/serialization/types/ParentToolRule.js +1 -0
- package/serialization/types/TerminalToolRule.d.ts +1 -0
- package/serialization/types/TerminalToolRule.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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 Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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 Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -272,7 +272,7 @@ class Tools {
|
|
|
272
272
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
273
273
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/count"),
|
|
274
274
|
method: "GET",
|
|
275
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
275
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
276
276
|
contentType: "application/json",
|
|
277
277
|
queryParameters: _queryParams,
|
|
278
278
|
requestType: "json",
|
|
@@ -349,7 +349,7 @@ class Tools {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
351
351
|
method: "GET",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
queryParameters: _queryParams,
|
|
355
355
|
requestType: "json",
|
|
@@ -417,7 +417,7 @@ class Tools {
|
|
|
417
417
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
418
418
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
419
419
|
method: "POST",
|
|
420
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
420
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
421
421
|
contentType: "application/json",
|
|
422
422
|
requestType: "json",
|
|
423
423
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -485,7 +485,7 @@ class Tools {
|
|
|
485
485
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
486
486
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
487
487
|
method: "PUT",
|
|
488
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
488
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
489
489
|
contentType: "application/json",
|
|
490
490
|
requestType: "json",
|
|
491
491
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -550,7 +550,7 @@ class Tools {
|
|
|
550
550
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
551
551
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
552
552
|
method: "POST",
|
|
553
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
553
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -620,7 +620,7 @@ class Tools {
|
|
|
620
620
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
621
621
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
622
622
|
method: "POST",
|
|
623
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
623
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
624
624
|
contentType: "application/json",
|
|
625
625
|
requestType: "json",
|
|
626
626
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -687,7 +687,7 @@ class Tools {
|
|
|
687
687
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
688
688
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
689
689
|
method: "GET",
|
|
690
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
690
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
691
691
|
contentType: "application/json",
|
|
692
692
|
requestType: "json",
|
|
693
693
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -752,7 +752,7 @@ class Tools {
|
|
|
752
752
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
753
753
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
754
754
|
method: "GET",
|
|
755
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
755
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
756
756
|
contentType: "application/json",
|
|
757
757
|
requestType: "json",
|
|
758
758
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -817,7 +817,7 @@ class Tools {
|
|
|
817
817
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
818
818
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
819
819
|
method: "POST",
|
|
820
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
820
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
821
821
|
contentType: "application/json",
|
|
822
822
|
requestType: "json",
|
|
823
823
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -883,7 +883,7 @@ class Tools {
|
|
|
883
883
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
884
884
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
885
885
|
method: "GET",
|
|
886
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
886
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
887
887
|
contentType: "application/json",
|
|
888
888
|
requestType: "json",
|
|
889
889
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -952,7 +952,7 @@ class Tools {
|
|
|
952
952
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
953
953
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
954
954
|
method: "PUT",
|
|
955
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
955
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
956
956
|
contentType: "application/json",
|
|
957
957
|
requestType: "json",
|
|
958
958
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1018,7 +1018,7 @@ class Tools {
|
|
|
1018
1018
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1019
1019
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
1020
1020
|
method: "GET",
|
|
1021
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1021
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
1022
1022
|
contentType: "application/json",
|
|
1023
1023
|
requestType: "json",
|
|
1024
1024
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1084,7 +1084,7 @@ class Tools {
|
|
|
1084
1084
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1085
1085
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1086
1086
|
method: "POST",
|
|
1087
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1087
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
1088
1088
|
contentType: "application/json",
|
|
1089
1089
|
requestType: "json",
|
|
1090
1090
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1149,7 +1149,7 @@ class Tools {
|
|
|
1149
1149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1150
1150
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1151
1151
|
method: "DELETE",
|
|
1152
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1152
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
1153
1153
|
contentType: "application/json",
|
|
1154
1154
|
requestType: "json",
|
|
1155
1155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
|
@@ -8,6 +8,8 @@ export interface ChildToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "constrain_child_tools";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
/** The children tools that can be invoked. */
|
|
12
14
|
children: string[];
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export interface ConditionalToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "conditional";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
/** The default child tool to be called. If None, any tool can be called. */
|
|
12
14
|
defaultChild?: string;
|
|
13
15
|
/** The output case to check for mapping */
|
|
@@ -8,4 +8,6 @@ export interface ContinueToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "continue_loop";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
}
|
|
@@ -8,4 +8,6 @@ export interface InitToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "run_first";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
}
|
|
@@ -8,6 +8,8 @@ export interface MaxCountPerStepToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "max_count_per_step";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
/** The max limit for the total number of times this tool can be invoked in a single step. */
|
|
12
14
|
maxCountLimit: number;
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export interface ParentToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "parent_last_tool";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
/** The children tools that can be invoked. */
|
|
12
14
|
children: string[];
|
|
13
15
|
}
|
|
@@ -8,4 +8,6 @@ export interface TerminalToolRule {
|
|
|
8
8
|
/** The name of the tool. Must exist in the database for the user's organization. */
|
|
9
9
|
toolName: string;
|
|
10
10
|
type: "exit_loop";
|
|
11
|
+
/** Optional Jinja2 template for generating agent prompt about this tool rule. */
|
|
12
|
+
promptTemplate?: string;
|
|
11
13
|
}
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ChildToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("constrain_child_tools"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
children: core.serialization.list(core.serialization.string()),
|
|
45
46
|
});
|
|
@@ -9,6 +9,7 @@ export declare namespace ConditionalToolRule {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
tool_name: string;
|
|
11
11
|
type: "conditional";
|
|
12
|
+
prompt_template?: string | null;
|
|
12
13
|
default_child?: string | null;
|
|
13
14
|
child_output_mapping: Record<string, string>;
|
|
14
15
|
require_output_mapping?: boolean | null;
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ConditionalToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("conditional"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
defaultChild: core.serialization.property("default_child", core.serialization.string().optional()),
|
|
45
46
|
childOutputMapping: core.serialization.property("child_output_mapping", core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
46
47
|
requireOutputMapping: core.serialization.property("require_output_mapping", core.serialization.boolean().optional()),
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ContinueToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("continue_loop"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.InitToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("run_first"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.MaxCountPerStepToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("max_count_per_step"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
maxCountLimit: core.serialization.property("max_count_limit", core.serialization.number()),
|
|
45
46
|
});
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ParentToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("parent_last_tool"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
children: core.serialization.list(core.serialization.string()),
|
|
45
46
|
});
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.TerminalToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("exit_loop"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.129";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ChildToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("constrain_child_tools"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
children: core.serialization.list(core.serialization.string()),
|
|
45
46
|
});
|
|
@@ -9,6 +9,7 @@ export declare namespace ConditionalToolRule {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
tool_name: string;
|
|
11
11
|
type: "conditional";
|
|
12
|
+
prompt_template?: string | null;
|
|
12
13
|
default_child?: string | null;
|
|
13
14
|
child_output_mapping: Record<string, string>;
|
|
14
15
|
require_output_mapping?: boolean | null;
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ConditionalToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("conditional"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
defaultChild: core.serialization.property("default_child", core.serialization.string().optional()),
|
|
45
46
|
childOutputMapping: core.serialization.property("child_output_mapping", core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
46
47
|
requireOutputMapping: core.serialization.property("require_output_mapping", core.serialization.boolean().optional()),
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ContinueToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("continue_loop"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.InitToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("run_first"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.MaxCountPerStepToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("max_count_per_step"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
maxCountLimit: core.serialization.property("max_count_limit", core.serialization.number()),
|
|
45
46
|
});
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.ParentToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("parent_last_tool"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
children: core.serialization.list(core.serialization.string()),
|
|
45
46
|
});
|
|
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.TerminalToolRule = core.serialization.object({
|
|
42
42
|
toolName: core.serialization.property("tool_name", core.serialization.string()),
|
|
43
43
|
type: core.serialization.stringLiteral("exit_loop"),
|
|
44
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
44
45
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.129";
|
package/version.js
CHANGED