@athenaintel/sdk 4.3.2248 → 4.3.2250
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/resources/general/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/agents/resources/general/client/Client.js +1 -1
- package/dist/cjs/api/resources/assets/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/assets/client/Client.js +6 -0
- 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/api/resources/agents/resources/general/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/agents/resources/general/client/Client.mjs +1 -1
- package/dist/esm/api/resources/assets/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/assets/client/Client.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@athenaintel/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "4.3.
|
|
47
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
46
|
+
"X-Fern-SDK-Version": "4.3.2250",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.2250",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
|
|
@@ -36,7 +36,7 @@ export declare class GeneralClient {
|
|
|
36
36
|
invoke(request: AthenaIntelligence.GeneralAgentRequest, requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse>;
|
|
37
37
|
private __invoke;
|
|
38
38
|
/**
|
|
39
|
-
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it.
|
|
39
|
+
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it or while it is archived (restore it to continue it).
|
|
40
40
|
*
|
|
41
41
|
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
42
42
|
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -141,7 +141,7 @@ class GeneralClient {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
-
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it.
|
|
144
|
+
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it or while it is archived (restore it to continue it).
|
|
145
145
|
*
|
|
146
146
|
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
147
147
|
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -147,6 +147,7 @@ export declare class AssetsClient {
|
|
|
147
147
|
*
|
|
148
148
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
149
149
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
150
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
150
151
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
151
152
|
*
|
|
152
153
|
* @example
|
|
@@ -376,6 +377,7 @@ export declare class AssetsClient {
|
|
|
376
377
|
*
|
|
377
378
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
378
379
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
380
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
379
381
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
380
382
|
*
|
|
381
383
|
* @example
|
|
@@ -622,6 +622,7 @@ class AssetsClient {
|
|
|
622
622
|
*
|
|
623
623
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
624
624
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
625
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
625
626
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
626
627
|
*
|
|
627
628
|
* @example
|
|
@@ -667,6 +668,8 @@ class AssetsClient {
|
|
|
667
668
|
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
668
669
|
case 404:
|
|
669
670
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
671
|
+
case 409:
|
|
672
|
+
throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
|
|
670
673
|
case 422:
|
|
671
674
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
672
675
|
default:
|
|
@@ -1679,6 +1682,7 @@ class AssetsClient {
|
|
|
1679
1682
|
*
|
|
1680
1683
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
1681
1684
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
1685
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
1682
1686
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1683
1687
|
*
|
|
1684
1688
|
* @example
|
|
@@ -1724,6 +1728,8 @@ class AssetsClient {
|
|
|
1724
1728
|
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1725
1729
|
case 404:
|
|
1726
1730
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1731
|
+
case 409:
|
|
1732
|
+
throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
|
|
1727
1733
|
case 422:
|
|
1728
1734
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1729
1735
|
default:
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2250";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@athenaintel/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "4.3.
|
|
10
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
9
|
+
"X-Fern-SDK-Version": "4.3.2250",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2250",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
|
|
@@ -36,7 +36,7 @@ export declare class GeneralClient {
|
|
|
36
36
|
invoke(request: AthenaIntelligence.GeneralAgentRequest, requestOptions?: GeneralClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.GeneralAgentResponse>;
|
|
37
37
|
private __invoke;
|
|
38
38
|
/**
|
|
39
|
-
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it.
|
|
39
|
+
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it or while it is archived (restore it to continue it).
|
|
40
40
|
*
|
|
41
41
|
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
42
42
|
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -105,7 +105,7 @@ export class GeneralClient {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it.
|
|
108
|
+
* Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it or while it is archived (restore it to continue it).
|
|
109
109
|
*
|
|
110
110
|
* @param {AthenaIntelligence.GeneralAgentRequest} request
|
|
111
111
|
* @param {GeneralClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -147,6 +147,7 @@ export declare class AssetsClient {
|
|
|
147
147
|
*
|
|
148
148
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
149
149
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
150
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
150
151
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
151
152
|
*
|
|
152
153
|
* @example
|
|
@@ -376,6 +377,7 @@ export declare class AssetsClient {
|
|
|
376
377
|
*
|
|
377
378
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
378
379
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
380
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
379
381
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
380
382
|
*
|
|
381
383
|
* @example
|
|
@@ -586,6 +586,7 @@ export class AssetsClient {
|
|
|
586
586
|
*
|
|
587
587
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
588
588
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
589
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
589
590
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
590
591
|
*
|
|
591
592
|
* @example
|
|
@@ -631,6 +632,8 @@ export class AssetsClient {
|
|
|
631
632
|
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
632
633
|
case 404:
|
|
633
634
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
635
|
+
case 409:
|
|
636
|
+
throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
|
|
634
637
|
case 422:
|
|
635
638
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
636
639
|
default:
|
|
@@ -1643,6 +1646,7 @@ export class AssetsClient {
|
|
|
1643
1646
|
*
|
|
1644
1647
|
* @throws {@link AthenaIntelligence.ForbiddenError}
|
|
1645
1648
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
1649
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
1646
1650
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
1647
1651
|
*
|
|
1648
1652
|
* @example
|
|
@@ -1688,6 +1692,8 @@ export class AssetsClient {
|
|
|
1688
1692
|
throw new AthenaIntelligence.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1689
1693
|
case 404:
|
|
1690
1694
|
throw new AthenaIntelligence.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1695
|
+
case 409:
|
|
1696
|
+
throw new AthenaIntelligence.ConflictError(_response.error.body, _response.rawResponse);
|
|
1691
1697
|
case 422:
|
|
1692
1698
|
throw new AthenaIntelligence.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1693
1699
|
default:
|
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.2250";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2250";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5938,7 +5938,7 @@ await client.agents.general.invoke({
|
|
|
5938
5938
|
<dl>
|
|
5939
5939
|
<dd>
|
|
5940
5940
|
|
|
5941
|
-
Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it.
|
|
5941
|
+
Start a general-agent run and return immediately with a `thread_id`. Use this instead of `/agents/general/invoke` for any call that may take more than a few seconds (tool use, multi-step work), so the HTTP connection is never held open past client or proxy timeouts. Poll `GET /threads/{thread_id}/status` until `status` is `completed` or `failed`; pass `include_messages=true` to read the agent's reply. Supply the `thread_id` of a general-agent thread you can access to continue it; 404/403 when it is unknown/not yours, 409 while a run is still in progress on it or while it is archived (restore it to continue it).
|
|
5942
5942
|
</dd>
|
|
5943
5943
|
</dl>
|
|
5944
5944
|
</dd>
|