@letta-ai/letta-client 0.1.37 → 0.1.38
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 +15 -10
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
- package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- 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/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
- package/api/resources/agents/types/index.d.ts +1 -2
- package/api/resources/agents/types/index.js +1 -2
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +18 -18
- package/api/resources/identities/client/Client.js +36 -33
- package/{dist/api/resources/identities/client/requests/CreateIdentityRequest.d.ts → api/resources/identities/client/requests/IdentitiesCreateRequest.d.ts} +1 -1
- package/{dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
- package/api/resources/identities/client/requests/{CreateIdentityRequest.d.ts → IdentitiesUpsertRequest.d.ts} +1 -1
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
- package/api/resources/identities/client/requests/index.d.ts +3 -3
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
- package/api/resources/templates/types/index.d.ts +1 -2
- package/api/resources/templates/types/index.js +1 -2
- package/api/resources/tools/client/Client.js +11 -11
- package/api/types/AgentState.d.ts +2 -2
- package/api/types/Identity.d.ts +4 -2
- package/api/types/IdentityCreate.d.ts +2 -0
- package/api/types/IdentityProperty.d.ts +15 -0
- package/api/types/IdentityPropertyType.d.ts +13 -0
- package/api/types/IdentityPropertyType.js +12 -0
- package/api/types/IdentityPropertyValue.d.ts +7 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/agents/client/Client.js +15 -10
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- 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/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -2
- package/dist/api/resources/agents/types/index.js +1 -2
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +18 -18
- package/dist/api/resources/identities/client/Client.js +36 -33
- package/dist/api/resources/identities/client/requests/{UpsertIdentityRequest.d.ts → IdentitiesCreateRequest.d.ts} +1 -1
- package/{api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
- package/{api/resources/identities/client/requests/UpsertIdentityRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts} +1 -1
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
- package/dist/api/resources/identities/client/requests/index.d.ts +3 -3
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
- package/dist/api/resources/templates/types/index.d.ts +1 -2
- package/dist/api/resources/templates/types/index.js +1 -2
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/types/AgentState.d.ts +2 -2
- package/dist/api/types/Identity.d.ts +4 -2
- package/dist/api/types/IdentityCreate.d.ts +2 -0
- package/dist/api/types/IdentityProperty.d.ts +15 -0
- package/dist/api/types/IdentityPropertyType.d.ts +13 -0
- package/dist/api/types/IdentityPropertyType.js +12 -0
- package/dist/api/types/IdentityPropertyValue.d.ts +7 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
- package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
- package/dist/serialization/resources/agents/types/index.d.ts +1 -2
- package/dist/serialization/resources/agents/types/index.js +1 -2
- package/dist/serialization/resources/identities/client/index.d.ts +1 -1
- package/dist/serialization/resources/identities/client/index.js +2 -2
- package/dist/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
- package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
- package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +5 -2
- package/dist/serialization/resources/templates/types/index.d.ts +1 -2
- package/dist/serialization/resources/templates/types/index.js +1 -2
- package/dist/serialization/types/AgentState.d.ts +1 -1
- package/dist/serialization/types/AgentState.js +1 -1
- package/dist/serialization/types/Identity.d.ts +3 -2
- package/dist/serialization/types/Identity.js +3 -2
- package/dist/serialization/types/IdentityCreate.d.ts +2 -0
- package/dist/serialization/types/IdentityCreate.js +2 -0
- package/dist/serialization/types/IdentityProperty.d.ts +16 -0
- package/dist/serialization/types/IdentityProperty.js +47 -0
- package/dist/serialization/types/IdentityPropertyType.d.ts +10 -0
- package/dist/serialization/types/IdentityPropertyType.js +41 -0
- package/dist/serialization/types/IdentityPropertyValue.d.ts +10 -0
- package/dist/serialization/types/IdentityPropertyValue.js +47 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +18 -18
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
- package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
- package/serialization/resources/agents/types/index.d.ts +1 -2
- package/serialization/resources/agents/types/index.js +1 -2
- package/serialization/resources/identities/client/index.d.ts +1 -1
- package/serialization/resources/identities/client/index.js +2 -2
- package/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
- package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js +44 -0
- package/serialization/resources/templates/types/index.d.ts +1 -2
- package/serialization/resources/templates/types/index.js +1 -2
- package/serialization/types/AgentState.d.ts +1 -1
- package/serialization/types/AgentState.js +1 -1
- package/serialization/types/Identity.d.ts +3 -2
- package/serialization/types/Identity.js +3 -2
- package/serialization/types/IdentityCreate.d.ts +2 -0
- package/serialization/types/IdentityCreate.js +2 -0
- package/serialization/types/IdentityProperty.d.ts +16 -0
- package/serialization/types/IdentityProperty.js +47 -0
- package/serialization/types/IdentityPropertyType.d.ts +10 -0
- package/serialization/types/IdentityPropertyType.js +41 -0
- package/serialization/types/IdentityPropertyValue.d.ts +10 -0
- package/serialization/types/IdentityPropertyValue.js +47 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js +0 -41
- /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
- /package/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
- /package/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
- /package/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
- /package/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
- /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
- /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
- /package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
- /package/dist/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
- /package/dist/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
- /package/dist/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
- /package/dist/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
- /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
- /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
- /package/dist/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
- /package/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
|
@@ -86,7 +86,7 @@ class Sources {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Sources {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
154
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -211,7 +211,7 @@ class Sources {
|
|
|
211
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
212
212
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
213
213
|
method: "PATCH",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Sources {
|
|
|
277
277
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
278
278
|
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/sources/name/${encodeURIComponent(sourceName)}`),
|
|
279
279
|
method: "GET",
|
|
280
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
280
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -341,7 +341,7 @@ class Sources {
|
|
|
341
341
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
342
342
|
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/sources/"),
|
|
343
343
|
method: "GET",
|
|
344
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
344
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -408,7 +408,7 @@ class Sources {
|
|
|
408
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
409
|
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/sources/"),
|
|
410
410
|
method: "POST",
|
|
411
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
411
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
412
412
|
contentType: "application/json",
|
|
413
413
|
requestType: "json",
|
|
414
414
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -80,7 +80,7 @@ class Files {
|
|
|
80
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
81
81
|
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/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
82
82
|
method: "POST",
|
|
83
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
requestType: "file",
|
|
85
85
|
duplex: _maybeEncodedRequest.duplex,
|
|
86
86
|
body: _maybeEncodedRequest.body,
|
|
@@ -155,7 +155,7 @@ class Files {
|
|
|
155
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
156
156
|
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/sources/${encodeURIComponent(sourceId)}/files`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
158
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
requestType: "json",
|
|
@@ -222,7 +222,7 @@ class Files {
|
|
|
222
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
223
223
|
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/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
224
224
|
method: "DELETE",
|
|
225
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Passages {
|
|
|
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/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
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.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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,
|
|
@@ -100,7 +100,7 @@ class Steps {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
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/steps"),
|
|
102
102
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
103
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -166,7 +166,7 @@ class Steps {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
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/steps/${encodeURIComponent(stepId)}`),
|
|
168
168
|
method: "GET",
|
|
169
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
169
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Tag {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
88
|
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/tags/"),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -75,7 +75,7 @@ class Templates {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -26,6 +26,6 @@ export interface TemplatesCreateAgentsResponseAgentsItem {
|
|
|
26
26
|
projectId?: Letta.TemplatesCreateAgentsResponseAgentsItemProjectId;
|
|
27
27
|
templateId?: Letta.TemplatesCreateAgentsResponseAgentsItemTemplateId;
|
|
28
28
|
baseTemplateId?: Letta.TemplatesCreateAgentsResponseAgentsItemBaseTemplateId;
|
|
29
|
-
|
|
29
|
+
identityIds?: Letta.TemplatesCreateAgentsResponseAgentsItemIdentityIds;
|
|
30
30
|
messageBufferAutoclear?: Letta.TemplatesCreateAgentsResponseAgentsItemMessageBufferAutoclear;
|
|
31
31
|
}
|
|
@@ -160,8 +160,7 @@ export * from "./TemplatesCreateAgentsResponseAgentsItemTemplateIdItem";
|
|
|
160
160
|
export * from "./TemplatesCreateAgentsResponseAgentsItemTemplateId";
|
|
161
161
|
export * from "./TemplatesCreateAgentsResponseAgentsItemBaseTemplateIdItem";
|
|
162
162
|
export * from "./TemplatesCreateAgentsResponseAgentsItemBaseTemplateId";
|
|
163
|
-
export * from "./
|
|
164
|
-
export * from "./TemplatesCreateAgentsResponseAgentsItemIdentifierKey";
|
|
163
|
+
export * from "./TemplatesCreateAgentsResponseAgentsItemIdentityIds";
|
|
165
164
|
export * from "./TemplatesCreateAgentsResponseAgentsItemMessageBufferAutoclear";
|
|
166
165
|
export * from "./TemplatesCreateAgentsResponseAgentsItem";
|
|
167
166
|
export * from "./TemplatesCreateAgentsResponse";
|
|
@@ -176,8 +176,7 @@ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemTemplateIdItem"),
|
|
|
176
176
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemTemplateId"), exports);
|
|
177
177
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemBaseTemplateIdItem"), exports);
|
|
178
178
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemBaseTemplateId"), exports);
|
|
179
|
-
__exportStar(require("./
|
|
180
|
-
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemIdentifierKey"), exports);
|
|
179
|
+
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemIdentityIds"), exports);
|
|
181
180
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemMessageBufferAutoclear"), exports);
|
|
182
181
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItem"), exports);
|
|
183
182
|
__exportStar(require("./TemplatesCreateAgentsResponse"), exports);
|
|
@@ -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.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
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/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
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/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
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/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
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"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
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"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
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"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
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`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
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)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -61,8 +61,8 @@ export interface AgentState {
|
|
|
61
61
|
templateId?: string;
|
|
62
62
|
/** The base template id of the agent. */
|
|
63
63
|
baseTemplateId?: string;
|
|
64
|
-
/** The
|
|
65
|
-
|
|
64
|
+
/** The ids of the identities associated with this agent. */
|
|
65
|
+
identityIds?: string[];
|
|
66
66
|
/** 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. */
|
|
67
67
|
messageBufferAutoclear?: boolean;
|
|
68
68
|
}
|
package/api/types/Identity.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export interface Identity {
|
|
|
13
13
|
identityType: Letta.IdentityType;
|
|
14
14
|
/** The project id of the identity, if applicable. */
|
|
15
15
|
projectId?: string;
|
|
16
|
-
/** The agents associated with the identity. */
|
|
17
|
-
|
|
16
|
+
/** The IDs of the agents associated with the identity. */
|
|
17
|
+
agentIds: string[];
|
|
18
|
+
/** List of properties associated with the identity */
|
|
19
|
+
properties?: Letta.IdentityProperty[];
|
|
18
20
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A property of an identity
|
|
7
|
+
*/
|
|
8
|
+
export interface IdentityProperty {
|
|
9
|
+
/** The key of the property */
|
|
10
|
+
key: string;
|
|
11
|
+
/** The value of the property */
|
|
12
|
+
value: Letta.IdentityPropertyValue;
|
|
13
|
+
/** The type of the property */
|
|
14
|
+
type: Letta.IdentityPropertyType;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Enum to represent the type of the identity property.
|
|
6
|
+
*/
|
|
7
|
+
export type IdentityPropertyType = "string" | "number" | "boolean" | "json";
|
|
8
|
+
export declare const IdentityPropertyType: {
|
|
9
|
+
readonly String: "string";
|
|
10
|
+
readonly Number: "number";
|
|
11
|
+
readonly Boolean: "boolean";
|
|
12
|
+
readonly Json: "json";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IdentityPropertyType = void 0;
|
|
7
|
+
exports.IdentityPropertyType = {
|
|
8
|
+
String: "string",
|
|
9
|
+
Number: "number",
|
|
10
|
+
Boolean: "boolean",
|
|
11
|
+
Json: "json",
|
|
12
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export * from "./HttpValidationError";
|
|
|
87
87
|
export * from "./Health";
|
|
88
88
|
export * from "./Identity";
|
|
89
89
|
export * from "./IdentityCreate";
|
|
90
|
+
export * from "./IdentityPropertyValue";
|
|
91
|
+
export * from "./IdentityProperty";
|
|
92
|
+
export * from "./IdentityPropertyType";
|
|
90
93
|
export * from "./IdentityType";
|
|
91
94
|
export * from "./ImageUrlDetail";
|
|
92
95
|
export * from "./ImageUrl";
|
package/api/types/index.js
CHANGED
|
@@ -103,6 +103,9 @@ __exportStar(require("./HttpValidationError"), exports);
|
|
|
103
103
|
__exportStar(require("./Health"), exports);
|
|
104
104
|
__exportStar(require("./Identity"), exports);
|
|
105
105
|
__exportStar(require("./IdentityCreate"), exports);
|
|
106
|
+
__exportStar(require("./IdentityPropertyValue"), exports);
|
|
107
|
+
__exportStar(require("./IdentityProperty"), exports);
|
|
108
|
+
__exportStar(require("./IdentityPropertyType"), exports);
|
|
106
109
|
__exportStar(require("./IdentityType"), exports);
|
|
107
110
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
108
111
|
__exportStar(require("./ImageUrl"), exports);
|
|
@@ -125,7 +125,7 @@ class Agents {
|
|
|
125
125
|
list() {
|
|
126
126
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
127
127
|
var _a, _b, _c;
|
|
128
|
-
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId,
|
|
128
|
+
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identifierKeys, } = request;
|
|
129
129
|
const _queryParams = {};
|
|
130
130
|
if (name != null) {
|
|
131
131
|
_queryParams["name"] = name;
|
|
@@ -162,13 +162,18 @@ class Agents {
|
|
|
162
162
|
if (baseTemplateId != null) {
|
|
163
163
|
_queryParams["base_template_id"] = baseTemplateId;
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
166
|
-
|
|
165
|
+
if (identifierKeys != null) {
|
|
166
|
+
if (Array.isArray(identifierKeys)) {
|
|
167
|
+
_queryParams["identifier_keys"] = identifierKeys.map((item) => item);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
_queryParams["identifier_keys"] = identifierKeys;
|
|
171
|
+
}
|
|
167
172
|
}
|
|
168
173
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
169
174
|
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/agents/"),
|
|
170
175
|
method: "GET",
|
|
171
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
176
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
172
177
|
contentType: "application/json",
|
|
173
178
|
queryParameters: _queryParams,
|
|
174
179
|
requestType: "json",
|
|
@@ -235,7 +240,7 @@ class Agents {
|
|
|
235
240
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
236
241
|
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/agents/"),
|
|
237
242
|
method: "POST",
|
|
238
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
243
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
244
|
contentType: "application/json",
|
|
240
245
|
requestType: "json",
|
|
241
246
|
body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -301,7 +306,7 @@ class Agents {
|
|
|
301
306
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
307
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
303
308
|
method: "GET",
|
|
304
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
309
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
305
310
|
contentType: "application/json",
|
|
306
311
|
requestType: "json",
|
|
307
312
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -366,7 +371,7 @@ class Agents {
|
|
|
366
371
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
367
372
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
368
373
|
method: "DELETE",
|
|
369
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
374
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
370
375
|
contentType: "application/json",
|
|
371
376
|
requestType: "json",
|
|
372
377
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -426,7 +431,7 @@ class Agents {
|
|
|
426
431
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
427
432
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
428
433
|
method: "PATCH",
|
|
429
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
434
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
430
435
|
contentType: "application/json",
|
|
431
436
|
requestType: "json",
|
|
432
437
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -498,7 +503,7 @@ class Agents {
|
|
|
498
503
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
499
504
|
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/agents/${encodeURIComponent(agentId)}/reset-messages`),
|
|
500
505
|
method: "PATCH",
|
|
501
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
506
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
502
507
|
contentType: "application/json",
|
|
503
508
|
queryParameters: _queryParams,
|
|
504
509
|
requestType: "json",
|
|
@@ -564,7 +569,7 @@ class Agents {
|
|
|
564
569
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
565
570
|
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/agents/search"),
|
|
566
571
|
method: "POST",
|
|
567
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
572
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.38", "User-Agent": "@letta-ai/letta-client/0.1.38", "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),
|
|
568
573
|
contentType: "application/json",
|
|
569
574
|
requestType: "json",
|
|
570
575
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -68,8 +68,8 @@ export interface CreateAgentRequest {
|
|
|
68
68
|
templateId?: string;
|
|
69
69
|
/** The base template id of the agent. */
|
|
70
70
|
baseTemplateId?: string;
|
|
71
|
-
/** The
|
|
72
|
-
|
|
71
|
+
/** The ids of the identities associated with this agent. */
|
|
72
|
+
identityIds?: string[];
|
|
73
73
|
/** 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. */
|
|
74
74
|
messageBufferAutoclear?: boolean;
|
|
75
75
|
}
|
|
@@ -39,8 +39,8 @@ export interface UpdateAgent {
|
|
|
39
39
|
templateId?: string;
|
|
40
40
|
/** The base template id of the agent. */
|
|
41
41
|
baseTemplateId?: string;
|
|
42
|
-
/** The
|
|
43
|
-
|
|
42
|
+
/** The ids of the identities associated with this agent. */
|
|
43
|
+
identityIds?: string[];
|
|
44
44
|
/** 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. */
|
|
45
45
|
messageBufferAutoclear?: boolean;
|
|
46
46
|
}
|