@agent-os-sdk/client 0.9.26 → 0.9.28
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/client/AgentOsClient.d.ts +141 -0
- package/dist/client/AgentOsClient.d.ts.map +1 -0
- package/{src/client/AgentOsClient.ts → dist/client/AgentOsClient.js} +61 -105
- package/dist/client/HttpRequestBuilder.d.ts +50 -0
- package/dist/client/HttpRequestBuilder.d.ts.map +1 -0
- package/{src/client/HttpRequestBuilder.ts → dist/client/HttpRequestBuilder.js} +9 -41
- package/{src/client/OperationContext.ts → dist/client/OperationContext.d.ts} +6 -9
- package/dist/client/OperationContext.d.ts.map +1 -0
- package/dist/client/OperationContext.js +13 -0
- package/dist/client/OperationContextProvider.d.ts +54 -0
- package/dist/client/OperationContextProvider.d.ts.map +1 -0
- package/{src/client/OperationContextProvider.ts → dist/client/OperationContextProvider.js} +17 -35
- package/{src/client/auth.ts → dist/client/auth.d.ts} +29 -65
- package/dist/client/auth.d.ts.map +1 -0
- package/dist/client/auth.js +38 -0
- package/dist/client/config.d.ts +49 -0
- package/dist/client/config.d.ts.map +1 -0
- package/{src/client/config.ts → dist/client/config.js} +5 -43
- package/dist/client/helpers.d.ts +63 -0
- package/dist/client/helpers.d.ts.map +1 -0
- package/{src/client/helpers.ts → dist/client/helpers.js} +9 -52
- package/dist/client/pagination.d.ts +105 -0
- package/dist/client/pagination.d.ts.map +1 -0
- package/{src/client/pagination.ts → dist/client/pagination.js} +15 -116
- package/dist/client/raw.d.ts +277 -0
- package/dist/client/raw.d.ts.map +1 -0
- package/dist/client/raw.js +337 -0
- package/dist/client/retry.d.ts +37 -0
- package/dist/client/retry.d.ts.map +1 -0
- package/{src/client/retry.ts → dist/client/retry.js} +13 -55
- package/dist/client/sanitize.d.ts +19 -0
- package/dist/client/sanitize.d.ts.map +1 -0
- package/{src/client/sanitize.ts → dist/client/sanitize.js} +4 -7
- package/dist/client/timeout.d.ts +26 -0
- package/dist/client/timeout.d.ts.map +1 -0
- package/{src/client/timeout.ts → dist/client/timeout.js} +10 -18
- package/dist/errors/factory.d.ts +22 -0
- package/dist/errors/factory.d.ts.map +1 -0
- package/{src/errors/factory.ts → dist/errors/factory.js} +18 -57
- package/dist/errors/index.d.ts +210 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/{src/errors/index.ts → dist/errors/index.js} +74 -156
- package/{src/generated/client.ts → dist/generated/client.d.ts} +5 -17
- package/dist/generated/client.d.ts.map +1 -0
- package/dist/generated/client.js +15 -0
- package/{src/generated/index.ts → dist/generated/index.d.ts} +1 -1
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +1 -0
- package/{src/generated/openapi.ts → dist/generated/openapi.d.ts} +1 -1
- package/dist/generated/openapi.d.ts.map +1 -0
- package/dist/generated/openapi.js +5 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.d.ts.map +1 -0
- package/{src/index.ts → dist/index.js} +13 -63
- package/dist/modules/a2a.d.ts +48 -0
- package/dist/modules/a2a.d.ts.map +1 -0
- package/dist/modules/a2a.js +37 -0
- package/dist/modules/agents.d.ts +346 -0
- package/dist/modules/agents.d.ts.map +1 -0
- package/dist/modules/agents.js +296 -0
- package/dist/modules/apiTokens.d.ts +62 -0
- package/dist/modules/apiTokens.d.ts.map +1 -0
- package/dist/modules/apiTokens.js +56 -0
- package/dist/modules/approvals.d.ts +77 -0
- package/dist/modules/approvals.d.ts.map +1 -0
- package/dist/modules/approvals.js +91 -0
- package/dist/modules/audit.d.ts +78 -0
- package/dist/modules/audit.d.ts.map +1 -0
- package/{src/modules/audit.ts → dist/modules/audit.js} +23 -74
- package/{src/modules/auth.ts → dist/modules/auth.d.ts} +6 -11
- package/dist/modules/auth.d.ts.map +1 -0
- package/dist/modules/auth.js +22 -0
- package/dist/modules/builder.d.ts +242 -0
- package/dist/modules/builder.d.ts.map +1 -0
- package/dist/modules/builder.js +248 -0
- package/dist/modules/catalog.d.ts +142 -0
- package/dist/modules/catalog.d.ts.map +1 -0
- package/dist/modules/catalog.js +136 -0
- package/dist/modules/chatwoot.d.ts +59 -0
- package/dist/modules/chatwoot.d.ts.map +1 -0
- package/dist/modules/chatwoot.js +200 -0
- package/dist/modules/checkpoints.d.ts +62 -0
- package/dist/modules/checkpoints.d.ts.map +1 -0
- package/dist/modules/checkpoints.js +48 -0
- package/dist/modules/contracts.d.ts +48 -0
- package/dist/modules/contracts.d.ts.map +1 -0
- package/dist/modules/contracts.js +25 -0
- package/dist/modules/credentials.d.ts +105 -0
- package/dist/modules/credentials.d.ts.map +1 -0
- package/dist/modules/credentials.js +135 -0
- package/dist/modules/crons.d.ts +73 -0
- package/dist/modules/crons.d.ts.map +1 -0
- package/dist/modules/crons.js +67 -0
- package/dist/modules/datasets.d.ts +80 -0
- package/dist/modules/datasets.d.ts.map +1 -0
- package/dist/modules/datasets.js +91 -0
- package/{src/modules/evaluation.ts → dist/modules/evaluation.d.ts} +23 -109
- package/dist/modules/evaluation.d.ts.map +1 -0
- package/dist/modules/evaluation.js +108 -0
- package/dist/modules/files.d.ts +89 -0
- package/dist/modules/files.d.ts.map +1 -0
- package/dist/modules/files.js +133 -0
- package/dist/modules/graphs.d.ts +120 -0
- package/dist/modules/graphs.d.ts.map +1 -0
- package/dist/modules/graphs.js +69 -0
- package/{src/modules/improvements.ts → dist/modules/improvements.d.ts} +8 -27
- package/dist/modules/improvements.d.ts.map +1 -0
- package/dist/modules/improvements.js +27 -0
- package/dist/modules/info.d.ts +76 -0
- package/dist/modules/info.d.ts.map +1 -0
- package/{src/modules/info.ts → dist/modules/info.js} +16 -66
- package/dist/modules/knowledge.d.ts +91 -0
- package/dist/modules/knowledge.d.ts.map +1 -0
- package/dist/modules/knowledge.js +80 -0
- package/{src/modules/me.ts → dist/modules/me.d.ts} +7 -23
- package/dist/modules/me.d.ts.map +1 -0
- package/dist/modules/me.js +28 -0
- package/dist/modules/members.d.ts +124 -0
- package/dist/modules/members.d.ts.map +1 -0
- package/dist/modules/members.js +142 -0
- package/dist/modules/memberships.d.ts +25 -0
- package/dist/modules/memberships.d.ts.map +1 -0
- package/dist/modules/memberships.js +20 -0
- package/{src/modules/metaAgent.ts → dist/modules/metaAgent.d.ts} +8 -44
- package/dist/modules/metaAgent.d.ts.map +1 -0
- package/dist/modules/metaAgent.js +32 -0
- package/dist/modules/metrics.d.ts +20 -0
- package/dist/modules/metrics.d.ts.map +1 -0
- package/{src/modules/metrics.ts → dist/modules/metrics.js} +7 -14
- package/dist/modules/observability.d.ts +19 -0
- package/dist/modules/observability.d.ts.map +1 -0
- package/dist/modules/observability.js +14 -0
- package/dist/modules/playground.d.ts +42 -0
- package/dist/modules/playground.d.ts.map +1 -0
- package/dist/modules/playground.js +48 -0
- package/dist/modules/presets.d.ts +32 -0
- package/dist/modules/presets.d.ts.map +1 -0
- package/dist/modules/presets.js +199 -0
- package/dist/modules/prompts.d.ts +87 -0
- package/dist/modules/prompts.d.ts.map +1 -0
- package/dist/modules/prompts.js +87 -0
- package/dist/modules/roles.d.ts +64 -0
- package/dist/modules/roles.d.ts.map +1 -0
- package/dist/modules/roles.js +79 -0
- package/dist/modules/runs.d.ts +451 -0
- package/dist/modules/runs.d.ts.map +1 -0
- package/{src/modules/runs.ts → dist/modules/runs.js} +96 -438
- package/dist/modules/store.d.ts +37 -0
- package/dist/modules/store.d.ts.map +1 -0
- package/dist/modules/store.js +48 -0
- package/{src/modules/templates.ts → dist/modules/templates.d.ts} +8 -32
- package/dist/modules/templates.d.ts.map +1 -0
- package/dist/modules/templates.js +26 -0
- package/dist/modules/tenants.d.ts +49 -0
- package/dist/modules/tenants.d.ts.map +1 -0
- package/dist/modules/tenants.js +56 -0
- package/dist/modules/threads.d.ts +205 -0
- package/dist/modules/threads.d.ts.map +1 -0
- package/dist/modules/threads.js +225 -0
- package/dist/modules/tools.d.ts +62 -0
- package/dist/modules/tools.d.ts.map +1 -0
- package/dist/modules/tools.js +45 -0
- package/dist/modules/traces.d.ts +89 -0
- package/dist/modules/traces.d.ts.map +1 -0
- package/dist/modules/traces.js +65 -0
- package/{src/modules/triggers.ts → dist/modules/triggers.d.ts} +24 -153
- package/dist/modules/triggers.d.ts.map +1 -0
- package/dist/modules/triggers.js +176 -0
- package/{src/modules/usage.ts → dist/modules/usage.d.ts} +14 -46
- package/dist/modules/usage.d.ts.map +1 -0
- package/dist/modules/usage.js +43 -0
- package/dist/modules/vectorStores.d.ts +100 -0
- package/dist/modules/vectorStores.d.ts.map +1 -0
- package/dist/modules/vectorStores.js +159 -0
- package/dist/modules/workspaces.d.ts +138 -0
- package/dist/modules/workspaces.d.ts.map +1 -0
- package/dist/modules/workspaces.js +121 -0
- package/dist/sse/client.d.ts +140 -0
- package/dist/sse/client.d.ts.map +1 -0
- package/{src/sse/client.ts → dist/sse/client.js} +24 -100
- package/package.json +8 -15
- package/src/client/raw.ts +0 -609
- package/src/generated/swagger.json +0 -17014
- package/src/modules/a2a.ts +0 -64
- package/src/modules/agents.ts +0 -604
- package/src/modules/apiTokens.ts +0 -101
- package/src/modules/approvals.ts +0 -151
- package/src/modules/catalog.ts +0 -241
- package/src/modules/chatwoot.ts +0 -242
- package/src/modules/checkpoints.ts +0 -87
- package/src/modules/contracts.ts +0 -80
- package/src/modules/credentials.ts +0 -216
- package/src/modules/crons.ts +0 -115
- package/src/modules/datasets.ts +0 -142
- package/src/modules/files.ts +0 -208
- package/src/modules/members.ts +0 -199
- package/src/modules/memberships.ts +0 -42
- package/src/modules/observability.ts +0 -28
- package/src/modules/playground.ts +0 -68
- package/src/modules/presets.ts +0 -246
- package/src/modules/prompts.ts +0 -147
- package/src/modules/roles.ts +0 -112
- package/src/modules/store.ts +0 -65
- package/src/modules/tenants.ts +0 -79
- package/src/modules/threads.ts +0 -343
- package/src/modules/tools.ts +0 -91
- package/src/modules/traces.ts +0 -133
- package/src/modules/vectorStores.ts +0 -257
- package/src/modules/workspaces.ts +0 -216
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs Module - Core execution API (Fully Typed)
|
|
3
|
+
*
|
|
4
|
+
* Naming conventions:
|
|
5
|
+
* - get* for singular items
|
|
6
|
+
* - list* for collections
|
|
7
|
+
* - create*, update*, delete* for mutations
|
|
8
|
+
*/
|
|
9
|
+
import type { RawClient, APIResponse, components } from "../client/raw.js";
|
|
10
|
+
import type { PaginationParams, PaginatedResponse } from "../client/helpers.js";
|
|
11
|
+
import { type SSEEvent } from "../sse/client.js";
|
|
12
|
+
type WaitRunResponse = components["schemas"]["WaitRunResponse"];
|
|
13
|
+
type BatchRunResponse = components["schemas"]["BatchRunResponse"];
|
|
14
|
+
type CancelRunResponse = components["schemas"]["CancelRunResponse"];
|
|
15
|
+
type CheckpointIndexResponse = components["schemas"]["CheckpointIndexResponse"];
|
|
16
|
+
type RunReplayResponse = components["schemas"]["RunReplayResponse"];
|
|
17
|
+
export interface Run {
|
|
18
|
+
run_id: string;
|
|
19
|
+
status: RunStatus;
|
|
20
|
+
thread_id?: string;
|
|
21
|
+
agent_id: string;
|
|
22
|
+
bundle_id?: string;
|
|
23
|
+
agent_version_id?: string;
|
|
24
|
+
tenant_id: string;
|
|
25
|
+
workspace_id: string;
|
|
26
|
+
input?: unknown;
|
|
27
|
+
output?: unknown;
|
|
28
|
+
error?: unknown;
|
|
29
|
+
current_attempt_id?: string;
|
|
30
|
+
current_attempt_no?: number;
|
|
31
|
+
latest_seq?: number;
|
|
32
|
+
created_at: string;
|
|
33
|
+
started_at?: string;
|
|
34
|
+
completed_at?: string;
|
|
35
|
+
duration_ms?: number;
|
|
36
|
+
reused?: boolean;
|
|
37
|
+
human_prompt?: string;
|
|
38
|
+
checkpoint_id?: string;
|
|
39
|
+
replayed_from_run_id?: string;
|
|
40
|
+
replayed_from_checkpoint_id?: string;
|
|
41
|
+
replay_mode?: "best_effort" | "strict";
|
|
42
|
+
}
|
|
43
|
+
export type RunStatus = "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "waiting_for_human" | "resumed";
|
|
44
|
+
export interface CreateRunResponse {
|
|
45
|
+
run_id: string;
|
|
46
|
+
status: string;
|
|
47
|
+
reused?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export type RunListResponse = PaginatedResponse<Run>;
|
|
50
|
+
/** Wave 2.3: Seq-based polling response for execution events */
|
|
51
|
+
export interface RunEventsPollResponse {
|
|
52
|
+
events: RunEventDto[];
|
|
53
|
+
latest_seq: number;
|
|
54
|
+
next_after_seq: number | null;
|
|
55
|
+
has_more: boolean;
|
|
56
|
+
}
|
|
57
|
+
/** Single event from seq-based polling */
|
|
58
|
+
export interface RunEventDto {
|
|
59
|
+
id: string;
|
|
60
|
+
seq: number;
|
|
61
|
+
type: string;
|
|
62
|
+
timestamp: string;
|
|
63
|
+
attempt_id: string;
|
|
64
|
+
payload: Record<string, unknown> | null;
|
|
65
|
+
operation_id: string;
|
|
66
|
+
parent_operation_id?: string | null;
|
|
67
|
+
root_operation_id: string;
|
|
68
|
+
}
|
|
69
|
+
export interface RunInspectionResponse {
|
|
70
|
+
run: Record<string, unknown>;
|
|
71
|
+
replay: Record<string, unknown>;
|
|
72
|
+
failure: Record<string, unknown>;
|
|
73
|
+
attempts: Array<Record<string, unknown>>;
|
|
74
|
+
node_executions: Array<Record<string, unknown>>;
|
|
75
|
+
events: Array<Record<string, unknown>>;
|
|
76
|
+
}
|
|
77
|
+
export interface RunFailureRetentionItem {
|
|
78
|
+
failure_id: string;
|
|
79
|
+
failure_scope: string;
|
|
80
|
+
run_id: string;
|
|
81
|
+
attempt_id: string;
|
|
82
|
+
attempt_no: number;
|
|
83
|
+
agent_id?: string | null;
|
|
84
|
+
thread_id: string;
|
|
85
|
+
node_execution_id?: string | null;
|
|
86
|
+
operation_id?: string | null;
|
|
87
|
+
capability_ref?: string | null;
|
|
88
|
+
capability_version?: string | null;
|
|
89
|
+
execution_binding?: string | null;
|
|
90
|
+
source_kind: string;
|
|
91
|
+
ancestry_kind: string;
|
|
92
|
+
status: string;
|
|
93
|
+
error_code: string;
|
|
94
|
+
error_category: string;
|
|
95
|
+
is_retryable: boolean;
|
|
96
|
+
error_source: string;
|
|
97
|
+
provider_error_code?: string | null;
|
|
98
|
+
error_summary: string;
|
|
99
|
+
retried_from_node_execution_id?: string | null;
|
|
100
|
+
replayed_from_node_execution_id?: string | null;
|
|
101
|
+
can_retry: boolean;
|
|
102
|
+
retry_from_node_execution_id?: string | null;
|
|
103
|
+
can_replay: boolean;
|
|
104
|
+
replay_from_node_execution_id?: string | null;
|
|
105
|
+
failed_at: string;
|
|
106
|
+
created_at: string;
|
|
107
|
+
}
|
|
108
|
+
export interface RunFailureRetentionListResponse {
|
|
109
|
+
items: RunFailureRetentionItem[];
|
|
110
|
+
count: number;
|
|
111
|
+
}
|
|
112
|
+
export interface RunFailureRetentionDetailResponse {
|
|
113
|
+
failure: RunFailureRetentionItem;
|
|
114
|
+
payload?: unknown;
|
|
115
|
+
}
|
|
116
|
+
export interface RunObservabilitySummaryResponse {
|
|
117
|
+
workspace_id: string;
|
|
118
|
+
agent_id?: string | null;
|
|
119
|
+
from?: string | null;
|
|
120
|
+
to?: string | null;
|
|
121
|
+
runs_total: number;
|
|
122
|
+
runs_completed: number;
|
|
123
|
+
runs_failed: number;
|
|
124
|
+
node_executions_total: number;
|
|
125
|
+
node_executions_failed: number;
|
|
126
|
+
retry_count: number;
|
|
127
|
+
replay_count: number;
|
|
128
|
+
handoff_count: number;
|
|
129
|
+
avg_run_latency_ms: number;
|
|
130
|
+
p95_run_latency_ms: number;
|
|
131
|
+
avg_node_latency_ms: number;
|
|
132
|
+
failure_rate: number;
|
|
133
|
+
top_error_categories: Array<{
|
|
134
|
+
error_category: string;
|
|
135
|
+
count: number;
|
|
136
|
+
}>;
|
|
137
|
+
}
|
|
138
|
+
export interface RunObservabilityCapabilityListResponse {
|
|
139
|
+
items: Array<Record<string, unknown>>;
|
|
140
|
+
count: number;
|
|
141
|
+
}
|
|
142
|
+
export interface RunObservabilityBindingListResponse {
|
|
143
|
+
items: Array<Record<string, unknown>>;
|
|
144
|
+
count: number;
|
|
145
|
+
}
|
|
146
|
+
export declare class RunsModule {
|
|
147
|
+
private client;
|
|
148
|
+
constructor(client: RawClient);
|
|
149
|
+
/**
|
|
150
|
+
* Create a new run.
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const { data } = await client.runs.create({
|
|
154
|
+
* agent_id: "agent-uuid",
|
|
155
|
+
* input: { message: "Hello" }
|
|
156
|
+
* });
|
|
157
|
+
*
|
|
158
|
+
* // With idempotency (safe to retry)
|
|
159
|
+
* const { data } = await client.runs.create({
|
|
160
|
+
* agent_id: "agent-uuid",
|
|
161
|
+
* input: { message: "Hello" },
|
|
162
|
+
* idempotency_key: "my-unique-key"
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
create(body: {
|
|
167
|
+
agent_id: string;
|
|
168
|
+
thread?: {
|
|
169
|
+
thread_id?: string;
|
|
170
|
+
} | {
|
|
171
|
+
new_thread: true;
|
|
172
|
+
};
|
|
173
|
+
input?: unknown;
|
|
174
|
+
/** Optional bundle pinning (draft/published). When omitted, backend resolves live bundle. */
|
|
175
|
+
bundle_id?: string;
|
|
176
|
+
/** Idempotency key for safe retries. When set, duplicate requests with the same key return the original response. */
|
|
177
|
+
idempotency_key?: string;
|
|
178
|
+
}): Promise<APIResponse<CreateRunResponse>>;
|
|
179
|
+
/**
|
|
180
|
+
* Get a run by ID.
|
|
181
|
+
*/
|
|
182
|
+
get(runId: string): Promise<APIResponse<Run>>;
|
|
183
|
+
getInspection(runId: string): Promise<APIResponse<RunInspectionResponse>>;
|
|
184
|
+
listFailures(params?: {
|
|
185
|
+
agent_id?: string;
|
|
186
|
+
capability_ref?: string;
|
|
187
|
+
error_category?: string;
|
|
188
|
+
retryable?: boolean;
|
|
189
|
+
from?: string;
|
|
190
|
+
to?: string;
|
|
191
|
+
limit?: number;
|
|
192
|
+
offset?: number;
|
|
193
|
+
}): Promise<APIResponse<RunFailureRetentionListResponse>>;
|
|
194
|
+
getFailure(failureId: string): Promise<APIResponse<RunFailureRetentionDetailResponse>>;
|
|
195
|
+
/**
|
|
196
|
+
* List runs with optional filters.
|
|
197
|
+
*/
|
|
198
|
+
list(params?: PaginationParams & {
|
|
199
|
+
thread_id?: string;
|
|
200
|
+
agent_id?: string;
|
|
201
|
+
status?: string;
|
|
202
|
+
}): Promise<APIResponse<RunListResponse>>;
|
|
203
|
+
/**
|
|
204
|
+
* Iterate through all runs with automatic pagination.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```ts
|
|
208
|
+
* // Stream all completed runs
|
|
209
|
+
* for await (const run of client.runs.iterate({ status: "completed" })) {
|
|
210
|
+
* console.log(run.run_id, run.status);
|
|
211
|
+
* }
|
|
212
|
+
*
|
|
213
|
+
* // With limit
|
|
214
|
+
* for await (const run of client.runs.iterate({ agent_id: "..." }, { maxItems: 100 })) {
|
|
215
|
+
* processRun(run);
|
|
216
|
+
* }
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
iterate(filters?: {
|
|
220
|
+
thread_id?: string;
|
|
221
|
+
agent_id?: string;
|
|
222
|
+
status?: string;
|
|
223
|
+
}, options?: {
|
|
224
|
+
pageSize?: number;
|
|
225
|
+
maxItems?: number;
|
|
226
|
+
signal?: AbortSignal;
|
|
227
|
+
}): AsyncGenerator<Run, void, unknown>;
|
|
228
|
+
/**
|
|
229
|
+
* Wait for run completion synchronously.
|
|
230
|
+
*/
|
|
231
|
+
wait(body: {
|
|
232
|
+
agent_id: string;
|
|
233
|
+
thread?: {
|
|
234
|
+
thread_id?: string;
|
|
235
|
+
} | {
|
|
236
|
+
new_thread: true;
|
|
237
|
+
};
|
|
238
|
+
input?: unknown;
|
|
239
|
+
timeout_seconds?: number;
|
|
240
|
+
}): Promise<APIResponse<WaitRunResponse>>;
|
|
241
|
+
/**
|
|
242
|
+
* Create batch runs.
|
|
243
|
+
*/
|
|
244
|
+
batch(body: {
|
|
245
|
+
agent_id: string;
|
|
246
|
+
inputs: Array<{
|
|
247
|
+
input: unknown;
|
|
248
|
+
idempotency_key?: string;
|
|
249
|
+
}>;
|
|
250
|
+
}): Promise<APIResponse<BatchRunResponse>>;
|
|
251
|
+
/**
|
|
252
|
+
* Cancel a running run.
|
|
253
|
+
*/
|
|
254
|
+
cancel(runId: string, reason?: string): Promise<APIResponse<CancelRunResponse>>;
|
|
255
|
+
getObservabilitySummary(params?: {
|
|
256
|
+
agent_id?: string;
|
|
257
|
+
from?: string;
|
|
258
|
+
to?: string;
|
|
259
|
+
}): Promise<APIResponse<RunObservabilitySummaryResponse>>;
|
|
260
|
+
getObservabilityCapabilities(params?: {
|
|
261
|
+
agent_id?: string;
|
|
262
|
+
from?: string;
|
|
263
|
+
to?: string;
|
|
264
|
+
limit?: number;
|
|
265
|
+
offset?: number;
|
|
266
|
+
}): Promise<APIResponse<RunObservabilityCapabilityListResponse>>;
|
|
267
|
+
getObservabilityBindings(params?: {
|
|
268
|
+
agent_id?: string;
|
|
269
|
+
from?: string;
|
|
270
|
+
to?: string;
|
|
271
|
+
limit?: number;
|
|
272
|
+
offset?: number;
|
|
273
|
+
}): Promise<APIResponse<RunObservabilityBindingListResponse>>;
|
|
274
|
+
/**
|
|
275
|
+
* Resume a run waiting for human input (HITL).
|
|
276
|
+
* After the run reaches status 'waiting_for_human', use this to provide
|
|
277
|
+
* the human response and continue execution.
|
|
278
|
+
*
|
|
279
|
+
* @param runId - The run ID to resume
|
|
280
|
+
* @param body - The human input to provide
|
|
281
|
+
* @returns Updated run (status will change to 'resumed' then 'queued')
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* // List runs waiting for human input
|
|
286
|
+
* const waiting = await client.runs.list({ status: 'waiting_for_human' })
|
|
287
|
+
*
|
|
288
|
+
* // Get the prompt
|
|
289
|
+
* const run = await client.runs.get(runId)
|
|
290
|
+
* console.log(run.human_prompt) // "Deseja continuar com a compra?"
|
|
291
|
+
*
|
|
292
|
+
* // Respond
|
|
293
|
+
* await client.runs.resume(runId, { input: { answer: "sim" } })
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
resume(runId: string, body: {
|
|
297
|
+
input: unknown;
|
|
298
|
+
}): Promise<APIResponse<Run>>;
|
|
299
|
+
/**
|
|
300
|
+
* Rerun from start (stateless).
|
|
301
|
+
*/
|
|
302
|
+
rerun(runId: string): Promise<APIResponse<CreateRunResponse>>;
|
|
303
|
+
/**
|
|
304
|
+
* Replay from checkpoint (stateful).
|
|
305
|
+
* Creates a NEW run that starts from the specified checkpoint.
|
|
306
|
+
*/
|
|
307
|
+
replay(runId: string, checkpointId: string, options?: {
|
|
308
|
+
mode?: "best_effort" | "strict";
|
|
309
|
+
reason?: string;
|
|
310
|
+
}): Promise<APIResponse<RunReplayResponse>>;
|
|
311
|
+
/**
|
|
312
|
+
* Get canonical run events from SSOT ledger (polling by seq).
|
|
313
|
+
*/
|
|
314
|
+
getEvents(runId: string, params: {
|
|
315
|
+
attemptId: string;
|
|
316
|
+
afterSeq?: number;
|
|
317
|
+
limit?: number;
|
|
318
|
+
}): Promise<APIResponse<RunEventsPollResponse>>;
|
|
319
|
+
/** Alias: runs.events() -> runs.getEvents() */
|
|
320
|
+
events: (runId: string, params: {
|
|
321
|
+
attemptId: string;
|
|
322
|
+
afterSeq?: number;
|
|
323
|
+
limit?: number;
|
|
324
|
+
}) => Promise<APIResponse<RunEventsPollResponse>>;
|
|
325
|
+
/**
|
|
326
|
+
* Wave 2.3: Seq-based event polling for execution trace.
|
|
327
|
+
* Use this for incremental polling with reconnection support.
|
|
328
|
+
*
|
|
329
|
+
* @param runId - Run ID to poll events for
|
|
330
|
+
* @param params - Polling options
|
|
331
|
+
* @returns Events with seq cursors for pagination
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* ```ts
|
|
335
|
+
* let afterSeq = 0;
|
|
336
|
+
* const attemptId = "attempt-uuid";
|
|
337
|
+
* while (run.status === 'running') {
|
|
338
|
+
* const { data } = await client.runs.pollEvents(runId, { attemptId, afterSeq });
|
|
339
|
+
* for (const event of data.events) {
|
|
340
|
+
* console.log(event.type, event.payload);
|
|
341
|
+
* }
|
|
342
|
+
* afterSeq = data.next_after_seq;
|
|
343
|
+
* await sleep(1000);
|
|
344
|
+
* }
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
pollEvents(runId: string, params: {
|
|
348
|
+
attemptId: string;
|
|
349
|
+
afterSeq?: number;
|
|
350
|
+
limit?: number;
|
|
351
|
+
}): Promise<APIResponse<RunEventsPollResponse>>;
|
|
352
|
+
/**
|
|
353
|
+
* Get checkpoints for a run.
|
|
354
|
+
*/
|
|
355
|
+
getCheckpoints(runId: string): Promise<APIResponse<CheckpointIndexResponse>>;
|
|
356
|
+
/** Alias: runs.checkpoints() -> runs.getCheckpoints() */
|
|
357
|
+
checkpoints: (runId: string) => Promise<APIResponse<{
|
|
358
|
+
run_id?: string;
|
|
359
|
+
checkpoints?: components["schemas"]["CheckpointIndexItem"][] | null;
|
|
360
|
+
}>>;
|
|
361
|
+
/**
|
|
362
|
+
* Follow a run attempt's canonical event stream with automatic reconnection.
|
|
363
|
+
*
|
|
364
|
+
* SSOT contract:
|
|
365
|
+
* - Stream is keyed by (run_id, attempt_id, seq)
|
|
366
|
+
* - Resume is driven by `afterSeq` (monotonic)
|
|
367
|
+
* - No implicit attempt inference
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* ```ts
|
|
371
|
+
* for await (const event of client.runs.follow(runId, attemptId)) {
|
|
372
|
+
* if (event.type === "run_event") {
|
|
373
|
+
* console.log(event.payload);
|
|
374
|
+
* } else if (event.type === "close") {
|
|
375
|
+
* console.log("Run completed");
|
|
376
|
+
* }
|
|
377
|
+
* }
|
|
378
|
+
* ```
|
|
379
|
+
*/
|
|
380
|
+
follow(runId: string, attemptId: string, options?: FollowOptions): AsyncGenerator<FollowEvent, void, unknown>;
|
|
381
|
+
/**
|
|
382
|
+
* Create run and follow canonical SSOT stream for the current attempt.
|
|
383
|
+
*/
|
|
384
|
+
createAndStream(body: {
|
|
385
|
+
agent_id: string;
|
|
386
|
+
thread?: {
|
|
387
|
+
thread_id?: string;
|
|
388
|
+
} | {
|
|
389
|
+
new_thread: true;
|
|
390
|
+
};
|
|
391
|
+
input?: unknown;
|
|
392
|
+
/** Idempotency key for safe retries. */
|
|
393
|
+
idempotency_key?: string;
|
|
394
|
+
}, options?: FollowOptions): AsyncGenerator<FollowEvent, void, unknown>;
|
|
395
|
+
/**
|
|
396
|
+
* Wait for a specific event that matches a predicate.
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```ts
|
|
400
|
+
* // Wait for run completion
|
|
401
|
+
* const event = await client.runs.waitFor(runId, attemptId, (e) => e.type === "close", {
|
|
402
|
+
* timeoutMs: 60000
|
|
403
|
+
* });
|
|
404
|
+
*
|
|
405
|
+
* // Wait for specific node execution
|
|
406
|
+
* const nodeEvent = await client.runs.waitFor(runId, attemptId, (e) =>
|
|
407
|
+
* e.type === "run_event" && e.payload?.node === "my_node"
|
|
408
|
+
* );
|
|
409
|
+
* ```
|
|
410
|
+
*/
|
|
411
|
+
waitFor(runId: string, attemptId: string, predicate: (event: FollowEvent) => boolean, options?: {
|
|
412
|
+
timeoutMs?: number;
|
|
413
|
+
signal?: AbortSignal;
|
|
414
|
+
startSeq?: number;
|
|
415
|
+
}): Promise<FollowEvent>;
|
|
416
|
+
}
|
|
417
|
+
/** Options for runs.follow() */
|
|
418
|
+
export interface FollowOptions {
|
|
419
|
+
/** Starting sequence number (default: 0 = from beginning) */
|
|
420
|
+
startSeq?: number;
|
|
421
|
+
/** AbortSignal for cancellation */
|
|
422
|
+
signal?: AbortSignal;
|
|
423
|
+
/** Max reconnection attempts (default: 10) */
|
|
424
|
+
maxReconnects?: number;
|
|
425
|
+
/** Base delay for backoff in ms (default: 1000) */
|
|
426
|
+
baseDelayMs?: number;
|
|
427
|
+
/** Max delay for backoff in ms (default: 30000) */
|
|
428
|
+
maxDelayMs?: number;
|
|
429
|
+
/** Called when initially connected */
|
|
430
|
+
onConnect?: () => void;
|
|
431
|
+
/** Called when reconnecting (with attempt number) */
|
|
432
|
+
onReconnect?: (attempt: number) => void;
|
|
433
|
+
/** Called when disconnected (with reason) */
|
|
434
|
+
onDisconnect?: (reason: "eof" | "error") => void;
|
|
435
|
+
}
|
|
436
|
+
/** Event emitted by runs.follow() */
|
|
437
|
+
export interface FollowEvent {
|
|
438
|
+
type: "run_event" | "heartbeat" | "close" | "error";
|
|
439
|
+
seq: number;
|
|
440
|
+
timestamp: string;
|
|
441
|
+
payload?: Record<string, unknown> | null;
|
|
442
|
+
operation_id?: string;
|
|
443
|
+
parent_operation_id?: string | null;
|
|
444
|
+
root_operation_id?: string;
|
|
445
|
+
/** For run_event: the node that emitted this event */
|
|
446
|
+
node?: string;
|
|
447
|
+
}
|
|
448
|
+
/** Narrow raw SSE event to FollowEvent */
|
|
449
|
+
export declare function narrowFollowEvent(raw: SSEEvent<unknown>): FollowEvent | null;
|
|
450
|
+
export {};
|
|
451
|
+
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/modules/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG3D,KAAK,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAChE,KAAK,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAClE,KAAK,iBAAiB,GAAG,UAAU,C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