@letta-ai/letta-client 0.1.184 → 0.1.186
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/README.md +1 -1
- package/api/resources/agents/client/Client.js +11 -11
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.d.ts +2 -0
- package/api/resources/runs/client/Client.js +81 -4
- package/api/resources/runs/client/requests/RetrieveStreamRequest.d.ts +17 -0
- package/api/resources/runs/client/requests/RetrieveStreamRequest.js +5 -0
- package/api/resources/runs/client/requests/index.d.ts +1 -0
- package/api/resources/runs/index.d.ts +1 -0
- package/api/resources/runs/index.js +1 -0
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/runs/types/LettaStreamingResponse.d.ts +5 -0
- package/api/resources/runs/types/LettaStreamingResponse.js +5 -0
- package/api/resources/runs/types/index.d.ts +1 -0
- package/api/resources/runs/types/index.js +17 -0
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +8 -8
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +1 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AssistantMessage.d.ts +1 -0
- package/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/api/types/ReasoningMessage.d.ts +1 -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/UserMessage.d.ts +1 -0
- package/dist/api/resources/agents/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.d.ts +2 -0
- package/dist/api/resources/runs/client/Client.js +81 -4
- package/dist/api/resources/runs/client/requests/RetrieveStreamRequest.d.ts +17 -0
- package/dist/api/resources/runs/client/requests/RetrieveStreamRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/index.d.ts +1 -0
- package/dist/api/resources/runs/index.js +1 -0
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/runs/types/LettaStreamingResponse.d.ts +5 -0
- package/dist/api/resources/runs/types/LettaStreamingResponse.js +5 -0
- package/dist/api/resources/runs/types/index.d.ts +1 -0
- package/dist/api/resources/runs/types/index.js +17 -0
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +8 -8
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +1 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AssistantMessage.d.ts +1 -0
- package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/api/types/ReasoningMessage.d.ts +1 -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/UserMessage.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +3 -1
- package/dist/serialization/resources/index.js +4 -2
- package/dist/serialization/resources/runs/client/index.d.ts +1 -0
- package/dist/serialization/resources/runs/client/index.js +4 -0
- package/dist/serialization/resources/runs/client/requests/RetrieveStreamRequest.d.ts +15 -0
- package/dist/serialization/resources/runs/client/requests/RetrieveStreamRequest.js +46 -0
- package/dist/serialization/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/runs/client/requests/index.js +5 -0
- package/dist/serialization/resources/runs/index.d.ts +1 -0
- package/dist/serialization/resources/runs/index.js +1 -0
- package/dist/serialization/resources/runs/types/LettaStreamingResponse.d.ts +19 -0
- package/dist/serialization/resources/runs/types/LettaStreamingResponse.js +60 -0
- package/dist/serialization/resources/runs/types/index.d.ts +1 -0
- package/dist/serialization/resources/runs/types/index.js +17 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +1 -0
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/ReasoningMessage.js +1 -0
- 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/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +59 -0
- package/serialization/resources/index.d.ts +3 -1
- package/serialization/resources/index.js +4 -2
- package/serialization/resources/runs/client/index.d.ts +1 -0
- package/serialization/resources/runs/client/index.js +4 -0
- package/serialization/resources/runs/client/requests/RetrieveStreamRequest.d.ts +15 -0
- package/serialization/resources/runs/client/requests/RetrieveStreamRequest.js +46 -0
- package/serialization/resources/runs/client/requests/index.d.ts +1 -0
- package/serialization/resources/runs/client/requests/index.js +5 -0
- package/serialization/resources/runs/index.d.ts +1 -0
- package/serialization/resources/runs/index.js +1 -0
- package/serialization/resources/runs/types/LettaStreamingResponse.d.ts +19 -0
- package/serialization/resources/runs/types/LettaStreamingResponse.js +60 -0
- package/serialization/resources/runs/types/index.d.ts +1 -0
- package/serialization/resources/runs/types/index.js +17 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +1 -0
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/serialization/types/HiddenReasoningMessage.js +1 -0
- package/serialization/types/ReasoningMessage.d.ts +1 -0
- package/serialization/types/ReasoningMessage.js +1 -0
- 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/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class Tools {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
309
309
|
? yield core.Supplier.get(this._options.project)
|
|
310
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
310
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
queryParameters: _queryParams,
|
|
313
313
|
requestType: "json",
|
|
@@ -395,7 +395,7 @@ class Tools {
|
|
|
395
395
|
method: "GET",
|
|
396
396
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
397
397
|
? yield core.Supplier.get(this._options.project)
|
|
398
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
398
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
queryParameters: _queryParams,
|
|
401
401
|
requestType: "json",
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
method: "POST",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
requestType: "json",
|
|
480
480
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -553,7 +553,7 @@ class Tools {
|
|
|
553
553
|
method: "PUT",
|
|
554
554
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
555
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
556
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -629,7 +629,7 @@ class Tools {
|
|
|
629
629
|
method: "POST",
|
|
630
630
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
631
631
|
? yield core.Supplier.get(this._options.project)
|
|
632
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
632
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
633
633
|
contentType: "application/json",
|
|
634
634
|
requestType: "json",
|
|
635
635
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -710,7 +710,7 @@ class Tools {
|
|
|
710
710
|
method: "POST",
|
|
711
711
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
712
712
|
? yield core.Supplier.get(this._options.project)
|
|
713
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
713
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
requestType: "json",
|
|
716
716
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -788,7 +788,7 @@ class Tools {
|
|
|
788
788
|
method: "GET",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
requestType: "json",
|
|
794
794
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -864,7 +864,7 @@ class Tools {
|
|
|
864
864
|
method: "GET",
|
|
865
865
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
866
866
|
? yield core.Supplier.get(this._options.project)
|
|
867
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
867
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -940,7 +940,7 @@ class Tools {
|
|
|
940
940
|
method: "POST",
|
|
941
941
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
942
942
|
? yield core.Supplier.get(this._options.project)
|
|
943
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
943
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
944
944
|
contentType: "application/json",
|
|
945
945
|
requestType: "json",
|
|
946
946
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1017,7 +1017,7 @@ class Tools {
|
|
|
1017
1017
|
method: "GET",
|
|
1018
1018
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1019
1019
|
? yield core.Supplier.get(this._options.project)
|
|
1020
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1020
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1021
1021
|
contentType: "application/json",
|
|
1022
1022
|
requestType: "json",
|
|
1023
1023
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1097,7 +1097,7 @@ class Tools {
|
|
|
1097
1097
|
method: "PUT",
|
|
1098
1098
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1099
1099
|
? yield core.Supplier.get(this._options.project)
|
|
1100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1101
1101
|
contentType: "application/json",
|
|
1102
1102
|
requestType: "json",
|
|
1103
1103
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1174,7 +1174,7 @@ class Tools {
|
|
|
1174
1174
|
method: "GET",
|
|
1175
1175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1176
1176
|
? yield core.Supplier.get(this._options.project)
|
|
1177
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1177
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1178
1178
|
contentType: "application/json",
|
|
1179
1179
|
requestType: "json",
|
|
1180
1180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1251,7 +1251,7 @@ class Tools {
|
|
|
1251
1251
|
method: "POST",
|
|
1252
1252
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1253
1253
|
? yield core.Supplier.get(this._options.project)
|
|
1254
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1254
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1255
1255
|
contentType: "application/json",
|
|
1256
1256
|
requestType: "json",
|
|
1257
1257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1327,7 +1327,7 @@ class Tools {
|
|
|
1327
1327
|
method: "DELETE",
|
|
1328
1328
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1329
1329
|
? yield core.Supplier.get(this._options.project)
|
|
1330
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1330
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1331
1331
|
contentType: "application/json",
|
|
1332
1332
|
requestType: "json",
|
|
1333
1333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1404,7 +1404,7 @@ class Tools {
|
|
|
1404
1404
|
method: "PATCH",
|
|
1405
1405
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1406
1406
|
? yield core.Supplier.get(this._options.project)
|
|
1407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1408
1408
|
contentType: "application/json",
|
|
1409
1409
|
requestType: "json",
|
|
1410
1410
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1486,7 +1486,7 @@ class Tools {
|
|
|
1486
1486
|
method: "POST",
|
|
1487
1487
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1488
1488
|
? yield core.Supplier.get(this._options.project)
|
|
1489
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1489
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1490
1490
|
contentType: "application/json",
|
|
1491
1491
|
requestType: "json",
|
|
1492
1492
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1547,7 +1547,7 @@ class Tools {
|
|
|
1547
1547
|
method: "POST",
|
|
1548
1548
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1549
1549
|
? yield core.Supplier.get(this._options.project)
|
|
1550
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1550
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "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),
|
|
1551
1551
|
contentType: "application/json",
|
|
1552
1552
|
requestType: "json",
|
|
1553
1553
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.186", "User-Agent": "@letta-ai/letta-client/0.1.186", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -4,6 +4,8 @@ export * as agents from "./agents";
|
|
|
4
4
|
export * from "./agents/types";
|
|
5
5
|
export * as groups from "./groups";
|
|
6
6
|
export * from "./groups/types";
|
|
7
|
+
export * as runs from "./runs";
|
|
8
|
+
export * from "./runs/types";
|
|
7
9
|
export * as steps from "./steps";
|
|
8
10
|
export * from "./steps/types";
|
|
9
11
|
export * as templates from "./templates";
|
|
@@ -20,7 +22,6 @@ export * as embeddingModels from "./embeddingModels";
|
|
|
20
22
|
export * as blocks from "./blocks";
|
|
21
23
|
export * as jobs from "./jobs";
|
|
22
24
|
export * as providers from "./providers";
|
|
23
|
-
export * as runs from "./runs";
|
|
24
25
|
export * as tags from "./tags";
|
|
25
26
|
export * as batches from "./batches";
|
|
26
27
|
export * as voice from "./voice";
|
|
@@ -29,6 +30,7 @@ export * from "./agents/client/requests";
|
|
|
29
30
|
export * from "./groups/client/requests";
|
|
30
31
|
export * from "./identities/client/requests";
|
|
31
32
|
export * from "./providers/client/requests";
|
|
33
|
+
export * from "./runs/client/requests";
|
|
32
34
|
export * from "./batches/client/requests";
|
|
33
35
|
export * from "./templates/client/requests";
|
|
34
36
|
export * from "./clientSideAccessTokens/client/requests";
|
|
@@ -36,13 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.voice = exports.batches = exports.tags = exports.
|
|
39
|
+
exports.voice = exports.batches = exports.tags = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.folders = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.steps = exports.runs = exports.groups = exports.agents = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
43
43
|
__exportStar(require("./agents/types"), exports);
|
|
44
44
|
exports.groups = __importStar(require("./groups"));
|
|
45
45
|
__exportStar(require("./groups/types"), exports);
|
|
46
|
+
exports.runs = __importStar(require("./runs"));
|
|
47
|
+
__exportStar(require("./runs/types"), exports);
|
|
46
48
|
exports.steps = __importStar(require("./steps"));
|
|
47
49
|
__exportStar(require("./steps/types"), exports);
|
|
48
50
|
exports.templates = __importStar(require("./templates"));
|
|
@@ -59,7 +61,6 @@ exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
|
59
61
|
exports.blocks = __importStar(require("./blocks"));
|
|
60
62
|
exports.jobs = __importStar(require("./jobs"));
|
|
61
63
|
exports.providers = __importStar(require("./providers"));
|
|
62
|
-
exports.runs = __importStar(require("./runs"));
|
|
63
64
|
exports.tags = __importStar(require("./tags"));
|
|
64
65
|
exports.batches = __importStar(require("./batches"));
|
|
65
66
|
exports.voice = __importStar(require("./voice"));
|
|
@@ -68,6 +69,7 @@ __exportStar(require("./agents/client/requests"), exports);
|
|
|
68
69
|
__exportStar(require("./groups/client/requests"), exports);
|
|
69
70
|
__exportStar(require("./identities/client/requests"), exports);
|
|
70
71
|
__exportStar(require("./providers/client/requests"), exports);
|
|
72
|
+
__exportStar(require("./runs/client/requests"), exports);
|
|
71
73
|
__exportStar(require("./batches/client/requests"), exports);
|
|
72
74
|
__exportStar(require("./templates/client/requests"), exports);
|
|
73
75
|
__exportStar(require("./clientSideAccessTokens/client/requests"), exports);
|
|
@@ -32,7 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.listActive = exports.list = void 0;
|
|
37
40
|
exports.list = __importStar(require("./list"));
|
|
38
41
|
exports.listActive = __importStar(require("./listActive"));
|
|
42
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const RetrieveStreamRequest: core.serialization.Schema<serializers.RetrieveStreamRequest.Raw, Letta.RetrieveStreamRequest>;
|
|
8
|
+
export declare namespace RetrieveStreamRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
starting_after?: number | null;
|
|
11
|
+
include_pings?: boolean | null;
|
|
12
|
+
poll_interval?: number | null;
|
|
13
|
+
batch_size?: number | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RetrieveStreamRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
exports.RetrieveStreamRequest = core.serialization.object({
|
|
42
|
+
startingAfter: core.serialization.property("starting_after", core.serialization.number().optional()),
|
|
43
|
+
includePings: core.serialization.property("include_pings", core.serialization.boolean().optional()),
|
|
44
|
+
pollInterval: core.serialization.property("poll_interval", core.serialization.number().optional()),
|
|
45
|
+
batchSize: core.serialization.property("batch_size", core.serialization.number().optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RetrieveStreamRequest } from "./RetrieveStreamRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetrieveStreamRequest = void 0;
|
|
4
|
+
var RetrieveStreamRequest_1 = require("./RetrieveStreamRequest");
|
|
5
|
+
Object.defineProperty(exports, "RetrieveStreamRequest", { enumerable: true, get: function () { return RetrieveStreamRequest_1.RetrieveStreamRequest; } });
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { SystemMessage } from "../../../types/SystemMessage";
|
|
8
|
+
import { UserMessage } from "../../../types/UserMessage";
|
|
9
|
+
import { ReasoningMessage } from "../../../types/ReasoningMessage";
|
|
10
|
+
import { ToolCallMessage } from "../../../types/ToolCallMessage";
|
|
11
|
+
import { ToolReturnMessage } from "../../../types/ToolReturnMessage";
|
|
12
|
+
import { AssistantMessage } from "../../../types/AssistantMessage";
|
|
13
|
+
import { LettaPing } from "../../../types/LettaPing";
|
|
14
|
+
import { LettaStopReason } from "../../../types/LettaStopReason";
|
|
15
|
+
import { LettaUsageStatistics } from "../../../types/LettaUsageStatistics";
|
|
16
|
+
export declare const LettaStreamingResponse: core.serialization.Schema<serializers.LettaStreamingResponse.Raw, Letta.LettaStreamingResponse>;
|
|
17
|
+
export declare namespace LettaStreamingResponse {
|
|
18
|
+
type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaPing.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.LettaStreamingResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const SystemMessage_1 = require("../../../types/SystemMessage");
|
|
42
|
+
const UserMessage_1 = require("../../../types/UserMessage");
|
|
43
|
+
const ReasoningMessage_1 = require("../../../types/ReasoningMessage");
|
|
44
|
+
const ToolCallMessage_1 = require("../../../types/ToolCallMessage");
|
|
45
|
+
const ToolReturnMessage_1 = require("../../../types/ToolReturnMessage");
|
|
46
|
+
const AssistantMessage_1 = require("../../../types/AssistantMessage");
|
|
47
|
+
const LettaPing_1 = require("../../../types/LettaPing");
|
|
48
|
+
const LettaStopReason_1 = require("../../../types/LettaStopReason");
|
|
49
|
+
const LettaUsageStatistics_1 = require("../../../types/LettaUsageStatistics");
|
|
50
|
+
exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
|
|
51
|
+
SystemMessage_1.SystemMessage,
|
|
52
|
+
UserMessage_1.UserMessage,
|
|
53
|
+
ReasoningMessage_1.ReasoningMessage,
|
|
54
|
+
ToolCallMessage_1.ToolCallMessage,
|
|
55
|
+
ToolReturnMessage_1.ToolReturnMessage,
|
|
56
|
+
AssistantMessage_1.AssistantMessage,
|
|
57
|
+
LettaPing_1.LettaPing,
|
|
58
|
+
LettaStopReason_1.LettaStopReason,
|
|
59
|
+
LettaUsageStatistics_1.LettaUsageStatistics,
|
|
60
|
+
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LettaStreamingResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./LettaStreamingResponse"), exports);
|
|
@@ -47,4 +47,5 @@ exports.TemplatesGetTemplateSnapshotResponseAgentsItemProperties = core.serializ
|
|
|
47
47
|
maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
|
|
48
48
|
messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
|
|
49
49
|
perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
|
|
50
|
+
temperature: core.serialization.number().optional(),
|
|
50
51
|
});
|
|
@@ -49,5 +49,6 @@ exports.AssistantMessage = core.serialization.object({
|
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
50
|
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
51
51
|
seqId: core.serialization.property("seq_id", core.serialization.number().optional()),
|
|
52
|
+
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
52
53
|
content: AssistantMessageContent_1.AssistantMessageContent,
|
|
53
54
|
});
|
|
@@ -49,6 +49,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
|
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
50
|
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
51
51
|
seqId: core.serialization.property("seq_id", core.serialization.number().optional()),
|
|
52
|
+
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
52
53
|
state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
|
|
53
54
|
hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
|
|
54
55
|
});
|