@athenaintel/sdk 4.3.2159 → 4.3.2160
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 +17 -16
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -41
- package/dist/cjs/api/resources/agents/client/Client.js +2 -163
- package/dist/cjs/api/resources/agents/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/agents/client/index.js +0 -15
- package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +2 -44
- package/dist/cjs/api/resources/agents/resources/general/client/Client.js +1 -163
- package/dist/cjs/api/resources/agents/resources/general/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/general/client/index.js +15 -0
- package/dist/cjs/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.d.ts +11 -2
- package/dist/cjs/api/resources/agents/resources/general/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/resources/index.d.ts +1 -6
- package/dist/cjs/api/resources/agents/resources/index.js +2 -7
- package/dist/cjs/api/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/index.js +3 -4
- package/dist/cjs/api/resources/tools/client/Client.d.ts +11 -0
- package/dist/cjs/api/resources/tools/client/Client.js +11 -0
- package/dist/cjs/api/types/index.d.ts +0 -5
- package/dist/cjs/api/types/index.js +0 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/agents/client/Client.d.mts +1 -41
- package/dist/esm/api/resources/agents/client/Client.mjs +0 -128
- package/dist/esm/api/resources/agents/client/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/client/index.mjs +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/Client.d.mts +2 -44
- package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +1 -163
- package/dist/esm/api/resources/agents/resources/general/client/index.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/index.mjs +1 -1
- package/dist/esm/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.d.mts +11 -2
- package/dist/esm/api/resources/agents/resources/general/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/resources/index.d.mts +1 -6
- package/dist/esm/api/resources/agents/resources/index.mjs +1 -6
- package/dist/esm/api/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/client/Client.d.mts +11 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +11 -0
- package/dist/esm/api/types/index.d.mts +0 -5
- package/dist/esm/api/types/index.mjs +0 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +24 -434
- package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.d.ts +0 -20
- package/dist/cjs/api/resources/agents/client/requests/CustomAgentRequest.js +0 -3
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/agents/resources/drive/client/Client.js +0 -138
- package/dist/cjs/api/resources/agents/resources/drive/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/index.js +0 -17
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.ts +0 -17
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.js +0 -3
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/drive/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/agents/resources/drive/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/drive/index.js +0 -17
- package/dist/cjs/api/resources/agents/resources/research/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/agents/resources/research/client/Client.js +0 -138
- package/dist/cjs/api/resources/agents/resources/research/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/research/client/index.js +0 -17
- package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.ts +0 -17
- package/dist/cjs/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.js +0 -3
- package/dist/cjs/api/resources/agents/resources/research/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/research/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/agents/resources/research/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/research/index.js +0 -17
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/agents/resources/sql/client/Client.js +0 -135
- package/dist/cjs/api/resources/agents/resources/sql/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/index.js +0 -17
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.ts +0 -17
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.js +0 -3
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/sql/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/agents/resources/sql/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/resources/sql/index.js +0 -17
- package/dist/cjs/api/types/CustomAgentResponse.d.ts +0 -4
- package/dist/cjs/api/types/CustomAgentResponse.js +0 -3
- package/dist/cjs/api/types/DriveAgentResponse.d.ts +0 -4
- package/dist/cjs/api/types/DriveAgentResponse.js +0 -3
- package/dist/cjs/api/types/ResearchAgentResponse.d.ts +0 -4
- package/dist/cjs/api/types/ResearchAgentResponse.js +0 -3
- package/dist/cjs/api/types/SqlAgentResponse.d.ts +0 -6
- package/dist/cjs/api/types/SqlAgentResponse.js +0 -3
- package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.d.mts +0 -20
- package/dist/esm/api/resources/agents/client/requests/CustomAgentRequest.mjs +0 -2
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/agents/resources/drive/client/Client.mjs +0 -101
- package/dist/esm/api/resources/agents/resources/drive/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.d.mts +0 -17
- package/dist/esm/api/resources/agents/resources/drive/client/requests/DriveAgentRequest.mjs +0 -2
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/drive/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/drive/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/drive/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/agents/resources/research/client/Client.mjs +0 -101
- package/dist/esm/api/resources/agents/resources/research/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.d.mts +0 -17
- package/dist/esm/api/resources/agents/resources/research/client/requests/ResearchAgentRequest.mjs +0 -2
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/research/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/research/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/research/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/agents/resources/sql/client/Client.mjs +0 -98
- package/dist/esm/api/resources/agents/resources/sql/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.d.mts +0 -17
- package/dist/esm/api/resources/agents/resources/sql/client/requests/SqlAgentRequest.mjs +0 -2
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/sql/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/agents/resources/sql/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/resources/sql/index.mjs +0 -1
- package/dist/esm/api/types/CustomAgentResponse.d.mts +0 -4
- package/dist/esm/api/types/CustomAgentResponse.mjs +0 -2
- package/dist/esm/api/types/DriveAgentResponse.d.mts +0 -4
- package/dist/esm/api/types/DriveAgentResponse.mjs +0 -2
- package/dist/esm/api/types/ResearchAgentResponse.d.mts +0 -4
- package/dist/esm/api/types/ResearchAgentResponse.mjs +0 -2
- package/dist/esm/api/types/SqlAgentResponse.d.mts +0 -6
- package/dist/esm/api/types/SqlAgentResponse.mjs +0 -2
- /package/dist/cjs/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.js +0 -0
- /package/dist/cjs/api/resources/agents/{client → resources/general/client}/requests/index.js +0 -0
- /package/dist/esm/api/{types → resources/agents/resources/general/client/requests}/GeneralAgentRequest.mjs +0 -0
- /package/dist/esm/api/resources/agents/{client → resources/general/client}/requests/index.mjs +0 -0
|
@@ -18,94 +18,13 @@ export class GeneralClient {
|
|
|
18
18
|
constructor(options = {}) {
|
|
19
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Coming soon! Call the general agent with batched requests and return the results.
|
|
23
|
-
*
|
|
24
|
-
* @param {AthenaIntelligence.GeneralAgentRequest[]} request
|
|
25
|
-
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
-
*
|
|
27
|
-
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* await client.agents.general.batch([{
|
|
31
|
-
* config: {
|
|
32
|
-
* enabled_tools: ["search"]
|
|
33
|
-
* },
|
|
34
|
-
* messages: [{
|
|
35
|
-
* content: "Please call the search tool for AAPL news.",
|
|
36
|
-
* role: "user"
|
|
37
|
-
* }]
|
|
38
|
-
* }])
|
|
39
|
-
*/
|
|
40
|
-
batch(request, requestOptions) {
|
|
41
|
-
return core.HttpResponsePromise.fromPromise(this.__batch(request, requestOptions));
|
|
42
|
-
}
|
|
43
|
-
__batch(request, requestOptions) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
47
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
49
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/agents/general/batch"),
|
|
50
|
-
method: "POST",
|
|
51
|
-
headers: _headers,
|
|
52
|
-
contentType: "application/json",
|
|
53
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
54
|
-
requestType: "json",
|
|
55
|
-
body: request,
|
|
56
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
57
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
58
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
59
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
60
|
-
logging: this._options.logging,
|
|
61
|
-
});
|
|
62
|
-
if (_response.ok) {
|
|
63
|
-
return {
|
|
64
|
-
data: _response.body,
|
|
65
|
-
rawResponse: _response.rawResponse,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
if (_response.error.reason === "status-code") {
|
|
69
|
-
switch (_response.error.statusCode) {
|
|
70
|
-
case 422:
|
|
71
|
-
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
72
|
-
default:
|
|
73
|
-
throw new errors.AthenaIntelligenceError({
|
|
74
|
-
statusCode: _response.error.statusCode,
|
|
75
|
-
body: _response.error.body,
|
|
76
|
-
rawResponse: _response.rawResponse,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
switch (_response.error.reason) {
|
|
81
|
-
case "non-json":
|
|
82
|
-
throw new errors.AthenaIntelligenceError({
|
|
83
|
-
statusCode: _response.error.statusCode,
|
|
84
|
-
body: _response.error.rawBody,
|
|
85
|
-
rawResponse: _response.rawResponse,
|
|
86
|
-
});
|
|
87
|
-
case "body-is-null":
|
|
88
|
-
throw new errors.AthenaIntelligenceError({
|
|
89
|
-
statusCode: _response.error.statusCode,
|
|
90
|
-
rawResponse: _response.rawResponse,
|
|
91
|
-
});
|
|
92
|
-
case "timeout":
|
|
93
|
-
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/agents/general/batch.");
|
|
94
|
-
case "unknown":
|
|
95
|
-
throw new errors.AthenaIntelligenceError({
|
|
96
|
-
message: _response.error.errorMessage,
|
|
97
|
-
rawResponse: _response.rawResponse,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
21
|
/**
|
|
103
22
|
* Call the general Athena agent synchronously.
|
|
104
23
|
*
|
|
105
24
|
* Call the agent with the messages list, wait for the agent to complete,
|
|
106
25
|
* and return the result.
|
|
107
26
|
*
|
|
108
|
-
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
27
|
+
* @param {AthenaIntelligence.agents.GeneralAgentRequest} request
|
|
109
28
|
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
29
|
*
|
|
111
30
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
@@ -183,85 +102,4 @@ export class GeneralClient {
|
|
|
183
102
|
}
|
|
184
103
|
});
|
|
185
104
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Coming soon! Call the general agent and stream events for real-time chat applications.
|
|
188
|
-
*
|
|
189
|
-
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
190
|
-
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
-
*
|
|
192
|
-
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* await client.agents.general.streamEvents({
|
|
196
|
-
* config: {
|
|
197
|
-
* enabled_tools: ["search"]
|
|
198
|
-
* },
|
|
199
|
-
* messages: [{
|
|
200
|
-
* content: "Please call the search tool for AAPL news.",
|
|
201
|
-
* role: "user"
|
|
202
|
-
* }]
|
|
203
|
-
* })
|
|
204
|
-
*/
|
|
205
|
-
streamEvents(request, requestOptions) {
|
|
206
|
-
return core.HttpResponsePromise.fromPromise(this.__streamEvents(request, requestOptions));
|
|
207
|
-
}
|
|
208
|
-
__streamEvents(request, requestOptions) {
|
|
209
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
211
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
212
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
213
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
214
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.AthenaIntelligenceEnvironment.Production, "api/v0/agents/general/stream_events"),
|
|
215
|
-
method: "POST",
|
|
216
|
-
headers: _headers,
|
|
217
|
-
contentType: "application/json",
|
|
218
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
219
|
-
requestType: "json",
|
|
220
|
-
body: request,
|
|
221
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
222
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
223
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
224
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
225
|
-
logging: this._options.logging,
|
|
226
|
-
});
|
|
227
|
-
if (_response.ok) {
|
|
228
|
-
return {
|
|
229
|
-
data: _response.body,
|
|
230
|
-
rawResponse: _response.rawResponse,
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
if (_response.error.reason === "status-code") {
|
|
234
|
-
switch (_response.error.statusCode) {
|
|
235
|
-
case 422:
|
|
236
|
-
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
237
|
-
default:
|
|
238
|
-
throw new errors.AthenaIntelligenceError({
|
|
239
|
-
statusCode: _response.error.statusCode,
|
|
240
|
-
body: _response.error.body,
|
|
241
|
-
rawResponse: _response.rawResponse,
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
switch (_response.error.reason) {
|
|
246
|
-
case "non-json":
|
|
247
|
-
throw new errors.AthenaIntelligenceError({
|
|
248
|
-
statusCode: _response.error.statusCode,
|
|
249
|
-
body: _response.error.rawBody,
|
|
250
|
-
rawResponse: _response.rawResponse,
|
|
251
|
-
});
|
|
252
|
-
case "body-is-null":
|
|
253
|
-
throw new errors.AthenaIntelligenceError({
|
|
254
|
-
statusCode: _response.error.statusCode,
|
|
255
|
-
rawResponse: _response.rawResponse,
|
|
256
|
-
});
|
|
257
|
-
case "timeout":
|
|
258
|
-
throw new errors.AthenaIntelligenceTimeoutError("Timeout exceeded when calling POST /api/v0/agents/general/stream_events.");
|
|
259
|
-
case "unknown":
|
|
260
|
-
throw new errors.AthenaIntelligenceError({
|
|
261
|
-
message: _response.error.errorMessage,
|
|
262
|
-
rawResponse: _response.rawResponse,
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import type * as AthenaIntelligence from "
|
|
1
|
+
import type * as AthenaIntelligence from "../../../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* config: {
|
|
6
|
+
* enabled_tools: ["search"]
|
|
7
|
+
* },
|
|
8
|
+
* messages: [{
|
|
9
|
+
* content: "Please call the search tool for AAPL news.",
|
|
10
|
+
* role: "user"
|
|
11
|
+
* }]
|
|
12
|
+
* }
|
|
4
13
|
*/
|
|
5
14
|
export interface GeneralAgentRequest {
|
|
6
15
|
/** The channel through which the request is being made. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GeneralAgentRequest } from "./GeneralAgentRequest.mjs";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as drive from "./drive/index.mjs";
|
|
1
|
+
export * from "./general/client/requests/index.mjs";
|
|
3
2
|
export * as general from "./general/index.mjs";
|
|
4
|
-
export * from "./research/client/requests/index.mjs";
|
|
5
|
-
export * as research from "./research/index.mjs";
|
|
6
|
-
export * from "./sql/client/requests/index.mjs";
|
|
7
|
-
export * as sql from "./sql/index.mjs";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as drive from "./drive/index.mjs";
|
|
1
|
+
export * from "./general/client/requests/index.mjs";
|
|
3
2
|
export * as general from "./general/index.mjs";
|
|
4
|
-
export * from "./research/client/requests/index.mjs";
|
|
5
|
-
export * as research from "./research/index.mjs";
|
|
6
|
-
export * from "./sql/client/requests/index.mjs";
|
|
7
|
-
export * as sql from "./sql/index.mjs";
|
|
@@ -121,6 +121,17 @@ export declare class ToolsClient {
|
|
|
121
121
|
listContents(request?: AthenaIntelligence.ListContentsToolsRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.FolderResponse>;
|
|
122
122
|
private __listContents;
|
|
123
123
|
/**
|
|
124
|
+
* Read a tabular asset as a JSON data frame.
|
|
125
|
+
*
|
|
126
|
+
* Returns `columns`, an optional `index`, and `data` rows (pandas "split"
|
|
127
|
+
* orientation) for an asset the caller can read: an Athena spreadsheet, a
|
|
128
|
+
* file-backed live spreadsheet (SharePoint, OneDrive, Drive, iManage), or an
|
|
129
|
+
* uploaded CSV, Excel or Parquet file. `row_limit` caps the rows returned,
|
|
130
|
+
* `columns` selects columns by name or position, `sheet_name` picks the sheet
|
|
131
|
+
* of an Excel file (the first by default), and `separator` sets the delimiter
|
|
132
|
+
* of a CSV file. Any other asset type is a 415; a file the parser cannot read
|
|
133
|
+
* is a 500 carrying the parser's message.
|
|
134
|
+
*
|
|
124
135
|
* @param {AthenaIntelligence.DataFrameToolsRequest} request
|
|
125
136
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
137
|
*
|
|
@@ -521,6 +521,17 @@ export class ToolsClient {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
+
* Read a tabular asset as a JSON data frame.
|
|
525
|
+
*
|
|
526
|
+
* Returns `columns`, an optional `index`, and `data` rows (pandas "split"
|
|
527
|
+
* orientation) for an asset the caller can read: an Athena spreadsheet, a
|
|
528
|
+
* file-backed live spreadsheet (SharePoint, OneDrive, Drive, iManage), or an
|
|
529
|
+
* uploaded CSV, Excel or Parquet file. `row_limit` caps the rows returned,
|
|
530
|
+
* `columns` selects columns by name or position, `sheet_name` picks the sheet
|
|
531
|
+
* of an Excel file (the first by default), and `separator` sets the delimiter
|
|
532
|
+
* of a CSV file. Any other asset type is a 415; a file the parser cannot read
|
|
533
|
+
* is a 500 carrying the parser's message.
|
|
534
|
+
*
|
|
524
535
|
* @param {AthenaIntelligence.DataFrameToolsRequest} request
|
|
525
536
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
526
537
|
*
|
|
@@ -41,7 +41,6 @@ export * from "./CreatableAssetType.mjs";
|
|
|
41
41
|
export * from "./CreateAssetResponseOut.mjs";
|
|
42
42
|
export * from "./CreateNewSheetTabResponse.mjs";
|
|
43
43
|
export * from "./CreateProjectResponseOut.mjs";
|
|
44
|
-
export * from "./CustomAgentResponse.mjs";
|
|
45
44
|
export * from "./DatabaseColumnInfo.mjs";
|
|
46
45
|
export * from "./DatabaseDataResponse.mjs";
|
|
47
46
|
export * from "./DatabaseMutationResponse.mjs";
|
|
@@ -57,7 +56,6 @@ export * from "./DeleteDataRequest.mjs";
|
|
|
57
56
|
export * from "./DeleteSshKeyResponseOut.mjs";
|
|
58
57
|
export * from "./DeployComputerResponseOut.mjs";
|
|
59
58
|
export * from "./DimensionProperties.mjs";
|
|
60
|
-
export * from "./DriveAgentResponse.mjs";
|
|
61
59
|
export * from "./DuplicateAssetResponseOut.mjs";
|
|
62
60
|
export * from "./EmailDraftResponseOut.mjs";
|
|
63
61
|
export * from "./EmailSearchResponseOut.mjs";
|
|
@@ -65,7 +63,6 @@ export * from "./EmailSearchResultOut.mjs";
|
|
|
65
63
|
export * from "./FileTooLargeError.mjs";
|
|
66
64
|
export * from "./FolderResponse.mjs";
|
|
67
65
|
export * from "./GeneralAgentConfig.mjs";
|
|
68
|
-
export * from "./GeneralAgentRequest.mjs";
|
|
69
66
|
export * from "./GeneralAgentResponse.mjs";
|
|
70
67
|
export * from "./GeneralAgentResponseMessage.mjs";
|
|
71
68
|
export * from "./GeneralAgentResponseMessageKwargs.mjs";
|
|
@@ -90,7 +87,6 @@ export * from "./PublicAssetOut.mjs";
|
|
|
90
87
|
export * from "./ReadCapabilitiesOut.mjs";
|
|
91
88
|
export * from "./RedactedThinkingContent.mjs";
|
|
92
89
|
export * from "./RenameAssetResponseOut.mjs";
|
|
93
|
-
export * from "./ResearchAgentResponse.mjs";
|
|
94
90
|
export * from "./RevokeSshAccessResponseOut.mjs";
|
|
95
91
|
export * from "./RunTaskResponse.mjs";
|
|
96
92
|
export * from "./SaveAssetRequestOut.mjs";
|
|
@@ -104,7 +100,6 @@ export * from "./ShareRecipient.mjs";
|
|
|
104
100
|
export * from "./ShareRecipientResultOut.mjs";
|
|
105
101
|
export * from "./Sheet.mjs";
|
|
106
102
|
export * from "./SheetOperationResponse.mjs";
|
|
107
|
-
export * from "./SqlAgentResponse.mjs";
|
|
108
103
|
export * from "./SshAccessInfoOut.mjs";
|
|
109
104
|
export * from "./SshAccessResponseOut.mjs";
|
|
110
105
|
export * from "./SshKeyListResponseOut.mjs";
|
|
@@ -41,7 +41,6 @@ export * from "./CreatableAssetType.mjs";
|
|
|
41
41
|
export * from "./CreateAssetResponseOut.mjs";
|
|
42
42
|
export * from "./CreateNewSheetTabResponse.mjs";
|
|
43
43
|
export * from "./CreateProjectResponseOut.mjs";
|
|
44
|
-
export * from "./CustomAgentResponse.mjs";
|
|
45
44
|
export * from "./DatabaseColumnInfo.mjs";
|
|
46
45
|
export * from "./DatabaseDataResponse.mjs";
|
|
47
46
|
export * from "./DatabaseMutationResponse.mjs";
|
|
@@ -57,7 +56,6 @@ export * from "./DeleteDataRequest.mjs";
|
|
|
57
56
|
export * from "./DeleteSshKeyResponseOut.mjs";
|
|
58
57
|
export * from "./DeployComputerResponseOut.mjs";
|
|
59
58
|
export * from "./DimensionProperties.mjs";
|
|
60
|
-
export * from "./DriveAgentResponse.mjs";
|
|
61
59
|
export * from "./DuplicateAssetResponseOut.mjs";
|
|
62
60
|
export * from "./EmailDraftResponseOut.mjs";
|
|
63
61
|
export * from "./EmailSearchResponseOut.mjs";
|
|
@@ -65,7 +63,6 @@ export * from "./EmailSearchResultOut.mjs";
|
|
|
65
63
|
export * from "./FileTooLargeError.mjs";
|
|
66
64
|
export * from "./FolderResponse.mjs";
|
|
67
65
|
export * from "./GeneralAgentConfig.mjs";
|
|
68
|
-
export * from "./GeneralAgentRequest.mjs";
|
|
69
66
|
export * from "./GeneralAgentResponse.mjs";
|
|
70
67
|
export * from "./GeneralAgentResponseMessage.mjs";
|
|
71
68
|
export * from "./GeneralAgentResponseMessageKwargs.mjs";
|
|
@@ -90,7 +87,6 @@ export * from "./PublicAssetOut.mjs";
|
|
|
90
87
|
export * from "./ReadCapabilitiesOut.mjs";
|
|
91
88
|
export * from "./RedactedThinkingContent.mjs";
|
|
92
89
|
export * from "./RenameAssetResponseOut.mjs";
|
|
93
|
-
export * from "./ResearchAgentResponse.mjs";
|
|
94
90
|
export * from "./RevokeSshAccessResponseOut.mjs";
|
|
95
91
|
export * from "./RunTaskResponse.mjs";
|
|
96
92
|
export * from "./SaveAssetRequestOut.mjs";
|
|
@@ -104,7 +100,6 @@ export * from "./ShareRecipient.mjs";
|
|
|
104
100
|
export * from "./ShareRecipientResultOut.mjs";
|
|
105
101
|
export * from "./Sheet.mjs";
|
|
106
102
|
export * from "./SheetOperationResponse.mjs";
|
|
107
|
-
export * from "./SqlAgentResponse.mjs";
|
|
108
103
|
export * from "./SshAccessInfoOut.mjs";
|
|
109
104
|
export * from "./SshAccessResponseOut.mjs";
|
|
110
105
|
export * from "./SshKeyListResponseOut.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2160";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2160";
|