@letta-ai/letta-client 0.1.78 → 0.1.80
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/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +9 -6
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/AgentsSearchRequestSearchItem.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
- package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
- package/api/resources/agents/types/index.d.ts +2 -1
- package/api/resources/agents/types/index.js +2 -1
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.d.ts +27 -59
- package/api/resources/groups/client/Client.js +80 -143
- package/{dist/api/types → api/resources/groups/client/requests}/GroupCreate.d.ts +11 -1
- package/api/resources/groups/client/requests/GroupUpdate.d.ts +19 -0
- package/api/resources/groups/client/requests/{ListGroupsRequest.d.ts → GroupsListRequest.d.ts} +1 -1
- package/api/resources/groups/client/requests/index.d.ts +3 -5
- package/api/resources/groups/index.d.ts +2 -0
- package/api/resources/groups/index.js +2 -0
- package/api/resources/groups/resources/index.d.ts +3 -0
- package/api/resources/groups/resources/index.js +42 -0
- package/api/resources/groups/resources/messages/client/Client.d.ts +89 -0
- package/api/resources/groups/resources/messages/client/Client.js +373 -0
- package/api/resources/groups/resources/messages/client/index.d.ts +1 -0
- package/api/resources/groups/resources/messages/client/index.js +17 -0
- package/api/resources/groups/{client/requests/ListGroupMessagesRequest.d.ts → resources/messages/client/requests/MessagesListRequest.d.ts} +1 -1
- package/api/resources/groups/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/groups/resources/messages/client/requests/index.js +2 -0
- package/api/resources/groups/resources/messages/index.d.ts +2 -0
- package/api/resources/groups/resources/messages/index.js +18 -0
- package/api/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +5 -0
- package/api/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +5 -0
- package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +5 -0
- package/api/resources/groups/resources/messages/types/index.d.ts +3 -0
- package/api/resources/groups/resources/messages/types/index.js +19 -0
- package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +8 -0
- package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -0
- package/api/resources/groups/types/index.d.ts +2 -0
- package/api/resources/groups/types/index.js +18 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- 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/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/BackgroundManager.d.ts +10 -0
- package/api/types/Group.d.ts +8 -0
- package/api/types/LettaUsageStatistics.d.ts +2 -0
- package/api/types/ManagerType.d.ts +2 -1
- package/api/types/ManagerType.js +1 -0
- package/api/types/index.d.ts +1 -2
- package/api/types/index.js +1 -2
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -6
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/AgentsSearchRequestSearchItem.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
- package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
- package/dist/api/resources/agents/types/index.d.ts +2 -1
- package/dist/api/resources/agents/types/index.js +2 -1
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.d.ts +27 -59
- package/dist/api/resources/groups/client/Client.js +80 -143
- package/{api/types → dist/api/resources/groups/client/requests}/GroupCreate.d.ts +11 -1
- package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +19 -0
- package/dist/api/resources/groups/client/requests/{ListGroupsRequest.d.ts → GroupsListRequest.d.ts} +1 -1
- package/dist/api/resources/groups/client/requests/GroupsListRequest.js +5 -0
- package/dist/api/resources/groups/client/requests/index.d.ts +3 -5
- package/dist/api/resources/groups/index.d.ts +2 -0
- package/dist/api/resources/groups/index.js +2 -0
- package/dist/api/resources/groups/resources/index.d.ts +3 -0
- package/dist/api/resources/groups/resources/index.js +42 -0
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +89 -0
- package/dist/api/resources/groups/resources/messages/client/Client.js +373 -0
- package/dist/api/resources/groups/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/groups/resources/messages/client/index.js +17 -0
- package/dist/api/resources/groups/{client/requests/ListGroupMessagesRequest.d.ts → resources/messages/client/requests/MessagesListRequest.d.ts} +1 -1
- package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.js +5 -0
- package/dist/api/resources/groups/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/groups/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/groups/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/groups/resources/messages/index.js +18 -0
- package/dist/api/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +5 -0
- package/dist/api/resources/groups/resources/messages/types/LettaStreamingResponse.js +5 -0
- package/dist/api/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +5 -0
- package/dist/api/resources/groups/resources/messages/types/MessagesModifyRequest.js +5 -0
- package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +5 -0
- package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.js +5 -0
- package/dist/api/resources/groups/resources/messages/types/index.d.ts +3 -0
- package/dist/api/resources/groups/resources/messages/types/index.js +19 -0
- package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +8 -0
- package/dist/api/resources/groups/types/GroupCreateManagerConfig.js +5 -0
- package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -0
- package/dist/api/resources/groups/types/GroupUpdateManagerConfig.js +5 -0
- package/dist/api/resources/groups/types/index.d.ts +2 -0
- package/dist/api/resources/groups/types/index.js +18 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- 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/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/BackgroundManager.d.ts +10 -0
- package/dist/api/types/BackgroundManager.js +5 -0
- package/dist/api/types/Group.d.ts +8 -0
- package/dist/api/types/LettaUsageStatistics.d.ts +2 -0
- package/dist/api/types/ManagerType.d.ts +2 -1
- package/dist/api/types/ManagerType.js +1 -0
- package/dist/api/types/index.d.ts +1 -2
- package/dist/api/types/index.js +1 -2
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
- package/dist/serialization/resources/agents/types/index.d.ts +2 -1
- package/dist/serialization/resources/agents/types/index.js +2 -1
- package/dist/serialization/resources/groups/client/index.d.ts +2 -2
- package/dist/serialization/resources/groups/client/index.js +6 -3
- package/dist/serialization/resources/groups/client/{listGroups.d.ts → list.d.ts} +1 -1
- package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +16 -0
- package/dist/serialization/{types → resources/groups/client/requests}/GroupCreate.js +3 -2
- package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +16 -0
- package/dist/serialization/resources/groups/client/requests/GroupUpdate.js +47 -0
- package/dist/serialization/resources/groups/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/groups/client/requests/index.js +7 -0
- package/dist/serialization/resources/groups/index.d.ts +2 -0
- package/dist/serialization/resources/groups/index.js +2 -0
- package/dist/serialization/resources/groups/resources/index.d.ts +2 -0
- package/dist/serialization/resources/groups/resources/index.js +41 -0
- package/dist/serialization/resources/groups/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/groups/resources/messages/client/index.js +37 -0
- package/dist/serialization/resources/groups/resources/messages/client/list.d.ts +11 -0
- package/{serialization/resources/groups/client/listGroupMessages.js → dist/serialization/resources/groups/resources/messages/client/list.js} +2 -2
- package/dist/serialization/resources/groups/resources/messages/index.d.ts +2 -0
- package/dist/serialization/resources/groups/resources/messages/index.js +18 -0
- package/dist/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +17 -0
- package/dist/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.js +56 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +14 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.js +50 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +17 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +56 -0
- package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +3 -0
- package/dist/serialization/resources/groups/resources/messages/types/index.js +19 -0
- package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +14 -0
- package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +45 -0
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +14 -0
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +45 -0
- package/dist/serialization/resources/groups/types/index.d.ts +2 -0
- package/dist/serialization/resources/groups/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +3 -1
- package/dist/serialization/resources/index.js +4 -2
- package/dist/serialization/types/BackgroundManager.d.ts +14 -0
- package/dist/serialization/types/{GroupCreateManagerConfig.js → BackgroundManager.js} +6 -5
- package/dist/serialization/types/Group.d.ts +4 -0
- package/dist/serialization/types/Group.js +4 -0
- package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
- package/dist/serialization/types/LettaUsageStatistics.js +1 -0
- package/dist/serialization/types/ManagerType.d.ts +1 -1
- package/dist/serialization/types/ManagerType.js +1 -1
- package/dist/serialization/types/index.d.ts +1 -2
- package/dist/serialization/types/index.js +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +357 -99
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
- package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
- package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
- package/serialization/resources/agents/types/index.d.ts +2 -1
- package/serialization/resources/agents/types/index.js +2 -1
- package/serialization/resources/groups/client/index.d.ts +2 -2
- package/serialization/resources/groups/client/index.js +6 -3
- package/serialization/resources/groups/client/{listGroups.d.ts → list.d.ts} +1 -1
- package/serialization/resources/groups/client/requests/GroupCreate.d.ts +16 -0
- package/serialization/{types → resources/groups/client/requests}/GroupCreate.js +3 -2
- package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +16 -0
- package/serialization/resources/groups/client/requests/GroupUpdate.js +47 -0
- package/serialization/resources/groups/client/requests/index.d.ts +2 -0
- package/serialization/resources/groups/client/requests/index.js +7 -0
- package/serialization/resources/groups/index.d.ts +2 -0
- package/serialization/resources/groups/index.js +2 -0
- package/serialization/resources/groups/resources/index.d.ts +2 -0
- package/serialization/resources/groups/resources/index.js +41 -0
- package/serialization/resources/groups/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/groups/resources/messages/client/index.js +37 -0
- package/serialization/resources/groups/resources/messages/client/list.d.ts +11 -0
- package/{dist/serialization/resources/groups/client/listGroupMessages.js → serialization/resources/groups/resources/messages/client/list.js} +2 -2
- package/serialization/resources/groups/resources/messages/index.d.ts +2 -0
- package/serialization/resources/groups/resources/messages/index.js +18 -0
- package/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +17 -0
- package/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.js +56 -0
- package/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +14 -0
- package/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.js +50 -0
- package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +17 -0
- package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +56 -0
- package/serialization/resources/groups/resources/messages/types/index.d.ts +3 -0
- package/serialization/resources/groups/resources/messages/types/index.js +19 -0
- package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +14 -0
- package/serialization/resources/groups/types/GroupCreateManagerConfig.js +45 -0
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +14 -0
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +45 -0
- package/serialization/resources/groups/types/index.d.ts +2 -0
- package/serialization/resources/groups/types/index.js +18 -0
- package/serialization/resources/index.d.ts +3 -1
- package/serialization/resources/index.js +4 -2
- package/serialization/types/BackgroundManager.d.ts +14 -0
- package/serialization/types/{GroupCreateManagerConfig.js → BackgroundManager.js} +6 -5
- package/serialization/types/Group.d.ts +4 -0
- package/serialization/types/Group.js +4 -0
- package/serialization/types/LettaUsageStatistics.d.ts +1 -0
- package/serialization/types/LettaUsageStatistics.js +1 -0
- package/serialization/types/ManagerType.d.ts +1 -1
- package/serialization/types/ManagerType.js +1 -1
- package/serialization/types/index.d.ts +1 -2
- package/serialization/types/index.js +1 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/groups/client/requests/CreateGroupRequest.d.ts +0 -17
- package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +0 -23
- package/api/resources/groups/client/requests/UpsertGroupRequest.d.ts +0 -17
- package/api/types/GroupCreateManagerConfig.d.ts +0 -5
- package/dist/api/resources/groups/client/requests/CreateGroupRequest.d.ts +0 -17
- package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +0 -23
- package/dist/api/resources/groups/client/requests/UpsertGroupRequest.d.ts +0 -17
- package/dist/api/types/GroupCreateManagerConfig.d.ts +0 -5
- package/dist/serialization/resources/groups/client/listGroupMessages.d.ts +0 -11
- package/dist/serialization/types/GroupCreate.d.ts +0 -15
- package/dist/serialization/types/GroupCreateManagerConfig.d.ts +0 -13
- package/serialization/resources/groups/client/listGroupMessages.d.ts +0 -11
- package/serialization/types/GroupCreate.d.ts +0 -15
- package/serialization/types/GroupCreateManagerConfig.d.ts +0 -13
- /package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemOperator.js} +0 -0
- /package/api/resources/{groups/client/requests/CreateGroupRequest.js → agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
- /package/api/{types → resources/groups/client/requests}/GroupCreate.js +0 -0
- /package/api/resources/groups/client/requests/{ListGroupMessagesRequest.js → GroupUpdate.js} +0 -0
- /package/api/resources/groups/client/requests/{ListGroupsRequest.js → GroupsListRequest.js} +0 -0
- /package/api/resources/groups/{client/requests/SendGroupMessageRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
- /package/api/resources/groups/{client/requests/UpsertGroupRequest.js → resources/messages/types/LettaStreamingResponse.js} +0 -0
- /package/api/{types/GroupCreateManagerConfig.js → resources/groups/resources/messages/types/MessagesModifyRequest.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.js → api/resources/groups/resources/messages/types/MessagesModifyResponse.js} +0 -0
- /package/{dist/api → api/resources/groups}/types/GroupCreateManagerConfig.js +0 -0
- /package/{dist/api/resources/groups/client/requests/CreateGroupRequest.js → api/resources/groups/types/GroupUpdateManagerConfig.js} +0 -0
- /package/{dist/api/resources/groups/client/requests/ListGroupMessagesRequest.js → api/types/BackgroundManager.js} +0 -0
- /package/dist/api/resources/{groups/client/requests/ListGroupsRequest.js → agents/types/AgentsSearchRequestSearchItemOperator.js} +0 -0
- /package/dist/api/resources/{groups/client/requests/SendGroupMessageRequest.js → agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
- /package/dist/api/{types → resources/groups/client/requests}/GroupCreate.js +0 -0
- /package/dist/api/resources/groups/client/requests/{UpsertGroupRequest.js → GroupUpdate.js} +0 -0
- /package/dist/serialization/resources/groups/client/{listGroups.js → list.js} +0 -0
- /package/serialization/resources/groups/client/{listGroups.js → list.js} +0 -0
|
@@ -194,7 +194,7 @@ class Agents {
|
|
|
194
194
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
195
195
|
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/"),
|
|
196
196
|
method: "GET",
|
|
197
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
197
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
198
198
|
contentType: "application/json",
|
|
199
199
|
queryParameters: _queryParams,
|
|
200
200
|
requestType: "json",
|
|
@@ -261,7 +261,7 @@ class Agents {
|
|
|
261
261
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
262
262
|
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/"),
|
|
263
263
|
method: "POST",
|
|
264
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
264
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
requestType: "json",
|
|
267
267
|
body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -327,7 +327,7 @@ class Agents {
|
|
|
327
327
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
328
328
|
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)}/export`),
|
|
329
329
|
method: "GET",
|
|
330
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
330
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
331
331
|
contentType: "application/json",
|
|
332
332
|
requestType: "json",
|
|
333
333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -406,7 +406,7 @@ class Agents {
|
|
|
406
406
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
407
407
|
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/import"),
|
|
408
408
|
method: "POST",
|
|
409
|
-
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.
|
|
409
|
+
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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
410
410
|
queryParameters: _queryParams,
|
|
411
411
|
requestType: "file",
|
|
412
412
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -473,7 +473,7 @@ class Agents {
|
|
|
473
473
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
474
474
|
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)}`),
|
|
475
475
|
method: "GET",
|
|
476
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
476
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
477
477
|
contentType: "application/json",
|
|
478
478
|
requestType: "json",
|
|
479
479
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -538,7 +538,7 @@ class Agents {
|
|
|
538
538
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
539
539
|
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)}`),
|
|
540
540
|
method: "DELETE",
|
|
541
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
541
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
542
542
|
contentType: "application/json",
|
|
543
543
|
requestType: "json",
|
|
544
544
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -598,7 +598,7 @@ class Agents {
|
|
|
598
598
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
599
599
|
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)}`),
|
|
600
600
|
method: "PATCH",
|
|
601
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
601
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
602
602
|
contentType: "application/json",
|
|
603
603
|
requestType: "json",
|
|
604
604
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -668,7 +668,7 @@ class Agents {
|
|
|
668
668
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
669
669
|
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)}/archival-memory/${encodeURIComponent(memoryId)}`),
|
|
670
670
|
method: "PATCH",
|
|
671
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
671
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
672
672
|
contentType: "application/json",
|
|
673
673
|
requestType: "json",
|
|
674
674
|
body: serializers.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -740,7 +740,7 @@ class Agents {
|
|
|
740
740
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
741
741
|
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`),
|
|
742
742
|
method: "PATCH",
|
|
743
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
743
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
744
744
|
contentType: "application/json",
|
|
745
745
|
queryParameters: _queryParams,
|
|
746
746
|
requestType: "json",
|
|
@@ -806,7 +806,7 @@ class Agents {
|
|
|
806
806
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
807
807
|
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"),
|
|
808
808
|
method: "POST",
|
|
809
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
809
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
810
810
|
contentType: "application/json",
|
|
811
811
|
requestType: "json",
|
|
812
812
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -78,4 +78,6 @@ export interface CreateAgentRequest {
|
|
|
78
78
|
identityIds?: string[];
|
|
79
79
|
/** 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. */
|
|
80
80
|
messageBufferAutoclear?: boolean;
|
|
81
|
+
/** If set to True, memory management will move to a background agent thread. */
|
|
82
|
+
enableSleeptime?: boolean;
|
|
81
83
|
}
|
|
@@ -47,4 +47,6 @@ export interface UpdateAgent {
|
|
|
47
47
|
model?: string;
|
|
48
48
|
/** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
|
|
49
49
|
embedding?: string;
|
|
50
|
+
/** If set to True, memory management will move to a background agent thread. */
|
|
51
|
+
enableSleeptime?: boolean;
|
|
50
52
|
}
|
|
@@ -77,7 +77,7 @@ class Blocks {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -144,7 +144,7 @@ class Blocks {
|
|
|
144
144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
145
145
|
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)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
|
|
146
146
|
method: "PATCH",
|
|
147
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
147
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -210,7 +210,7 @@ class Blocks {
|
|
|
210
210
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
211
211
|
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)}/core-memory/blocks`),
|
|
212
212
|
method: "GET",
|
|
213
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
213
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
214
214
|
contentType: "application/json",
|
|
215
215
|
requestType: "json",
|
|
216
216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -276,7 +276,7 @@ class Blocks {
|
|
|
276
276
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
277
277
|
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)}/core-memory/blocks/attach/${encodeURIComponent(blockId)}`),
|
|
278
278
|
method: "PATCH",
|
|
279
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -342,7 +342,7 @@ class Blocks {
|
|
|
342
342
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
343
343
|
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)}/core-memory/blocks/detach/${encodeURIComponent(blockId)}`),
|
|
344
344
|
method: "PATCH",
|
|
345
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
345
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
346
346
|
contentType: "application/json",
|
|
347
347
|
requestType: "json",
|
|
348
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Context {
|
|
|
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/agents/${encodeURIComponent(agentId)}/context`),
|
|
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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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,
|
|
@@ -77,7 +77,7 @@ class CoreMemory {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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)}/core-memory`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -78,7 +78,7 @@ class MemoryVariables {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
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)}/core-memory/variables`),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
81
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -74,7 +74,7 @@ class Messages {
|
|
|
74
74
|
list(agentId_1) {
|
|
75
75
|
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
76
76
|
var _a, _b, _c;
|
|
77
|
-
const { after, before, limit, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg } = request;
|
|
77
|
+
const { after, before, limit, groupId, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg, } = request;
|
|
78
78
|
const _queryParams = {};
|
|
79
79
|
if (after != null) {
|
|
80
80
|
_queryParams["after"] = after;
|
|
@@ -85,6 +85,9 @@ class Messages {
|
|
|
85
85
|
if (limit != null) {
|
|
86
86
|
_queryParams["limit"] = limit.toString();
|
|
87
87
|
}
|
|
88
|
+
if (groupId != null) {
|
|
89
|
+
_queryParams["group_id"] = groupId;
|
|
90
|
+
}
|
|
88
91
|
if (useAssistantMessage != null) {
|
|
89
92
|
_queryParams["use_assistant_message"] = useAssistantMessage.toString();
|
|
90
93
|
}
|
|
@@ -97,7 +100,7 @@ class Messages {
|
|
|
97
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
98
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/agents/${encodeURIComponent(agentId)}/messages`),
|
|
99
102
|
method: "GET",
|
|
100
|
-
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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
101
104
|
contentType: "application/json",
|
|
102
105
|
queryParameters: _queryParams,
|
|
103
106
|
requestType: "json",
|
|
@@ -173,7 +176,7 @@ class Messages {
|
|
|
173
176
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
174
177
|
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)}/messages`),
|
|
175
178
|
method: "POST",
|
|
176
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
179
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
177
180
|
contentType: "application/json",
|
|
178
181
|
requestType: "json",
|
|
179
182
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +246,7 @@ class Messages {
|
|
|
243
246
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
244
247
|
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)}/messages/${encodeURIComponent(messageId)}`),
|
|
245
248
|
method: "PATCH",
|
|
246
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
249
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
247
250
|
contentType: "application/json",
|
|
248
251
|
requestType: "json",
|
|
249
252
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +306,7 @@ class Messages {
|
|
|
303
306
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
304
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)}/messages/stream`),
|
|
305
308
|
method: "POST",
|
|
306
|
-
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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
307
310
|
contentType: "application/json",
|
|
308
311
|
requestType: "json",
|
|
309
312
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -390,7 +393,7 @@ class Messages {
|
|
|
390
393
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
391
394
|
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)}/messages/async`),
|
|
392
395
|
method: "POST",
|
|
393
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
396
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
394
397
|
contentType: "application/json",
|
|
395
398
|
requestType: "json",
|
|
396
399
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -94,7 +94,7 @@ class Passages {
|
|
|
94
94
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
95
95
|
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)}/archival-memory`),
|
|
96
96
|
method: "GET",
|
|
97
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
97
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
queryParameters: _queryParams,
|
|
100
100
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class Passages {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
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)}/archival-memory`),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -230,7 +230,7 @@ class Passages {
|
|
|
230
230
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
231
231
|
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)}/archival-memory/${encodeURIComponent(memoryId)}`),
|
|
232
232
|
method: "DELETE",
|
|
233
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
233
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
234
234
|
contentType: "application/json",
|
|
235
235
|
requestType: "json",
|
|
236
236
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class Sources {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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)}/sources/attach/${encodeURIComponent(sourceId)}`),
|
|
79
79
|
method: "PATCH",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -143,7 +143,7 @@ class Sources {
|
|
|
143
143
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
144
144
|
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)}/sources/detach/${encodeURIComponent(sourceId)}`),
|
|
145
145
|
method: "PATCH",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -208,7 +208,7 @@ class Sources {
|
|
|
208
208
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
209
209
|
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)}/sources`),
|
|
210
210
|
method: "GET",
|
|
211
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
211
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
requestType: "json",
|
|
214
214
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -96,7 +96,7 @@ class Templates {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
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)}/version-template`),
|
|
98
98
|
method: "POST",
|
|
99
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class Templates {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
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)}/migrate`),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -236,7 +236,7 @@ class Templates {
|
|
|
236
236
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
237
237
|
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)}/template`),
|
|
238
238
|
method: "POST",
|
|
239
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
239
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
requestType: "json",
|
|
242
242
|
body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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/agents/${encodeURIComponent(agentId)}/tools`),
|
|
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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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,
|
|
@@ -142,7 +142,7 @@ class Tools {
|
|
|
142
142
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
143
143
|
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)}/tools/attach/${encodeURIComponent(toolId)}`),
|
|
144
144
|
method: "PATCH",
|
|
145
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
145
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -208,7 +208,7 @@ class Tools {
|
|
|
208
208
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
209
209
|
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)}/tools/detach/${encodeURIComponent(toolId)}`),
|
|
210
210
|
method: "PATCH",
|
|
211
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
211
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
requestType: "json",
|
|
214
214
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type AgentsSearchRequestSearchItem = Letta.AgentsSearchRequestSearchItemZero | Letta.AgentsSearchRequestSearchItemOne | Letta.
|
|
5
|
+
export type AgentsSearchRequestSearchItem = Letta.AgentsSearchRequestSearchItemZero | Letta.AgentsSearchRequestSearchItemOne | Letta.AgentsSearchRequestSearchItemTwo | Letta.AgentsSearchRequestSearchItemOperator;
|
|
@@ -3,6 +3,7 @@ export * from "./UpdateAgentToolRulesItem";
|
|
|
3
3
|
export * from "./AgentsSearchRequestSearchItemZero";
|
|
4
4
|
export * from "./AgentsSearchRequestSearchItemOneOperator";
|
|
5
5
|
export * from "./AgentsSearchRequestSearchItemOne";
|
|
6
|
-
export * from "./
|
|
6
|
+
export * from "./AgentsSearchRequestSearchItemTwo";
|
|
7
|
+
export * from "./AgentsSearchRequestSearchItemOperator";
|
|
7
8
|
export * from "./AgentsSearchRequestSearchItem";
|
|
8
9
|
export * from "./AgentsSearchResponse";
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./UpdateAgentToolRulesItem"), exports);
|
|
|
19
19
|
__exportStar(require("./AgentsSearchRequestSearchItemZero"), exports);
|
|
20
20
|
__exportStar(require("./AgentsSearchRequestSearchItemOneOperator"), exports);
|
|
21
21
|
__exportStar(require("./AgentsSearchRequestSearchItemOne"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./AgentsSearchRequestSearchItemTwo"), exports);
|
|
23
|
+
__exportStar(require("./AgentsSearchRequestSearchItemOperator"), exports);
|
|
23
24
|
__exportStar(require("./AgentsSearchRequestSearchItem"), exports);
|
|
24
25
|
__exportStar(require("./AgentsSearchResponse"), exports);
|
|
@@ -96,7 +96,7 @@ class Blocks {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
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/blocks/"),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class Blocks {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
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/blocks/"),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -227,7 +227,7 @@ class Blocks {
|
|
|
227
227
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
228
228
|
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/blocks/${encodeURIComponent(blockId)}`),
|
|
229
229
|
method: "GET",
|
|
230
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
230
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
231
231
|
contentType: "application/json",
|
|
232
232
|
requestType: "json",
|
|
233
233
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -290,7 +290,7 @@ class Blocks {
|
|
|
290
290
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
291
291
|
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/blocks/${encodeURIComponent(blockId)}`),
|
|
292
292
|
method: "DELETE",
|
|
293
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
293
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
294
294
|
contentType: "application/json",
|
|
295
295
|
requestType: "json",
|
|
296
296
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -354,7 +354,7 @@ class Blocks {
|
|
|
354
354
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
355
355
|
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/blocks/${encodeURIComponent(blockId)}`),
|
|
356
356
|
method: "PATCH",
|
|
357
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
357
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
358
358
|
contentType: "application/json",
|
|
359
359
|
requestType: "json",
|
|
360
360
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -421,7 +421,7 @@ class Blocks {
|
|
|
421
421
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
422
422
|
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/blocks/${encodeURIComponent(blockId)}/agents`),
|
|
423
423
|
method: "GET",
|
|
424
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
424
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
|
|
425
425
|
contentType: "application/json",
|
|
426
426
|
requestType: "json",
|
|
427
427
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|