@letta-ai/letta-client 0.0.68641 → 0.0.68643
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 +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 +9 -9
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/batches/client/Client.d.ts +6 -3
- package/api/resources/batches/client/Client.js +34 -11
- package/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
- package/api/resources/batches/client/requests/index.d.ts +1 -0
- package/api/resources/batches/index.d.ts +1 -0
- package/api/resources/batches/index.js +1 -0
- package/api/resources/batches/resources/messages/client/Client.js +5 -2
- package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
- package/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
- package/api/resources/batches/types/index.d.ts +1 -0
- package/api/resources/batches/types/index.js +17 -0
- 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 +4 -2
- package/api/resources/index.js +5 -3
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +6 -4
- package/api/resources/providers/client/Client.js +11 -9
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +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.d.ts +6 -13
- package/api/resources/steps/client/Client.js +14 -80
- package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +3 -10
- package/api/resources/steps/resources/feedback/client/requests/{FeedbackCreateRequest.d.ts → AddFeedbackRequest.d.ts} +2 -1
- package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/api/resources/steps/resources/index.d.ts +2 -0
- package/api/resources/steps/resources/index.js +3 -1
- package/api/resources/steps/resources/metrics/client/Client.d.ts +49 -0
- package/api/resources/steps/resources/metrics/client/Client.js +145 -0
- package/api/resources/steps/resources/metrics/client/index.d.ts +1 -0
- package/api/resources/steps/resources/metrics/client/index.js +2 -0
- package/api/resources/steps/resources/metrics/index.d.ts +1 -0
- package/api/resources/steps/resources/metrics/index.js +17 -0
- package/api/resources/steps/resources/trace/client/Client.d.ts +47 -0
- package/api/resources/steps/resources/trace/client/Client.js +143 -0
- package/api/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/api/resources/steps/resources/trace/client/index.js +2 -0
- package/api/resources/steps/resources/trace/index.d.ts +1 -0
- package/api/resources/steps/resources/trace/index.js +17 -0
- package/api/resources/tags/client/Client.d.ts +1 -1
- package/api/resources/tags/client/Client.js +15 -4
- package/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
- package/api/resources/tags/index.d.ts +1 -0
- package/api/resources/tags/index.js +1 -0
- package/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
- package/api/resources/tags/types/TagsListRequestOrder.js +10 -0
- package/api/resources/tags/types/index.d.ts +1 -0
- package/api/resources/tags/types/index.js +17 -0
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- 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 +9 -9
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/batches/client/Client.d.ts +6 -3
- package/dist/api/resources/batches/client/Client.js +34 -11
- package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
- package/dist/api/resources/batches/client/requests/BatchesListRequest.js +5 -0
- package/dist/api/resources/batches/client/requests/index.d.ts +1 -0
- package/dist/api/resources/batches/index.d.ts +1 -0
- package/dist/api/resources/batches/index.js +1 -0
- package/dist/api/resources/batches/resources/messages/client/Client.js +5 -2
- package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/dist/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
- package/dist/api/resources/batches/types/index.d.ts +1 -0
- package/dist/api/resources/batches/types/index.js +17 -0
- 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 +4 -2
- package/dist/api/resources/index.js +5 -3
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +6 -4
- package/dist/api/resources/providers/client/Client.js +11 -9
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +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.d.ts +6 -13
- package/dist/api/resources/steps/client/Client.js +14 -80
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -10
- package/dist/api/resources/steps/resources/feedback/client/requests/{FeedbackCreateRequest.d.ts → AddFeedbackRequest.d.ts} +2 -1
- package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +5 -0
- package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/dist/api/resources/steps/resources/index.d.ts +2 -0
- package/dist/api/resources/steps/resources/index.js +3 -1
- package/dist/api/resources/steps/resources/metrics/client/Client.d.ts +49 -0
- package/dist/api/resources/steps/resources/metrics/client/Client.js +145 -0
- package/dist/api/resources/steps/resources/metrics/client/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/metrics/client/index.js +2 -0
- package/dist/api/resources/steps/resources/metrics/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/metrics/index.js +17 -0
- package/dist/api/resources/steps/resources/trace/client/Client.d.ts +47 -0
- package/dist/api/resources/steps/resources/trace/client/Client.js +143 -0
- package/dist/api/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/trace/client/index.js +2 -0
- package/dist/api/resources/steps/resources/trace/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/trace/index.js +17 -0
- package/dist/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/api/resources/tags/client/Client.js +15 -4
- package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
- package/dist/api/resources/tags/index.d.ts +1 -0
- package/dist/api/resources/tags/index.js +1 -0
- package/dist/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/tags/types/TagsListRequestOrder.js +10 -0
- package/dist/api/resources/tags/types/index.d.ts +1 -0
- package/dist/api/resources/tags/types/index.js +17 -0
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/batches/index.d.ts +1 -0
- package/dist/serialization/resources/batches/index.js +1 -0
- package/dist/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
- package/dist/serialization/resources/batches/types/index.d.ts +1 -0
- package/dist/serialization/resources/batches/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +4 -2
- package/dist/serialization/resources/index.js +5 -3
- package/dist/serialization/resources/steps/index.d.ts +1 -0
- package/dist/serialization/resources/steps/index.js +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/index.js +17 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
- package/dist/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/index.js +17 -0
- package/dist/serialization/resources/steps/resources/index.d.ts +3 -0
- package/dist/serialization/resources/steps/resources/index.js +42 -0
- package/dist/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/trace/client/index.js +37 -0
- package/dist/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
- package/dist/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
- package/dist/serialization/resources/steps/resources/trace/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/trace/index.js +17 -0
- package/dist/serialization/resources/tags/index.d.ts +1 -0
- package/dist/serialization/resources/tags/index.js +1 -0
- package/dist/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
- package/dist/serialization/resources/tags/types/index.d.ts +1 -0
- package/dist/serialization/resources/tags/types/index.js +17 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +149 -72
- package/serialization/resources/batches/index.d.ts +1 -0
- package/serialization/resources/batches/index.js +1 -0
- package/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
- package/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
- package/serialization/resources/batches/types/index.d.ts +1 -0
- package/serialization/resources/batches/types/index.js +17 -0
- package/serialization/resources/index.d.ts +4 -2
- package/serialization/resources/index.js +5 -3
- package/serialization/resources/steps/index.d.ts +1 -0
- package/serialization/resources/steps/index.js +1 -0
- package/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/index.js +17 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
- package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
- package/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/index.js +17 -0
- package/serialization/resources/steps/resources/index.d.ts +3 -0
- package/serialization/resources/steps/resources/index.js +42 -0
- package/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/trace/client/index.js +37 -0
- package/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
- package/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
- package/serialization/resources/steps/resources/trace/index.d.ts +1 -0
- package/serialization/resources/steps/resources/trace/index.js +17 -0
- package/serialization/resources/tags/index.d.ts +1 -0
- package/serialization/resources/tags/index.js +1 -0
- package/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
- package/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
- package/serialization/resources/tags/types/index.d.ts +1 -0
- package/serialization/resources/tags/types/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{steps/resources/feedback/client/requests/FeedbackCreateRequest.js → batches/client/requests/BatchesListRequest.js} +0 -0
- /package/{dist/api/resources/steps/resources/feedback/client/requests/FeedbackCreateRequest.js → api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js} +0 -0
|
@@ -31,7 +31,7 @@ export declare class Providers {
|
|
|
31
31
|
protected readonly _options: Providers.Options;
|
|
32
32
|
constructor(_options?: Providers.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Get a list of all custom providers
|
|
34
|
+
* Get a list of all custom providers.
|
|
35
35
|
*
|
|
36
36
|
* @param {Letta.ProvidersListRequest} request
|
|
37
37
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,7 +44,7 @@ export declare class Providers {
|
|
|
44
44
|
list(request?: Letta.ProvidersListRequest, requestOptions?: Providers.RequestOptions): core.HttpResponsePromise<Letta.Provider[]>;
|
|
45
45
|
private __list;
|
|
46
46
|
/**
|
|
47
|
-
* Create a new custom provider
|
|
47
|
+
* Create a new custom provider.
|
|
48
48
|
*
|
|
49
49
|
* @param {Letta.ProviderCreate} request
|
|
50
50
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -61,7 +61,7 @@ export declare class Providers {
|
|
|
61
61
|
create(request: Letta.ProviderCreate, requestOptions?: Providers.RequestOptions): core.HttpResponsePromise<Letta.Provider>;
|
|
62
62
|
private __create;
|
|
63
63
|
/**
|
|
64
|
-
* Delete an existing custom provider
|
|
64
|
+
* Delete an existing custom provider.
|
|
65
65
|
*
|
|
66
66
|
* @param {string} providerId
|
|
67
67
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class Providers {
|
|
|
74
74
|
delete(providerId: string, requestOptions?: Providers.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
75
75
|
private __delete;
|
|
76
76
|
/**
|
|
77
|
-
* Update an existing custom provider
|
|
77
|
+
* Update an existing custom provider.
|
|
78
78
|
*
|
|
79
79
|
* @param {string} providerId
|
|
80
80
|
* @param {Letta.ProviderUpdate} request
|
|
@@ -90,6 +90,8 @@ export declare class Providers {
|
|
|
90
90
|
modify(providerId: string, request: Letta.ProviderUpdate, requestOptions?: Providers.RequestOptions): core.HttpResponsePromise<Letta.Provider>;
|
|
91
91
|
private __modify;
|
|
92
92
|
/**
|
|
93
|
+
* Verify the API key and additional parameters for a provider.
|
|
94
|
+
*
|
|
93
95
|
* @param {Letta.ProviderCheck} request
|
|
94
96
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
97
|
*
|
|
@@ -60,7 +60,7 @@ class Providers {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Get a list of all custom providers
|
|
63
|
+
* Get a list of all custom providers.
|
|
64
64
|
*
|
|
65
65
|
* @param {Letta.ProvidersListRequest} request
|
|
66
66
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -97,7 +97,7 @@ class Providers {
|
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
99
99
|
? yield core.Supplier.get(this._options.project)
|
|
100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -153,7 +153,7 @@ class Providers {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
|
-
* Create a new custom provider
|
|
156
|
+
* Create a new custom provider.
|
|
157
157
|
*
|
|
158
158
|
* @param {Letta.ProviderCreate} request
|
|
159
159
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -178,7 +178,7 @@ class Providers {
|
|
|
178
178
|
method: "POST",
|
|
179
179
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
180
180
|
? yield core.Supplier.get(this._options.project)
|
|
181
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
181
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
requestType: "json",
|
|
184
184
|
body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -234,7 +234,7 @@ class Providers {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Delete an existing custom provider
|
|
237
|
+
* Delete an existing custom provider.
|
|
238
238
|
*
|
|
239
239
|
* @param {string} providerId
|
|
240
240
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -255,7 +255,7 @@ class Providers {
|
|
|
255
255
|
method: "DELETE",
|
|
256
256
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
257
257
|
? yield core.Supplier.get(this._options.project)
|
|
258
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
258
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
requestType: "json",
|
|
261
261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -301,7 +301,7 @@ class Providers {
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* Update an existing custom provider
|
|
304
|
+
* Update an existing custom provider.
|
|
305
305
|
*
|
|
306
306
|
* @param {string} providerId
|
|
307
307
|
* @param {Letta.ProviderUpdate} request
|
|
@@ -325,7 +325,7 @@ class Providers {
|
|
|
325
325
|
method: "PATCH",
|
|
326
326
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
327
327
|
? yield core.Supplier.get(this._options.project)
|
|
328
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
328
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
329
329
|
contentType: "application/json",
|
|
330
330
|
requestType: "json",
|
|
331
331
|
body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -381,6 +381,8 @@ class Providers {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
|
+
* Verify the API key and additional parameters for a provider.
|
|
385
|
+
*
|
|
384
386
|
* @param {Letta.ProviderCheck} request
|
|
385
387
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
386
388
|
*
|
|
@@ -403,7 +405,7 @@ class Providers {
|
|
|
403
405
|
method: "POST",
|
|
404
406
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
405
407
|
? yield core.Supplier.get(this._options.project)
|
|
406
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
408
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
407
409
|
contentType: "application/json",
|
|
408
410
|
requestType: "json",
|
|
409
411
|
body: serializers.ProviderCheck.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -121,7 +121,7 @@ class Runs {
|
|
|
121
121
|
method: "GET",
|
|
122
122
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
123
123
|
? yield core.Supplier.get(this._options.project)
|
|
124
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
124
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
125
125
|
contentType: "application/json",
|
|
126
126
|
queryParameters: _queryParams,
|
|
127
127
|
requestType: "json",
|
|
@@ -211,7 +211,7 @@ class Runs {
|
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
213
213
|
? yield core.Supplier.get(this._options.project)
|
|
214
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
214
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
queryParameters: _queryParams,
|
|
217
217
|
requestType: "json",
|
|
@@ -288,7 +288,7 @@ class Runs {
|
|
|
288
288
|
method: "GET",
|
|
289
289
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
290
290
|
? yield core.Supplier.get(this._options.project)
|
|
291
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
291
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
292
292
|
contentType: "application/json",
|
|
293
293
|
requestType: "json",
|
|
294
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -364,7 +364,7 @@ class Runs {
|
|
|
364
364
|
method: "DELETE",
|
|
365
365
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
366
366
|
? yield core.Supplier.get(this._options.project)
|
|
367
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
367
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
368
368
|
contentType: "application/json",
|
|
369
369
|
requestType: "json",
|
|
370
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -429,7 +429,7 @@ class Runs {
|
|
|
429
429
|
method: "POST",
|
|
430
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
431
431
|
? yield core.Supplier.get(this._options.project)
|
|
432
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
433
433
|
contentType: "application/json",
|
|
434
434
|
requestType: "json",
|
|
435
435
|
body: serializers.RetrieveStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -98,7 +98,7 @@ class Messages {
|
|
|
98
98
|
method: "GET",
|
|
99
99
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
100
100
|
? yield core.Supplier.get(this._options.project)
|
|
101
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
101
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
104
104
|
requestType: "json",
|
|
@@ -106,7 +106,7 @@ class Steps {
|
|
|
106
106
|
method: "GET",
|
|
107
107
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
108
108
|
? yield core.Supplier.get(this._options.project)
|
|
109
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
109
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
queryParameters: _queryParams,
|
|
112
112
|
requestType: "json",
|
|
@@ -81,7 +81,7 @@ class Usage {
|
|
|
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.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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,
|
|
@@ -90,7 +90,7 @@ class Sources {
|
|
|
90
90
|
method: "GET",
|
|
91
91
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
92
92
|
? yield core.Supplier.get(this._options.project)
|
|
93
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
93
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
requestType: "json",
|
|
96
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -166,7 +166,7 @@ class Sources {
|
|
|
166
166
|
method: "GET",
|
|
167
167
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
168
168
|
? yield core.Supplier.get(this._options.project)
|
|
169
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
169
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -242,7 +242,7 @@ class Sources {
|
|
|
242
242
|
method: "DELETE",
|
|
243
243
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
244
244
|
? yield core.Supplier.get(this._options.project)
|
|
245
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
245
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
requestType: "json",
|
|
248
248
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -310,7 +310,7 @@ class Sources {
|
|
|
310
310
|
method: "PATCH",
|
|
311
311
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
312
312
|
? yield core.Supplier.get(this._options.project)
|
|
313
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
313
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
requestType: "json",
|
|
316
316
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -387,7 +387,7 @@ class Sources {
|
|
|
387
387
|
method: "GET",
|
|
388
388
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
389
389
|
? yield core.Supplier.get(this._options.project)
|
|
390
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
390
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
391
391
|
contentType: "application/json",
|
|
392
392
|
requestType: "json",
|
|
393
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -474,7 +474,7 @@ class Sources {
|
|
|
474
474
|
method: "GET",
|
|
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.0.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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
|
queryParameters: _queryParams,
|
|
480
480
|
requestType: "json",
|
|
@@ -550,7 +550,7 @@ class Sources {
|
|
|
550
550
|
method: "GET",
|
|
551
551
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
552
552
|
? yield core.Supplier.get(this._options.project)
|
|
553
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
553
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -628,7 +628,7 @@ class Sources {
|
|
|
628
628
|
method: "POST",
|
|
629
629
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
630
630
|
? yield core.Supplier.get(this._options.project)
|
|
631
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
631
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
632
632
|
contentType: "application/json",
|
|
633
633
|
requestType: "json",
|
|
634
634
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -705,7 +705,7 @@ class Sources {
|
|
|
705
705
|
method: "GET",
|
|
706
706
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
707
707
|
? yield core.Supplier.get(this._options.project)
|
|
708
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
708
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
709
709
|
contentType: "application/json",
|
|
710
710
|
requestType: "json",
|
|
711
711
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -788,7 +788,7 @@ class Sources {
|
|
|
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.0.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
queryParameters: _queryParams,
|
|
794
794
|
requestType: "json",
|
|
@@ -93,7 +93,7 @@ class Files {
|
|
|
93
93
|
method: "POST",
|
|
94
94
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? yield core.Supplier.get(this._options.project)
|
|
96
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "file",
|
|
99
99
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -186,7 +186,7 @@ class Files {
|
|
|
186
186
|
method: "GET",
|
|
187
187
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
188
188
|
? yield core.Supplier.get(this._options.project)
|
|
189
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
189
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
queryParameters: _queryParams,
|
|
192
192
|
requestType: "json",
|
|
@@ -264,7 +264,7 @@ class Files {
|
|
|
264
264
|
method: "DELETE",
|
|
265
265
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
266
266
|
? yield core.Supplier.get(this._options.project)
|
|
267
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
267
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
268
268
|
contentType: "application/json",
|
|
269
269
|
requestType: "json",
|
|
270
270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -93,7 +93,7 @@ class Passages {
|
|
|
93
93
|
method: "GET",
|
|
94
94
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? yield core.Supplier.get(this._options.project)
|
|
96
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
97
97
|
contentType: "application/json",
|
|
98
98
|
queryParameters: _queryParams,
|
|
99
99
|
requestType: "json",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
6
|
import * as Letta from "../../../index";
|
|
7
|
+
import { Metrics } from "../resources/metrics/client/Client";
|
|
8
|
+
import { Trace } from "../resources/trace/client/Client";
|
|
7
9
|
import { Feedback } from "../resources/feedback/client/Client";
|
|
8
10
|
export declare namespace Steps {
|
|
9
11
|
interface Options {
|
|
@@ -30,8 +32,12 @@ export declare namespace Steps {
|
|
|
30
32
|
}
|
|
31
33
|
export declare class Steps {
|
|
32
34
|
protected readonly _options: Steps.Options;
|
|
35
|
+
protected _metrics: Metrics | undefined;
|
|
36
|
+
protected _trace: Trace | undefined;
|
|
33
37
|
protected _feedback: Feedback | undefined;
|
|
34
38
|
constructor(_options?: Steps.Options);
|
|
39
|
+
get metrics(): Metrics;
|
|
40
|
+
get trace(): Trace;
|
|
35
41
|
get feedback(): Feedback;
|
|
36
42
|
/**
|
|
37
43
|
* List steps with optional pagination and date filters.
|
|
@@ -60,19 +66,6 @@ export declare class Steps {
|
|
|
60
66
|
*/
|
|
61
67
|
retrieve(stepId: string, requestOptions?: Steps.RequestOptions): core.HttpResponsePromise<Letta.Step>;
|
|
62
68
|
private __retrieve;
|
|
63
|
-
/**
|
|
64
|
-
* Get step metrics by step ID.
|
|
65
|
-
*
|
|
66
|
-
* @param {string} stepId
|
|
67
|
-
* @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* await client.steps.retrieveStepMetrics("step_id")
|
|
73
|
-
*/
|
|
74
|
-
retrieveStepMetrics(stepId: string, requestOptions?: Steps.RequestOptions): core.HttpResponsePromise<Letta.StepMetrics>;
|
|
75
|
-
private __retrieveStepMetrics;
|
|
76
69
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
77
70
|
Authorization: string;
|
|
78
71
|
}>;
|
|
@@ -55,14 +55,24 @@ const Letta = __importStar(require("../../../index"));
|
|
|
55
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
-
const Client_1 = require("../resources/
|
|
58
|
+
const Client_1 = require("../resources/metrics/client/Client");
|
|
59
|
+
const Client_2 = require("../resources/trace/client/Client");
|
|
60
|
+
const Client_3 = require("../resources/feedback/client/Client");
|
|
59
61
|
class Steps {
|
|
60
62
|
constructor(_options = {}) {
|
|
61
63
|
this._options = _options;
|
|
62
64
|
}
|
|
65
|
+
get metrics() {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_1.Metrics(this._options)));
|
|
68
|
+
}
|
|
69
|
+
get trace() {
|
|
70
|
+
var _a;
|
|
71
|
+
return ((_a = this._trace) !== null && _a !== void 0 ? _a : (this._trace = new Client_2.Trace(this._options)));
|
|
72
|
+
}
|
|
63
73
|
get feedback() {
|
|
64
74
|
var _a;
|
|
65
|
-
return ((_a = this._feedback) !== null && _a !== void 0 ? _a : (this._feedback = new
|
|
75
|
+
return ((_a = this._feedback) !== null && _a !== void 0 ? _a : (this._feedback = new Client_3.Feedback(this._options)));
|
|
66
76
|
}
|
|
67
77
|
/**
|
|
68
78
|
* List steps with optional pagination and date filters.
|
|
@@ -140,7 +150,7 @@ class Steps {
|
|
|
140
150
|
method: "GET",
|
|
141
151
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
142
152
|
? yield core.Supplier.get(this._options.project)
|
|
143
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
153
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
144
154
|
contentType: "application/json",
|
|
145
155
|
queryParameters: _queryParams,
|
|
146
156
|
requestType: "json",
|
|
@@ -217,7 +227,7 @@ class Steps {
|
|
|
217
227
|
method: "GET",
|
|
218
228
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
219
229
|
? yield core.Supplier.get(this._options.project)
|
|
220
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
230
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
221
231
|
contentType: "application/json",
|
|
222
232
|
requestType: "json",
|
|
223
233
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -271,82 +281,6 @@ class Steps {
|
|
|
271
281
|
}
|
|
272
282
|
});
|
|
273
283
|
}
|
|
274
|
-
/**
|
|
275
|
-
* Get step metrics by step ID.
|
|
276
|
-
*
|
|
277
|
-
* @param {string} stepId
|
|
278
|
-
* @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
|
-
*
|
|
280
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
281
|
-
*
|
|
282
|
-
* @example
|
|
283
|
-
* await client.steps.retrieveStepMetrics("step_id")
|
|
284
|
-
*/
|
|
285
|
-
retrieveStepMetrics(stepId, requestOptions) {
|
|
286
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieveStepMetrics(stepId, requestOptions));
|
|
287
|
-
}
|
|
288
|
-
__retrieveStepMetrics(stepId, requestOptions) {
|
|
289
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
-
var _a, _b, _c;
|
|
291
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
292
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}/metrics`),
|
|
293
|
-
method: "GET",
|
|
294
|
-
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
295
|
-
? yield core.Supplier.get(this._options.project)
|
|
296
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68641", "User-Agent": "@letta-ai/letta-client/0.0.68641", "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),
|
|
297
|
-
contentType: "application/json",
|
|
298
|
-
requestType: "json",
|
|
299
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
300
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
301
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
|
-
});
|
|
303
|
-
if (_response.ok) {
|
|
304
|
-
return {
|
|
305
|
-
data: serializers.StepMetrics.parseOrThrow(_response.body, {
|
|
306
|
-
unrecognizedObjectKeys: "passthrough",
|
|
307
|
-
allowUnrecognizedUnionMembers: true,
|
|
308
|
-
allowUnrecognizedEnumValues: true,
|
|
309
|
-
skipValidation: true,
|
|
310
|
-
breadcrumbsPrefix: ["response"],
|
|
311
|
-
}),
|
|
312
|
-
rawResponse: _response.rawResponse,
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
if (_response.error.reason === "status-code") {
|
|
316
|
-
switch (_response.error.statusCode) {
|
|
317
|
-
case 422:
|
|
318
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
319
|
-
unrecognizedObjectKeys: "passthrough",
|
|
320
|
-
allowUnrecognizedUnionMembers: true,
|
|
321
|
-
allowUnrecognizedEnumValues: true,
|
|
322
|
-
skipValidation: true,
|
|
323
|
-
breadcrumbsPrefix: ["response"],
|
|
324
|
-
}), _response.rawResponse);
|
|
325
|
-
default:
|
|
326
|
-
throw new errors.LettaError({
|
|
327
|
-
statusCode: _response.error.statusCode,
|
|
328
|
-
body: _response.error.body,
|
|
329
|
-
rawResponse: _response.rawResponse,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
switch (_response.error.reason) {
|
|
334
|
-
case "non-json":
|
|
335
|
-
throw new errors.LettaError({
|
|
336
|
-
statusCode: _response.error.statusCode,
|
|
337
|
-
body: _response.error.rawBody,
|
|
338
|
-
rawResponse: _response.rawResponse,
|
|
339
|
-
});
|
|
340
|
-
case "timeout":
|
|
341
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/steps/{step_id}/metrics.");
|
|
342
|
-
case "unknown":
|
|
343
|
-
throw new errors.LettaError({
|
|
344
|
-
message: _response.error.errorMessage,
|
|
345
|
-
rawResponse: _response.rawResponse,
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
284
|
_getCustomAuthorizationHeaders() {
|
|
351
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
352
286
|
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
@@ -34,7 +34,7 @@ export declare class Feedback {
|
|
|
34
34
|
* Add feedback to a step.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} stepId
|
|
37
|
-
* @param {Letta.steps.
|
|
37
|
+
* @param {Letta.steps.AddFeedbackRequest} request
|
|
38
38
|
* @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -42,7 +42,7 @@ export declare class Feedback {
|
|
|
42
42
|
* @example
|
|
43
43
|
* await client.steps.feedback.create("step_id")
|
|
44
44
|
*/
|
|
45
|
-
create(stepId: string, request?: Letta.steps.
|
|
45
|
+
create(stepId: string, request?: Letta.steps.AddFeedbackRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<Letta.Step>;
|
|
46
46
|
private __create;
|
|
47
47
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
48
48
|
Authorization: string;
|
|
@@ -63,7 +63,7 @@ class Feedback {
|
|
|
63
63
|
* Add feedback to a step.
|
|
64
64
|
*
|
|
65
65
|
* @param {string} stepId
|
|
66
|
-
* @param {Letta.steps.
|
|
66
|
+
* @param {Letta.steps.AddFeedbackRequest} request
|
|
67
67
|
* @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -77,22 +77,15 @@ class Feedback {
|
|
|
77
77
|
__create(stepId_1) {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (stepId, request = {}, requestOptions) {
|
|
79
79
|
var _a, _b, _c;
|
|
80
|
-
const { feedback } = request;
|
|
81
|
-
const _queryParams = {};
|
|
82
|
-
if (feedback != null) {
|
|
83
|
-
_queryParams["feedback"] = serializers.FeedbackType.jsonOrThrow(feedback, {
|
|
84
|
-
unrecognizedObjectKeys: "strip",
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
81
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}/feedback`),
|
|
89
82
|
method: "PATCH",
|
|
90
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
91
84
|
? yield core.Supplier.get(this._options.project)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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),
|
|
93
86
|
contentType: "application/json",
|
|
94
|
-
queryParameters: _queryParams,
|
|
95
87
|
requestType: "json",
|
|
88
|
+
body: serializers.steps.AddFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
96
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|