@athenaintel/sdk 4.3.2166 → 4.3.2168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/aop/client/Client.d.ts +65 -8
- package/dist/cjs/api/resources/aop/client/Client.js +213 -11
- package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.ts +34 -0
- package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.js +3 -0
- package/dist/cjs/api/resources/aop/client/requests/ExecuteAsyncAopRequest.d.ts +22 -0
- package/dist/cjs/api/resources/aop/client/requests/ExecuteAsyncAopRequest.js +3 -0
- package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.ts +18 -0
- package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.js +3 -0
- package/dist/cjs/api/resources/aop/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/threads/client/Client.js +81 -0
- package/dist/cjs/api/resources/threads/client/requests/ThreadStatusBatchRequestIn.d.ts +10 -0
- package/dist/cjs/api/resources/threads/client/requests/ThreadStatusBatchRequestIn.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/AopAsyncExecuteResponseOut.d.ts +2 -0
- package/dist/cjs/api/types/AopBatchExecuteResponseOut.d.ts +16 -0
- package/dist/cjs/api/types/AopBatchExecuteResponseOut.js +3 -0
- package/dist/cjs/api/types/AopBatchRunIn.d.ts +13 -0
- package/dist/cjs/api/types/AopBatchRunIn.js +3 -0
- package/dist/cjs/api/types/AopBatchRunLaunchOut.d.ts +17 -0
- package/dist/cjs/api/types/AopBatchRunLaunchOut.js +3 -0
- package/dist/cjs/api/types/AopBatchRunStatusOut.d.ts +21 -0
- package/dist/cjs/api/types/AopBatchRunStatusOut.js +3 -0
- package/dist/cjs/api/types/AopBatchStatusCountsOut.d.ts +12 -0
- package/dist/cjs/api/types/AopBatchStatusCountsOut.js +3 -0
- package/dist/cjs/api/types/AopBatchStatusResponseOut.d.ts +20 -0
- package/dist/cjs/api/types/AopBatchStatusResponseOut.js +3 -0
- package/dist/cjs/api/types/ThreadStatusBatchItemOut.d.ts +27 -0
- package/dist/cjs/api/types/ThreadStatusBatchItemOut.js +3 -0
- package/dist/cjs/api/types/ThreadStatusBatchResponseOut.d.ts +20 -0
- package/dist/cjs/api/types/ThreadStatusBatchResponseOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +8 -0
- package/dist/cjs/api/types/index.js +8 -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/aop/client/Client.d.mts +65 -8
- package/dist/esm/api/resources/aop/client/Client.mjs +214 -12
- package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.mts +34 -0
- package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.mjs +2 -0
- package/dist/esm/api/resources/aop/client/requests/ExecuteAsyncAopRequest.d.mts +22 -0
- package/dist/esm/api/resources/aop/client/requests/ExecuteAsyncAopRequest.mjs +2 -0
- package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.mts +18 -0
- package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.mjs +2 -0
- package/dist/esm/api/resources/aop/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +81 -0
- package/dist/esm/api/resources/threads/client/requests/ThreadStatusBatchRequestIn.d.mts +10 -0
- package/dist/esm/api/resources/threads/client/requests/ThreadStatusBatchRequestIn.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/AopAsyncExecuteResponseOut.d.mts +2 -0
- package/dist/esm/api/types/AopBatchExecuteResponseOut.d.mts +16 -0
- package/dist/esm/api/types/AopBatchExecuteResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunIn.d.mts +13 -0
- package/dist/esm/api/types/AopBatchRunIn.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunLaunchOut.d.mts +17 -0
- package/dist/esm/api/types/AopBatchRunLaunchOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunStatusOut.d.mts +21 -0
- package/dist/esm/api/types/AopBatchRunStatusOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchStatusCountsOut.d.mts +12 -0
- package/dist/esm/api/types/AopBatchStatusCountsOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchStatusResponseOut.d.mts +20 -0
- package/dist/esm/api/types/AopBatchStatusResponseOut.mjs +2 -0
- package/dist/esm/api/types/ThreadStatusBatchItemOut.d.mts +27 -0
- package/dist/esm/api/types/ThreadStatusBatchItemOut.mjs +2 -0
- package/dist/esm/api/types/ThreadStatusBatchResponseOut.d.mts +20 -0
- package/dist/esm/api/types/ThreadStatusBatchResponseOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +8 -0
- package/dist/esm/api/types/index.mjs +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +220 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Response model for launching a batch of AOP runs.
|
|
4
|
+
*/
|
|
5
|
+
export interface AopBatchExecuteResponseOut {
|
|
6
|
+
/** Batch handle. Poll `GET /aop/batches/{batch_id}` for the whole batch instead of every thread, and pass it back to `POST /aop/execute-batch` to append more runs. Null when a new batch launched no runs: there is nothing to poll or append to, so no handle is issued. */
|
|
7
|
+
batch_id?: string | null;
|
|
8
|
+
/** Runs in this request that replayed an earlier launch (same `idempotency_key` / `client_ref` in this batch) instead of starting */
|
|
9
|
+
deduplicated?: number;
|
|
10
|
+
/** Runs in this request that could not be launched */
|
|
11
|
+
failed: number;
|
|
12
|
+
/** Runs accepted and queued in this request */
|
|
13
|
+
launched: number;
|
|
14
|
+
/** Per-run launch outcome, in request order */
|
|
15
|
+
runs: AthenaIntelligence.AopBatchRunLaunchOut[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One AOP run inside an execute-batch request.
|
|
3
|
+
*/
|
|
4
|
+
export interface AopBatchRunIn {
|
|
5
|
+
/** ID of the AOP asset to execute for this run. Defaults to the batch-level `asset_id` when omitted. */
|
|
6
|
+
asset_id?: string | null;
|
|
7
|
+
/** Caller-supplied correlation key (e.g. a row id) echoed back on the run in the batch status response. Unique within a batch: a later run with the same `client_ref` in the same batch is not launched again; its outcome is replayed with `deduplicated: true`. */
|
|
8
|
+
client_ref?: string | null;
|
|
9
|
+
/** Optional per-run idempotency key, scoped to your account and the batch. Repeating a run with the same key (and same parameters) replays the original launch outcome instead of starting a duplicate. Defaults to `client_ref` when omitted. */
|
|
10
|
+
idempotency_key?: string | null;
|
|
11
|
+
/** Optional user inputs to append to the AOP's prompt as key-value pairs */
|
|
12
|
+
user_inputs?: Record<string, string | null> | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outcome of launching one run of an execute-batch request.
|
|
3
|
+
*/
|
|
4
|
+
export interface AopBatchRunLaunchOut {
|
|
5
|
+
/** ID of the AOP asset the run executes */
|
|
6
|
+
aop_asset_id?: string | null;
|
|
7
|
+
/** Caller-supplied correlation key from the request */
|
|
8
|
+
client_ref?: string | null;
|
|
9
|
+
/** True when this run replays an earlier launch with the same `idempotency_key` / `client_ref` in this batch; no new run was started. */
|
|
10
|
+
deduplicated?: boolean;
|
|
11
|
+
/** Why the run could not be launched; null on success */
|
|
12
|
+
error?: string | null;
|
|
13
|
+
/** Position of the run in the request's `runs` list */
|
|
14
|
+
index: number;
|
|
15
|
+
/** Thread ID of the launched run; null when the launch failed */
|
|
16
|
+
thread_id?: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle status of one run in a batch (no messages).
|
|
3
|
+
*/
|
|
4
|
+
export interface AopBatchRunStatusOut {
|
|
5
|
+
/** ID of the AOP asset the run executes */
|
|
6
|
+
aop_asset_id?: string | null;
|
|
7
|
+
/** Caller-supplied correlation key from the launch request */
|
|
8
|
+
client_ref?: string | null;
|
|
9
|
+
/** ISO timestamp when the run reached a terminal state */
|
|
10
|
+
completed_at?: string | null;
|
|
11
|
+
/** When the run was queued */
|
|
12
|
+
created_at?: string | null;
|
|
13
|
+
/** Error message when the run failed */
|
|
14
|
+
error?: string | null;
|
|
15
|
+
/** True once the run is completed, failed or canceled */
|
|
16
|
+
is_terminal: boolean;
|
|
17
|
+
/** Canonical run status: scheduled, queued, running, needs_input, completed, failed or canceled */
|
|
18
|
+
status: string;
|
|
19
|
+
/** Thread ID; use `GET /threads/{thread_id}/status` for the result */
|
|
20
|
+
thread_id: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run counts of a batch by canonical run status.
|
|
3
|
+
*/
|
|
4
|
+
export interface AopBatchStatusCountsOut {
|
|
5
|
+
canceled?: number;
|
|
6
|
+
completed?: number;
|
|
7
|
+
failed?: number;
|
|
8
|
+
needs_input?: number;
|
|
9
|
+
queued?: number;
|
|
10
|
+
running?: number;
|
|
11
|
+
scheduled?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Response model for the status of an execute-batch.
|
|
4
|
+
*/
|
|
5
|
+
export interface AopBatchStatusResponseOut {
|
|
6
|
+
/** The batch handle that was checked */
|
|
7
|
+
batch_id: string;
|
|
8
|
+
/** Runs per canonical status */
|
|
9
|
+
counts: AthenaIntelligence.AopBatchStatusCountsOut;
|
|
10
|
+
/** True when every run in the batch has finished */
|
|
11
|
+
is_complete: boolean;
|
|
12
|
+
/** Opaque cursor for the next page of `runs`; null when this page is the last one. Pass it as `cursor` on the next call. */
|
|
13
|
+
next_cursor?: string | null;
|
|
14
|
+
/** One page of runs matching the `status` filter, ordered by cursor */
|
|
15
|
+
runs: AthenaIntelligence.AopBatchRunStatusOut[];
|
|
16
|
+
/** Runs that have finished (completed + failed + canceled) */
|
|
17
|
+
terminal: number;
|
|
18
|
+
/** Runs launched into the batch so far */
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle status of one thread (no messages).
|
|
3
|
+
*/
|
|
4
|
+
export interface ThreadStatusBatchItemOut {
|
|
5
|
+
/** ID of the AOP asset the run executes */
|
|
6
|
+
aop_asset_id?: string | null;
|
|
7
|
+
/** Batch handle when the thread was launched via execute-batch */
|
|
8
|
+
batch_id?: string | null;
|
|
9
|
+
/** Caller-supplied correlation key from the launch request */
|
|
10
|
+
client_ref?: string | null;
|
|
11
|
+
/** ISO timestamp when the run reached a terminal state */
|
|
12
|
+
completed_at?: string | null;
|
|
13
|
+
/** When the run was queued */
|
|
14
|
+
created_at?: string | null;
|
|
15
|
+
/** Error message when the run failed */
|
|
16
|
+
error?: string | null;
|
|
17
|
+
/** True once the run is completed, failed or canceled */
|
|
18
|
+
is_terminal: boolean;
|
|
19
|
+
/** True once the run completed successfully and its result can be read from `GET /threads/{thread_id}/status` */
|
|
20
|
+
output_available: boolean;
|
|
21
|
+
/** Canonical run status: scheduled, queued, running, needs_input, completed, failed or canceled */
|
|
22
|
+
status: string;
|
|
23
|
+
/** Thread ID; use `GET /threads/{thread_id}/status` for the result */
|
|
24
|
+
thread_id: string;
|
|
25
|
+
/** When the thread's lifecycle state last changed */
|
|
26
|
+
updated_at?: string | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as AthenaIntelligence from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Response model for the status of many threads.
|
|
4
|
+
*/
|
|
5
|
+
export interface ThreadStatusBatchResponseOut {
|
|
6
|
+
/** Found threads per canonical status */
|
|
7
|
+
counts: AthenaIntelligence.AopBatchStatusCountsOut;
|
|
8
|
+
/** Requested threads that exist and belong to you */
|
|
9
|
+
found: number;
|
|
10
|
+
/** True when every found thread has finished */
|
|
11
|
+
is_complete: boolean;
|
|
12
|
+
/** Requested thread IDs that do not exist or are not yours; the two cases are indistinguishable */
|
|
13
|
+
not_found: string[];
|
|
14
|
+
/** Distinct thread IDs in the request */
|
|
15
|
+
requested: number;
|
|
16
|
+
/** Found threads that have finished (completed + failed + canceled) */
|
|
17
|
+
terminal: number;
|
|
18
|
+
/** One entry per found thread, in request order */
|
|
19
|
+
threads: AthenaIntelligence.ThreadStatusBatchItemOut[];
|
|
20
|
+
}
|
|
@@ -2,6 +2,12 @@ export * from "./ActivityClockRangeIn.js";
|
|
|
2
2
|
export * from "./ActivityDeltaOut.js";
|
|
3
3
|
export * from "./ActivityItemOut.js";
|
|
4
4
|
export * from "./AopAsyncExecuteResponseOut.js";
|
|
5
|
+
export * from "./AopBatchExecuteResponseOut.js";
|
|
6
|
+
export * from "./AopBatchRunIn.js";
|
|
7
|
+
export * from "./AopBatchRunLaunchOut.js";
|
|
8
|
+
export * from "./AopBatchRunStatusOut.js";
|
|
9
|
+
export * from "./AopBatchStatusCountsOut.js";
|
|
10
|
+
export * from "./AopBatchStatusResponseOut.js";
|
|
5
11
|
export * from "./AopConfigResponseOut.js";
|
|
6
12
|
export * from "./AopConfigUpdateResponseOut.js";
|
|
7
13
|
export * from "./AopCreateResponseOut.js";
|
|
@@ -119,6 +125,8 @@ export * from "./ThinkingContent.js";
|
|
|
119
125
|
export * from "./ThreadBatchStopRequest.js";
|
|
120
126
|
export * from "./ThreadBatchStopResponseOut.js";
|
|
121
127
|
export * from "./ThreadBatchStopResultItem.js";
|
|
128
|
+
export * from "./ThreadStatusBatchItemOut.js";
|
|
129
|
+
export * from "./ThreadStatusBatchResponseOut.js";
|
|
122
130
|
export * from "./ThreadStatusResponseOut.js";
|
|
123
131
|
export * from "./ThreadStopResponseOut.js";
|
|
124
132
|
export * from "./ToolResultContent.js";
|
|
@@ -18,6 +18,12 @@ __exportStar(require("./ActivityClockRangeIn.js"), exports);
|
|
|
18
18
|
__exportStar(require("./ActivityDeltaOut.js"), exports);
|
|
19
19
|
__exportStar(require("./ActivityItemOut.js"), exports);
|
|
20
20
|
__exportStar(require("./AopAsyncExecuteResponseOut.js"), exports);
|
|
21
|
+
__exportStar(require("./AopBatchExecuteResponseOut.js"), exports);
|
|
22
|
+
__exportStar(require("./AopBatchRunIn.js"), exports);
|
|
23
|
+
__exportStar(require("./AopBatchRunLaunchOut.js"), exports);
|
|
24
|
+
__exportStar(require("./AopBatchRunStatusOut.js"), exports);
|
|
25
|
+
__exportStar(require("./AopBatchStatusCountsOut.js"), exports);
|
|
26
|
+
__exportStar(require("./AopBatchStatusResponseOut.js"), exports);
|
|
21
27
|
__exportStar(require("./AopConfigResponseOut.js"), exports);
|
|
22
28
|
__exportStar(require("./AopConfigUpdateResponseOut.js"), exports);
|
|
23
29
|
__exportStar(require("./AopCreateResponseOut.js"), exports);
|
|
@@ -135,6 +141,8 @@ __exportStar(require("./ThinkingContent.js"), exports);
|
|
|
135
141
|
__exportStar(require("./ThreadBatchStopRequest.js"), exports);
|
|
136
142
|
__exportStar(require("./ThreadBatchStopResponseOut.js"), exports);
|
|
137
143
|
__exportStar(require("./ThreadBatchStopResultItem.js"), exports);
|
|
144
|
+
__exportStar(require("./ThreadStatusBatchItemOut.js"), exports);
|
|
145
|
+
__exportStar(require("./ThreadStatusBatchResponseOut.js"), exports);
|
|
138
146
|
__exportStar(require("./ThreadStatusResponseOut.js"), exports);
|
|
139
147
|
__exportStar(require("./ThreadStopResponseOut.js"), exports);
|
|
140
148
|
__exportStar(require("./ToolResultContent.js"), exports);
|
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.2168";
|
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.2168",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.2168",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -11,6 +11,26 @@ export declare namespace AopClient {
|
|
|
11
11
|
export declare class AopClient {
|
|
12
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<AopClient.Options>;
|
|
13
13
|
constructor(options?: AopClient.Options);
|
|
14
|
+
/**
|
|
15
|
+
* Aggregate lifecycle status of every run launched under a batch handle from `POST /aop/execute-batch`: counts per canonical run status, an `is_complete` flag, and a cursor-paged list of runs. Poll this once per batch instead of `GET /threads/{thread_id}/status` per thread; fetch a run's messages from the thread status endpoint only once it is terminal. This read never loads transcripts.
|
|
16
|
+
*
|
|
17
|
+
* @param {AthenaIntelligence.GetBatchStatusAopRequest} request
|
|
18
|
+
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
21
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
22
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
23
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.aop.getBatchStatus({
|
|
27
|
+
* batch_id: "batch_0f4c3c3e-1c1a-4a3e-9a5f-0d3f1a2b3c4d",
|
|
28
|
+
* status: "terminal",
|
|
29
|
+
* limit: 200
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
getBatchStatus(request: AthenaIntelligence.GetBatchStatusAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopBatchStatusResponseOut>;
|
|
33
|
+
private __getBatchStatus;
|
|
14
34
|
/**
|
|
15
35
|
* Create a new AOP (Agent Operating Procedure) asset with the given configuration. The created AOP can then be executed via /aop/execute-async, inspected via /aop/{asset_id}/config, and updated via PUT /aop/{asset_id}/config. Use [[ placeholder ]] syntax in the prompt for user inputs supplied at execution time.
|
|
16
36
|
*
|
|
@@ -65,32 +85,69 @@ export declare class AopClient {
|
|
|
65
85
|
execute(request: AthenaIntelligence.AopExecuteRequestIn, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopExecuteResponseOut>;
|
|
66
86
|
private __execute;
|
|
67
87
|
/**
|
|
68
|
-
* Start execution of an Agent Operating Procedure (AOP) asset asynchronously. Returns immediately with a thread_id for tracking execution progress without waiting for completion.
|
|
88
|
+
* Start execution of an Agent Operating Procedure (AOP) asset asynchronously. Returns immediately with a thread_id for tracking execution progress without waiting for completion. Send an `Idempotency-Key` header to make the launch safe to retry: if the response is lost, repeating the identical request with the same key returns the original `thread_id` (with `deduplicated: true`) instead of starting a second run. Keys are private to your account; reusing a key with different parameters is rejected with 422, and a retry that races the first attempt gets 409.
|
|
69
89
|
*
|
|
70
|
-
* @param {AthenaIntelligence.
|
|
90
|
+
* @param {AthenaIntelligence.ExecuteAsyncAopRequest} request
|
|
71
91
|
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
92
|
*
|
|
73
93
|
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
74
94
|
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
75
95
|
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
96
|
+
* @throws {@link AthenaIntelligence.ConflictError}
|
|
76
97
|
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
77
98
|
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
78
99
|
*
|
|
79
100
|
* @example
|
|
80
101
|
* await client.aop.executeAsync({
|
|
102
|
+
* body: {
|
|
103
|
+
* asset_id: "asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
104
|
+
* run_budget: {
|
|
105
|
+
* max_cost_usd: 30,
|
|
106
|
+
* max_model_calls: 80
|
|
107
|
+
* },
|
|
108
|
+
* user_inputs: {
|
|
109
|
+
* "company": "Acme Corp",
|
|
110
|
+
* "quarter": "Q1 2024"
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
* })
|
|
114
|
+
*/
|
|
115
|
+
executeAsync(request: AthenaIntelligence.ExecuteAsyncAopRequest, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopAsyncExecuteResponseOut>;
|
|
116
|
+
private __executeAsync;
|
|
117
|
+
/**
|
|
118
|
+
* Start many Agent Operating Procedure (AOP) runs under one batch handle. Each run is queued exactly like `POST /aop/execute-async`; the response returns a `batch_id` so the caller polls `GET /aop/batches/{batch_id}` once per batch instead of once per thread. Pass the `batch_id` back to append more runs to the same batch. Runs are launched independently: a run that fails to launch is reported with an error and does not stop the others. Runs are idempotent within a batch: a run whose `idempotency_key` (or, when omitted, `client_ref`) was already launched into the same batch with the same parameters is not started again; its original outcome is replayed with `deduplicated: true`.
|
|
119
|
+
*
|
|
120
|
+
* @param {AthenaIntelligence.AopBatchExecuteRequestIn} request
|
|
121
|
+
* @param {AopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link AthenaIntelligence.BadRequestError}
|
|
124
|
+
* @throws {@link AthenaIntelligence.UnauthorizedError}
|
|
125
|
+
* @throws {@link AthenaIntelligence.NotFoundError}
|
|
126
|
+
* @throws {@link AthenaIntelligence.UnprocessableEntityError}
|
|
127
|
+
* @throws {@link AthenaIntelligence.InternalServerError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.aop.executeBatch({
|
|
81
131
|
* asset_id: "asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
82
132
|
* run_budget: {
|
|
83
133
|
* max_cost_usd: 30,
|
|
84
134
|
* max_model_calls: 80
|
|
85
135
|
* },
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
136
|
+
* runs: [{
|
|
137
|
+
* client_ref: "row-1",
|
|
138
|
+
* user_inputs: {
|
|
139
|
+
* "company": "Acme Corp"
|
|
140
|
+
* }
|
|
141
|
+
* }, {
|
|
142
|
+
* client_ref: "row-2",
|
|
143
|
+
* user_inputs: {
|
|
144
|
+
* "company": "Globex"
|
|
145
|
+
* }
|
|
146
|
+
* }]
|
|
90
147
|
* })
|
|
91
148
|
*/
|
|
92
|
-
|
|
93
|
-
private
|
|
149
|
+
executeBatch(request: AthenaIntelligence.AopBatchExecuteRequestIn, requestOptions?: AopClient.RequestOptions): core.HttpResponsePromise<AthenaIntelligence.AopBatchExecuteResponseOut>;
|
|
150
|
+
private __executeBatch;
|
|
94
151
|
/**
|
|
95
152
|
* Retrieve the full configuration of an AOP asset by its ID. Returns prompt, agent config, structured output schema, and other settings.
|
|
96
153
|
*
|