@letta-ai/letta-client 0.1.80 → 0.1.81
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 +13 -10
- package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -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 +5 -5
- 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/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +7 -7
- package/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
- package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.d.ts +4 -2
- package/api/resources/runs/client/Client.js +35 -11
- package/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
- package/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
- package/api/resources/runs/client/requests/index.d.ts +2 -0
- 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/AgentState.d.ts +2 -0
- package/api/types/AgentType.d.ts +2 -2
- package/api/types/AgentType.js +1 -1
- package/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
- package/api/types/AppAuthSchemeAuthMode.js +0 -1
- package/api/types/AssistantMessage.d.ts +1 -0
- package/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
- package/api/types/ChatCompletionAudioParamVoice.js +0 -11
- package/api/types/Group.d.ts +1 -1
- package/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/api/types/JobStatus.d.ts +3 -1
- package/api/types/JobStatus.js +2 -0
- package/api/types/ManagerType.d.ts +2 -2
- package/api/types/ManagerType.js +1 -1
- package/api/types/Message.d.ts +7 -7
- package/api/types/MessageCreate.d.ts +2 -0
- package/api/types/ReasoningMessage.d.ts +1 -0
- package/api/types/{BackgroundManager.d.ts → SleeptimeManager.d.ts} +3 -3
- package/api/types/SleeptimeManager.js +5 -0
- package/api/types/SystemMessage.d.ts +1 -0
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolReturnMessage.d.ts +1 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/UserMessage.d.ts +1 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/api/resources/agents/client/Client.js +13 -10
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -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 +5 -5
- 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/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +7 -7
- package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
- package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.d.ts +4 -2
- package/dist/api/resources/runs/client/Client.js +35 -11
- package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
- package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
- package/dist/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +2 -0
- 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/AgentState.d.ts +2 -0
- package/dist/api/types/AgentType.d.ts +2 -2
- package/dist/api/types/AgentType.js +1 -1
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
- package/dist/api/types/AppAuthSchemeAuthMode.js +0 -1
- package/dist/api/types/AssistantMessage.d.ts +1 -0
- package/dist/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
- package/dist/api/types/ChatCompletionAudioParamVoice.js +0 -11
- package/dist/api/types/Group.d.ts +1 -1
- package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/api/types/JobStatus.d.ts +3 -1
- package/dist/api/types/JobStatus.js +2 -0
- package/dist/api/types/ManagerType.d.ts +2 -2
- package/dist/api/types/ManagerType.js +1 -1
- package/dist/api/types/Message.d.ts +7 -7
- package/dist/api/types/MessageCreate.d.ts +2 -0
- package/dist/api/types/ReasoningMessage.d.ts +1 -0
- package/dist/api/types/{BackgroundManager.d.ts → SleeptimeManager.d.ts} +3 -3
- package/dist/api/types/SleeptimeManager.js +5 -0
- package/dist/api/types/SystemMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolReturnMessage.d.ts +1 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/UserMessage.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -2
- package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -2
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -2
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -2
- package/dist/serialization/types/AgentState.d.ts +1 -0
- package/dist/serialization/types/AgentState.js +1 -0
- package/dist/serialization/types/AgentType.d.ts +1 -1
- package/dist/serialization/types/AgentType.js +1 -1
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +0 -1
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
- package/dist/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
- package/dist/serialization/types/Group.d.ts +1 -1
- package/dist/serialization/types/Group.js +1 -1
- package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
- package/dist/serialization/types/JobStatus.d.ts +1 -1
- package/dist/serialization/types/JobStatus.js +1 -1
- package/dist/serialization/types/ManagerType.d.ts +1 -1
- package/dist/serialization/types/ManagerType.js +1 -1
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/MessageCreate.d.ts +1 -0
- package/dist/serialization/types/MessageCreate.js +1 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/ReasoningMessage.js +1 -0
- package/dist/serialization/types/SleeptimeManager.d.ts +14 -0
- package/dist/serialization/types/{BackgroundManager.js → SleeptimeManager.js} +4 -4
- package/dist/serialization/types/SystemMessage.d.ts +1 -0
- package/dist/serialization/types/SystemMessage.js +1 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +18 -2
- package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -2
- package/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -2
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -2
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -2
- package/serialization/types/AgentState.d.ts +1 -0
- package/serialization/types/AgentState.js +1 -0
- package/serialization/types/AgentType.d.ts +1 -1
- package/serialization/types/AgentType.js +1 -1
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/serialization/types/AppAuthSchemeAuthMode.js +0 -1
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
- package/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
- package/serialization/types/Group.d.ts +1 -1
- package/serialization/types/Group.js +1 -1
- package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/serialization/types/HiddenReasoningMessage.js +1 -0
- package/serialization/types/JobStatus.d.ts +1 -1
- package/serialization/types/JobStatus.js +1 -1
- package/serialization/types/ManagerType.d.ts +1 -1
- package/serialization/types/ManagerType.js +1 -1
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/MessageCreate.d.ts +1 -0
- package/serialization/types/MessageCreate.js +1 -0
- package/serialization/types/ReasoningMessage.d.ts +1 -0
- package/serialization/types/ReasoningMessage.js +1 -0
- package/serialization/types/SleeptimeManager.d.ts +14 -0
- package/serialization/types/{BackgroundManager.js → SleeptimeManager.js} +4 -4
- package/serialization/types/SystemMessage.d.ts +1 -0
- package/serialization/types/SystemMessage.js +1 -0
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/types/BackgroundManager.d.ts +0 -14
- package/serialization/types/BackgroundManager.d.ts +0 -14
- /package/api/{types/BackgroundManager.js → resources/runs/client/requests/ListActiveRunsRequest.js} +0 -0
- /package/{dist/api/types/BackgroundManager.js → api/resources/runs/client/requests/ListRunsRequest.js} +0 -0
|
@@ -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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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" }),
|
|
@@ -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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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" }),
|
|
@@ -616,7 +616,7 @@ class Tools {
|
|
|
616
616
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
617
617
|
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"),
|
|
618
618
|
method: "GET",
|
|
619
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
619
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
620
620
|
contentType: "application/json",
|
|
621
621
|
requestType: "json",
|
|
622
622
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -681,7 +681,7 @@ class Tools {
|
|
|
681
681
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
682
682
|
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`),
|
|
683
683
|
method: "GET",
|
|
684
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
684
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
685
685
|
contentType: "application/json",
|
|
686
686
|
requestType: "json",
|
|
687
687
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -746,7 +746,7 @@ class Tools {
|
|
|
746
746
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
747
747
|
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)}`),
|
|
748
748
|
method: "POST",
|
|
749
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
749
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
750
750
|
contentType: "application/json",
|
|
751
751
|
requestType: "json",
|
|
752
752
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -812,7 +812,7 @@ class Tools {
|
|
|
812
812
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
813
813
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
814
814
|
method: "GET",
|
|
815
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
815
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
816
816
|
contentType: "application/json",
|
|
817
817
|
requestType: "json",
|
|
818
818
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -881,7 +881,7 @@ class Tools {
|
|
|
881
881
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
882
882
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
883
883
|
method: "PUT",
|
|
884
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
884
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
885
885
|
contentType: "application/json",
|
|
886
886
|
requestType: "json",
|
|
887
887
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -947,7 +947,7 @@ class Tools {
|
|
|
947
947
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
948
948
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
949
949
|
method: "GET",
|
|
950
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
950
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
951
951
|
contentType: "application/json",
|
|
952
952
|
requestType: "json",
|
|
953
953
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1013,7 +1013,7 @@ class Tools {
|
|
|
1013
1013
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1014
1014
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1015
1015
|
method: "POST",
|
|
1016
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1016
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
1017
1017
|
contentType: "application/json",
|
|
1018
1018
|
requestType: "json",
|
|
1019
1019
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1078,7 +1078,7 @@ class Tools {
|
|
|
1078
1078
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1079
1079
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1080
1080
|
method: "DELETE",
|
|
1081
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1081
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
|
|
1082
1082
|
contentType: "application/json",
|
|
1083
1083
|
requestType: "json",
|
|
1084
1084
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
|
@@ -65,6 +65,8 @@ export interface AgentState {
|
|
|
65
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
|
+
/** If set to True, memory management will move to a background agent thread. */
|
|
69
|
+
enableSleeptime?: boolean;
|
|
68
70
|
/** The multi-agent group that this agent manages */
|
|
69
71
|
multiAgentGroup?: Letta.Group;
|
|
70
72
|
}
|
package/api/types/AgentType.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Enum to represent the type of agent.
|
|
6
6
|
*/
|
|
7
|
-
export type AgentType = "memgpt_agent" | "split_thread_agent" | "
|
|
7
|
+
export type AgentType = "memgpt_agent" | "split_thread_agent" | "sleeptime_agent";
|
|
8
8
|
export declare const AgentType: {
|
|
9
9
|
readonly MemgptAgent: "memgpt_agent";
|
|
10
10
|
readonly SplitThreadAgent: "split_thread_agent";
|
|
11
|
-
readonly
|
|
11
|
+
readonly SleeptimeAgent: "sleeptime_agent";
|
|
12
12
|
};
|
package/api/types/AgentType.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "GOOGLE_SERVICE_ACCOUNT" | "GOOGLEADS_AUTH" | "NO_AUTH" | "
|
|
4
|
+
export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "GOOGLE_SERVICE_ACCOUNT" | "GOOGLEADS_AUTH" | "NO_AUTH" | "CALCOM_AUTH";
|
|
5
5
|
export declare const AppAuthSchemeAuthMode: {
|
|
6
6
|
readonly Oauth2: "OAUTH2";
|
|
7
7
|
readonly Oauth1: "OAUTH1";
|
|
@@ -12,6 +12,5 @@ export declare const AppAuthSchemeAuthMode: {
|
|
|
12
12
|
readonly GoogleServiceAccount: "GOOGLE_SERVICE_ACCOUNT";
|
|
13
13
|
readonly GoogleadsAuth: "GOOGLEADS_AUTH";
|
|
14
14
|
readonly NoAuth: "NO_AUTH";
|
|
15
|
-
readonly ComposioLink: "COMPOSIO_LINK";
|
|
16
15
|
readonly CalcomAuth: "CALCOM_AUTH";
|
|
17
16
|
};
|
|
@@ -15,6 +15,7 @@ export interface AssistantMessage {
|
|
|
15
15
|
id: string;
|
|
16
16
|
date: Date;
|
|
17
17
|
name?: string;
|
|
18
|
+
otid?: string;
|
|
18
19
|
messageType: "assistant_message";
|
|
19
20
|
/** The message content sent by the agent (can be a string or an array of content parts) */
|
|
20
21
|
content: Letta.AssistantMessageContent;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ChatCompletionAudioParamVoice = "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse";
|
|
5
|
-
export declare const ChatCompletionAudioParamVoice: {
|
|
6
|
-
readonly Alloy: "alloy";
|
|
7
|
-
readonly Ash: "ash";
|
|
8
|
-
readonly Ballad: "ballad";
|
|
9
|
-
readonly Coral: "coral";
|
|
10
|
-
readonly Echo: "echo";
|
|
11
|
-
readonly Sage: "sage";
|
|
12
|
-
readonly Shimmer: "shimmer";
|
|
13
|
-
readonly Verse: "verse";
|
|
14
|
-
};
|
|
4
|
+
export type ChatCompletionAudioParamVoice = string | "alloy" | "ash" | "ballad" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer" | "verse";
|
|
@@ -3,14 +3,3 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ChatCompletionAudioParamVoice = void 0;
|
|
7
|
-
exports.ChatCompletionAudioParamVoice = {
|
|
8
|
-
Alloy: "alloy",
|
|
9
|
-
Ash: "ash",
|
|
10
|
-
Ballad: "ballad",
|
|
11
|
-
Coral: "coral",
|
|
12
|
-
Echo: "echo",
|
|
13
|
-
Sage: "sage",
|
|
14
|
-
Shimmer: "shimmer",
|
|
15
|
-
Verse: "verse",
|
|
16
|
-
};
|
package/api/types/Group.d.ts
CHANGED
package/api/types/JobStatus.d.ts
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Status of the job.
|
|
6
6
|
*/
|
|
7
|
-
export type JobStatus = "created" | "running" | "completed" | "failed" | "pending";
|
|
7
|
+
export type JobStatus = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled";
|
|
8
8
|
export declare const JobStatus: {
|
|
9
|
+
readonly NotStarted: "not_started";
|
|
9
10
|
readonly Created: "created";
|
|
10
11
|
readonly Running: "running";
|
|
11
12
|
readonly Completed: "completed";
|
|
12
13
|
readonly Failed: "failed";
|
|
13
14
|
readonly Pending: "pending";
|
|
15
|
+
readonly Cancelled: "cancelled";
|
|
14
16
|
};
|
package/api/types/JobStatus.js
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.JobStatus = void 0;
|
|
7
7
|
exports.JobStatus = {
|
|
8
|
+
NotStarted: "not_started",
|
|
8
9
|
Created: "created",
|
|
9
10
|
Running: "running",
|
|
10
11
|
Completed: "completed",
|
|
11
12
|
Failed: "failed",
|
|
12
13
|
Pending: "pending",
|
|
14
|
+
Cancelled: "cancelled",
|
|
13
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ManagerType = "round_robin" | "supervisor" | "dynamic" | "
|
|
4
|
+
export type ManagerType = "round_robin" | "supervisor" | "dynamic" | "sleeptime" | "swarm";
|
|
5
5
|
export declare const ManagerType: {
|
|
6
6
|
readonly RoundRobin: "round_robin";
|
|
7
7
|
readonly Supervisor: "supervisor";
|
|
8
8
|
readonly Dynamic: "dynamic";
|
|
9
|
-
readonly
|
|
9
|
+
readonly Sleeptime: "sleeptime";
|
|
10
10
|
readonly Swarm: "swarm";
|
|
11
11
|
};
|
package/api/types/ManagerType.js
CHANGED
package/api/types/Message.d.ts
CHANGED
|
@@ -28,19 +28,19 @@ export interface Message {
|
|
|
28
28
|
updatedAt?: Date;
|
|
29
29
|
/** The human-friendly ID of the Message */
|
|
30
30
|
id?: string;
|
|
31
|
-
/** The role of the participant. */
|
|
32
|
-
role: Letta.MessageRole;
|
|
33
|
-
/** The content of the message. */
|
|
34
|
-
content?: Letta.MessageContentItem[];
|
|
35
31
|
/** The unique identifier of the agent. */
|
|
36
32
|
agentId?: string;
|
|
37
33
|
/** The model used to make the function call. */
|
|
38
34
|
model?: string;
|
|
39
|
-
/** The
|
|
35
|
+
/** The role of the participant. */
|
|
36
|
+
role: Letta.MessageRole;
|
|
37
|
+
/** The content of the message. */
|
|
38
|
+
content?: Letta.MessageContentItem[];
|
|
39
|
+
/** For role user/assistant: the (optional) name of the participant. For role tool/function: the name of the function called. */
|
|
40
40
|
name?: string;
|
|
41
|
-
/** The list of tool calls requested. */
|
|
41
|
+
/** The list of tool calls requested. Only applicable for role assistant. */
|
|
42
42
|
toolCalls?: Letta.ChatCompletionMessageToolCall[];
|
|
43
|
-
/** The
|
|
43
|
+
/** The ID of the tool call. Only applicable for role tool. */
|
|
44
44
|
toolCallId?: string;
|
|
45
45
|
/** The id of the step that this message was created in. */
|
|
46
46
|
stepId?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
5
|
-
managerType: "
|
|
4
|
+
export interface SleeptimeManager {
|
|
5
|
+
managerType: "sleeptime";
|
|
6
6
|
/** */
|
|
7
7
|
managerAgentId: string;
|
|
8
8
|
/** */
|
|
9
|
-
|
|
9
|
+
sleeptimeAgentFrequency?: number;
|
|
10
10
|
}
|
package/api/types/ToolType.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
4
|
+
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
5
5
|
export declare const ToolType: {
|
|
6
6
|
readonly Custom: "custom";
|
|
7
7
|
readonly LettaCore: "letta_core";
|
|
8
8
|
readonly LettaMemoryCore: "letta_memory_core";
|
|
9
9
|
readonly LettaMultiAgentCore: "letta_multi_agent_core";
|
|
10
|
+
readonly LettaSleeptimeCore: "letta_sleeptime_core";
|
|
10
11
|
readonly ExternalComposio: "external_composio";
|
|
11
12
|
readonly ExternalLangchain: "external_langchain";
|
|
12
13
|
readonly ExternalMcp: "external_mcp";
|
package/api/types/ToolType.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.ToolType = {
|
|
|
9
9
|
LettaCore: "letta_core",
|
|
10
10
|
LettaMemoryCore: "letta_memory_core",
|
|
11
11
|
LettaMultiAgentCore: "letta_multi_agent_core",
|
|
12
|
+
LettaSleeptimeCore: "letta_sleeptime_core",
|
|
12
13
|
ExternalComposio: "external_composio",
|
|
13
14
|
ExternalLangchain: "external_langchain",
|
|
14
15
|
ExternalMcp: "external_mcp",
|
|
@@ -15,6 +15,7 @@ export interface UserMessage {
|
|
|
15
15
|
id: string;
|
|
16
16
|
date: Date;
|
|
17
17
|
name?: string;
|
|
18
|
+
otid?: string;
|
|
18
19
|
messageType: "user_message";
|
|
19
20
|
/** The message content sent by the user (can be a string or an array of multi-modal content parts) */
|
|
20
21
|
content: Letta.UserMessageContent;
|
package/api/types/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export * from "./Audio";
|
|
|
20
20
|
export * from "./AuthRequest";
|
|
21
21
|
export * from "./AuthResponse";
|
|
22
22
|
export * from "./AuthSchemeField";
|
|
23
|
-
export * from "./BackgroundManager";
|
|
24
23
|
export * from "./BaseToolRuleSchema";
|
|
25
24
|
export * from "./Block";
|
|
26
25
|
export * from "./BlockUpdate";
|
|
@@ -161,6 +160,7 @@ export * from "./SandboxEnvironmentVariable";
|
|
|
161
160
|
export * from "./SandboxEnvironmentVariableCreate";
|
|
162
161
|
export * from "./SandboxEnvironmentVariableUpdate";
|
|
163
162
|
export * from "./SandboxType";
|
|
163
|
+
export * from "./SleeptimeManager";
|
|
164
164
|
export * from "./Source";
|
|
165
165
|
export * from "./StdioServerConfig";
|
|
166
166
|
export * from "./Step";
|
package/api/types/index.js
CHANGED
|
@@ -36,7 +36,6 @@ __exportStar(require("./Audio"), exports);
|
|
|
36
36
|
__exportStar(require("./AuthRequest"), exports);
|
|
37
37
|
__exportStar(require("./AuthResponse"), exports);
|
|
38
38
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
39
|
-
__exportStar(require("./BackgroundManager"), exports);
|
|
40
39
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
41
40
|
__exportStar(require("./Block"), exports);
|
|
42
41
|
__exportStar(require("./BlockUpdate"), exports);
|
|
@@ -177,6 +176,7 @@ __exportStar(require("./SandboxEnvironmentVariable"), exports);
|
|
|
177
176
|
__exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
|
|
178
177
|
__exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
|
|
179
178
|
__exportStar(require("./SandboxType"), exports);
|
|
179
|
+
__exportStar(require("./SleeptimeManager"), exports);
|
|
180
180
|
__exportStar(require("./Source"), exports);
|
|
181
181
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
182
182
|
__exportStar(require("./Step"), exports);
|