@runtypelabs/sdk 9.2.0 → 9.3.0
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/index.cjs +205 -12
- package/dist/index.d.cts +380 -13
- package/dist/index.d.ts +380 -13
- package/dist/index.mjs +202 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -674,6 +674,12 @@ interface paths {
|
|
|
674
674
|
enabled: true;
|
|
675
675
|
types: ("markdown" | "component")[];
|
|
676
676
|
};
|
|
677
|
+
durability?: {
|
|
678
|
+
/** @enum {string} */
|
|
679
|
+
forced?: "durable" | "in_process";
|
|
680
|
+
maxBudgetMs?: number | null;
|
|
681
|
+
watchLeaseMs?: number | null;
|
|
682
|
+
};
|
|
677
683
|
errorHandling?: {
|
|
678
684
|
fallbacks?: ({
|
|
679
685
|
delay?: number;
|
|
@@ -720,6 +726,7 @@ interface paths {
|
|
|
720
726
|
presencePenalty?: number;
|
|
721
727
|
reasoning?: boolean | {
|
|
722
728
|
budgetTokens?: number;
|
|
729
|
+
effort?: string;
|
|
723
730
|
enabled: boolean;
|
|
724
731
|
includeThoughts?: boolean;
|
|
725
732
|
/** @enum {string} */
|
|
@@ -727,6 +734,7 @@ interface paths {
|
|
|
727
734
|
/** @enum {string} */
|
|
728
735
|
reasoningSummary?: "auto" | "detailed";
|
|
729
736
|
thinkingBudget?: number;
|
|
737
|
+
thinkingLevel?: string;
|
|
730
738
|
};
|
|
731
739
|
sandbox?: {
|
|
732
740
|
enabled: boolean;
|
|
@@ -912,6 +920,7 @@ interface paths {
|
|
|
912
920
|
presencePenalty?: number;
|
|
913
921
|
reasoning?: boolean | {
|
|
914
922
|
budgetTokens?: number;
|
|
923
|
+
effort?: string;
|
|
915
924
|
enabled: boolean;
|
|
916
925
|
includeThoughts?: boolean;
|
|
917
926
|
/** @enum {string} */
|
|
@@ -919,6 +928,7 @@ interface paths {
|
|
|
919
928
|
/** @enum {string} */
|
|
920
929
|
reasoningSummary?: "auto" | "detailed";
|
|
921
930
|
thinkingBudget?: number;
|
|
931
|
+
thinkingLevel?: string;
|
|
922
932
|
};
|
|
923
933
|
seed?: number;
|
|
924
934
|
systemPrompt?: string;
|
|
@@ -1094,6 +1104,12 @@ interface paths {
|
|
|
1094
1104
|
enabled: true;
|
|
1095
1105
|
types: ("markdown" | "component")[];
|
|
1096
1106
|
};
|
|
1107
|
+
durability?: {
|
|
1108
|
+
/** @enum {string} */
|
|
1109
|
+
forced?: "durable" | "in_process";
|
|
1110
|
+
maxBudgetMs?: number | null;
|
|
1111
|
+
watchLeaseMs?: number | null;
|
|
1112
|
+
};
|
|
1097
1113
|
errorHandling?: {
|
|
1098
1114
|
fallbacks?: ({
|
|
1099
1115
|
delay?: number;
|
|
@@ -1140,6 +1156,7 @@ interface paths {
|
|
|
1140
1156
|
presencePenalty?: number;
|
|
1141
1157
|
reasoning?: boolean | {
|
|
1142
1158
|
budgetTokens?: number;
|
|
1159
|
+
effort?: string;
|
|
1143
1160
|
enabled: boolean;
|
|
1144
1161
|
includeThoughts?: boolean;
|
|
1145
1162
|
/** @enum {string} */
|
|
@@ -1147,6 +1164,7 @@ interface paths {
|
|
|
1147
1164
|
/** @enum {string} */
|
|
1148
1165
|
reasoningSummary?: "auto" | "detailed";
|
|
1149
1166
|
thinkingBudget?: number;
|
|
1167
|
+
thinkingLevel?: string;
|
|
1150
1168
|
};
|
|
1151
1169
|
sandbox?: {
|
|
1152
1170
|
enabled: boolean;
|
|
@@ -1784,6 +1802,12 @@ interface paths {
|
|
|
1784
1802
|
enabled: true;
|
|
1785
1803
|
types: ("markdown" | "component")[];
|
|
1786
1804
|
};
|
|
1805
|
+
durability?: {
|
|
1806
|
+
/** @enum {string} */
|
|
1807
|
+
forced?: "durable" | "in_process";
|
|
1808
|
+
maxBudgetMs?: number | null;
|
|
1809
|
+
watchLeaseMs?: number | null;
|
|
1810
|
+
};
|
|
1787
1811
|
errorHandling?: {
|
|
1788
1812
|
fallbacks?: ({
|
|
1789
1813
|
delay?: number;
|
|
@@ -1830,6 +1854,7 @@ interface paths {
|
|
|
1830
1854
|
presencePenalty?: number;
|
|
1831
1855
|
reasoning?: boolean | {
|
|
1832
1856
|
budgetTokens?: number;
|
|
1857
|
+
effort?: string;
|
|
1833
1858
|
enabled: boolean;
|
|
1834
1859
|
includeThoughts?: boolean;
|
|
1835
1860
|
/** @enum {string} */
|
|
@@ -1837,6 +1862,7 @@ interface paths {
|
|
|
1837
1862
|
/** @enum {string} */
|
|
1838
1863
|
reasoningSummary?: "auto" | "detailed";
|
|
1839
1864
|
thinkingBudget?: number;
|
|
1865
|
+
thinkingLevel?: string;
|
|
1840
1866
|
};
|
|
1841
1867
|
sandbox?: {
|
|
1842
1868
|
enabled: boolean;
|
|
@@ -2022,6 +2048,7 @@ interface paths {
|
|
|
2022
2048
|
presencePenalty?: number;
|
|
2023
2049
|
reasoning?: boolean | {
|
|
2024
2050
|
budgetTokens?: number;
|
|
2051
|
+
effort?: string;
|
|
2025
2052
|
enabled: boolean;
|
|
2026
2053
|
includeThoughts?: boolean;
|
|
2027
2054
|
/** @enum {string} */
|
|
@@ -2029,6 +2056,7 @@ interface paths {
|
|
|
2029
2056
|
/** @enum {string} */
|
|
2030
2057
|
reasoningSummary?: "auto" | "detailed";
|
|
2031
2058
|
thinkingBudget?: number;
|
|
2059
|
+
thinkingLevel?: string;
|
|
2032
2060
|
};
|
|
2033
2061
|
seed?: number;
|
|
2034
2062
|
systemPrompt?: string;
|
|
@@ -2657,7 +2685,14 @@ interface paths {
|
|
|
2657
2685
|
post: {
|
|
2658
2686
|
parameters: {
|
|
2659
2687
|
query?: never;
|
|
2660
|
-
header?:
|
|
2688
|
+
header?: {
|
|
2689
|
+
/** @description How a durable turn behaves when the conversation already has one in flight. `reject` (the default when omitted) answers `CONVERSATION_BUSY`; `supersede` cancels the incumbent and takes over; `queue` runs after it. Ignored for a turn that resolves to the in-process lane. */
|
|
2690
|
+
"x-runtype-concurrency"?: "reject" | "supersede" | "queue";
|
|
2691
|
+
/** @description Send `true` to fold this request into an already-pending turn for the same conversation instead of starting a second one. The response is the pending execution. Any other value (or omitting the header) starts a new turn. */
|
|
2692
|
+
"x-runtype-coalesce"?: "true";
|
|
2693
|
+
/** @description Caller-chosen key that makes admission idempotent: a retry with the same key returns the ORIGINAL execution rather than starting a second turn, and consumes no additional quota. Scoped to the durable lane. */
|
|
2694
|
+
"idempotency-key"?: string;
|
|
2695
|
+
};
|
|
2661
2696
|
path: {
|
|
2662
2697
|
id: string;
|
|
2663
2698
|
};
|
|
@@ -2814,6 +2849,8 @@ interface paths {
|
|
|
2814
2849
|
agentId: string | null;
|
|
2815
2850
|
agentSource: string | null;
|
|
2816
2851
|
agentSpec?: unknown;
|
|
2852
|
+
/** @description Whether the agent loop ended by exhausting its `maxTurns` budget. Read this rather than inferring truncation from `stopReason`: a single-turn loop publishes `end_turn` on a budget end to preserve its original payload shape, and several clean success paths publish that same value. `null` means UNKNOWN — a run recorded before this field existed, or one executed by a lane that reports no per-iteration breakdown (external agents, Claude Managed) — and must not be read as `false`. */
|
|
2853
|
+
budgetExhausted: boolean | null;
|
|
2817
2854
|
cancelRequestedAt: string | null;
|
|
2818
2855
|
completedAt: string | null;
|
|
2819
2856
|
/** @description The conversation thread this run belongs to, so consumers can group a multi-turn conversation's runs without a per-run log query. This is the run's OWN thread, distinct from `parentConversationId` (subagent lineage, the conversation of the run that spawned it). `null` on stateless surfaces (webhook, schedule, eval, one-shot API) and on runs persisted before the column existed. */
|
|
@@ -2949,6 +2986,8 @@ interface paths {
|
|
|
2949
2986
|
agentId: string | null;
|
|
2950
2987
|
agentSource: string | null;
|
|
2951
2988
|
agentSpec?: unknown;
|
|
2989
|
+
/** @description Whether the agent loop ended by exhausting its `maxTurns` budget. Read this rather than inferring truncation from `stopReason`: a single-turn loop publishes `end_turn` on a budget end to preserve its original payload shape, and several clean success paths publish that same value. `null` means UNKNOWN — a run recorded before this field existed, or one executed by a lane that reports no per-iteration breakdown (external agents, Claude Managed) — and must not be read as `false`. */
|
|
2990
|
+
budgetExhausted: boolean | null;
|
|
2952
2991
|
cancelRequestedAt: string | null;
|
|
2953
2992
|
completedAt: string | null;
|
|
2954
2993
|
/** @description The conversation thread this run belongs to, so consumers can group a multi-turn conversation's runs without a per-run log query. This is the run's OWN thread, distinct from `parentConversationId` (subagent lineage, the conversation of the run that spawned it). `null` on stateless surfaces (webhook, schedule, eval, one-shot API) and on runs persisted before the column existed. */
|
|
@@ -3162,12 +3201,12 @@ interface paths {
|
|
|
3162
3201
|
};
|
|
3163
3202
|
/**
|
|
3164
3203
|
* Stream execution events
|
|
3165
|
-
* @description Reconnect to a durable
|
|
3204
|
+
* @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary.
|
|
3166
3205
|
*/
|
|
3167
3206
|
get: {
|
|
3168
3207
|
parameters: {
|
|
3169
3208
|
query?: {
|
|
3170
|
-
/** @description
|
|
3209
|
+
/** @description Fallback session key, honored only for a turn that persists no execution record of its own (the Claude Managed lane). A durable turn resolves its session owner from the persisted execution, and a subagent run from its private child thread. */
|
|
3171
3210
|
conversationId?: string;
|
|
3172
3211
|
/** @description Replay only events strictly past this cursor (the last seen SSE id, passed verbatim): a plain row seq, or the composite `<seq>.<subIndex>` a unified-vocabulary stream stamps on intermediate sub-frames. Defaults to 0 (replay the whole turn). */
|
|
3173
3212
|
after?: string;
|
|
@@ -3190,7 +3229,7 @@ interface paths {
|
|
|
3190
3229
|
"text/event-stream": unknown;
|
|
3191
3230
|
};
|
|
3192
3231
|
};
|
|
3193
|
-
/** @description Invalid agent ID or
|
|
3232
|
+
/** @description Invalid agent ID, or no session owner resolves for this execution */
|
|
3194
3233
|
400: {
|
|
3195
3234
|
headers: {
|
|
3196
3235
|
[name: string]: unknown;
|
|
@@ -5630,6 +5669,10 @@ interface paths {
|
|
|
5630
5669
|
organizationId: string | null;
|
|
5631
5670
|
outputPreview: string | null;
|
|
5632
5671
|
promptTokens?: number | null;
|
|
5672
|
+
reasoningConfig?: unknown;
|
|
5673
|
+
reasoningRejection?: unknown;
|
|
5674
|
+
reasoningRequested?: unknown;
|
|
5675
|
+
reasoningTokens?: number | null;
|
|
5633
5676
|
recordId: string | null;
|
|
5634
5677
|
recordMetadata?: unknown;
|
|
5635
5678
|
recordName: string | null;
|
|
@@ -10868,6 +10911,7 @@ interface paths {
|
|
|
10868
10911
|
presencePenalty?: number;
|
|
10869
10912
|
reasoning?: boolean | {
|
|
10870
10913
|
budgetTokens?: number;
|
|
10914
|
+
effort?: string;
|
|
10871
10915
|
enabled: boolean;
|
|
10872
10916
|
includeThoughts?: boolean;
|
|
10873
10917
|
/** @enum {string} */
|
|
@@ -10875,6 +10919,7 @@ interface paths {
|
|
|
10875
10919
|
/** @enum {string} */
|
|
10876
10920
|
reasoningSummary?: "auto" | "detailed";
|
|
10877
10921
|
thinkingBudget?: number;
|
|
10922
|
+
thinkingLevel?: string;
|
|
10878
10923
|
};
|
|
10879
10924
|
sandbox?: {
|
|
10880
10925
|
enabled: boolean;
|
|
@@ -11145,7 +11190,7 @@ interface paths {
|
|
|
11145
11190
|
/** @default true */
|
|
11146
11191
|
createVersionOnChange?: boolean;
|
|
11147
11192
|
};
|
|
11148
|
-
/** @description
|
|
11193
|
+
/** @description Execution-lane selector. `false` is DEPRECATED: the legacy agent engine is being retired, an agent dispatch that sends `false` still runs on it today with RFC 9745 `Deprecation` + `X-API-Deprecation-Warning` response headers, and a later release rejects it. Omitted (the default) runs an eligible agent on the @runtypelabs/runtime lane and folds a definition the lane cannot execute faithfully to legacy on its own; `true` is the strict opt-in that turns such a fold into a 400 instead. For FLOW dispatches the field is accepted but ignored: eligible flows always use the runtime lane, while ineligible flows still fold to legacy silently. */
|
|
11149
11194
|
useRuntimePackage?: boolean;
|
|
11150
11195
|
versionLabel?: string;
|
|
11151
11196
|
versionNotes?: string;
|
|
@@ -11161,7 +11206,7 @@ interface paths {
|
|
|
11161
11206
|
ownerId?: string;
|
|
11162
11207
|
type?: string;
|
|
11163
11208
|
};
|
|
11164
|
-
/** @description
|
|
11209
|
+
/** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED, unless the deprecated `options.useRuntimePackage: false` opt-out routes the run to the legacy engine, which still honors it for single-turn (non-loop) agents until that engine is removed. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
|
|
11165
11210
|
secrets?: {
|
|
11166
11211
|
[key: string]: string;
|
|
11167
11212
|
};
|
|
@@ -11241,6 +11286,7 @@ interface paths {
|
|
|
11241
11286
|
presencePenalty?: number;
|
|
11242
11287
|
reasoning?: boolean | {
|
|
11243
11288
|
budgetTokens?: number;
|
|
11289
|
+
effort?: string;
|
|
11244
11290
|
enabled: boolean;
|
|
11245
11291
|
includeThoughts?: boolean;
|
|
11246
11292
|
/** @enum {string} */
|
|
@@ -11248,6 +11294,7 @@ interface paths {
|
|
|
11248
11294
|
/** @enum {string} */
|
|
11249
11295
|
reasoningSummary?: "auto" | "detailed";
|
|
11250
11296
|
thinkingBudget?: number;
|
|
11297
|
+
thinkingLevel?: string;
|
|
11251
11298
|
};
|
|
11252
11299
|
sandbox?: {
|
|
11253
11300
|
enabled: boolean;
|
|
@@ -11518,7 +11565,7 @@ interface paths {
|
|
|
11518
11565
|
/** @default true */
|
|
11519
11566
|
createVersionOnChange?: boolean;
|
|
11520
11567
|
};
|
|
11521
|
-
/** @description
|
|
11568
|
+
/** @description Execution-lane selector. `false` is DEPRECATED: the legacy agent engine is being retired, an agent dispatch that sends `false` still runs on it today with RFC 9745 `Deprecation` + `X-API-Deprecation-Warning` response headers, and a later release rejects it. Omitted (the default) runs an eligible agent on the @runtypelabs/runtime lane and folds a definition the lane cannot execute faithfully to legacy on its own; `true` is the strict opt-in that turns such a fold into a 400 instead. For FLOW dispatches the field is accepted but ignored: eligible flows always use the runtime lane, while ineligible flows still fold to legacy silently. */
|
|
11522
11569
|
useRuntimePackage?: boolean;
|
|
11523
11570
|
versionLabel?: string;
|
|
11524
11571
|
versionNotes?: string;
|
|
@@ -11534,7 +11581,7 @@ interface paths {
|
|
|
11534
11581
|
ownerId?: string;
|
|
11535
11582
|
type?: string;
|
|
11536
11583
|
};
|
|
11537
|
-
/** @description
|
|
11584
|
+
/** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED, unless the deprecated `options.useRuntimePackage: false` opt-out routes the run to the legacy engine, which still honors it for single-turn (non-loop) agents until that engine is removed. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
|
|
11538
11585
|
secrets?: {
|
|
11539
11586
|
[key: string]: string;
|
|
11540
11587
|
};
|
|
@@ -18000,6 +18047,10 @@ interface paths {
|
|
|
18000
18047
|
organizationId: string | null;
|
|
18001
18048
|
outputPreview: string | null;
|
|
18002
18049
|
promptTokens?: number | null;
|
|
18050
|
+
reasoningConfig?: unknown;
|
|
18051
|
+
reasoningRejection?: unknown;
|
|
18052
|
+
reasoningRequested?: unknown;
|
|
18053
|
+
reasoningTokens?: number | null;
|
|
18003
18054
|
recordId: string | null;
|
|
18004
18055
|
recordMetadata?: unknown;
|
|
18005
18056
|
recordName: string | null;
|
|
@@ -25170,6 +25221,10 @@ interface paths {
|
|
|
25170
25221
|
createdByUserId?: string | null;
|
|
25171
25222
|
creator?: string;
|
|
25172
25223
|
creatorDisplayName?: string | null;
|
|
25224
|
+
/** @description Plain-language discount callout for this model, e.g. "90% off". null when undiscounted. */
|
|
25225
|
+
creditPromoLabel?: string | null;
|
|
25226
|
+
/** @description Factor platform-key spend on this model is billed at while a credit promo is active (0.1 = 90% off). 1 when no discount applies. */
|
|
25227
|
+
creditPromoMultiplier?: number;
|
|
25173
25228
|
displayName?: string;
|
|
25174
25229
|
id: string;
|
|
25175
25230
|
inputCostPer1kTokens?: number;
|
|
@@ -25189,8 +25244,24 @@ interface paths {
|
|
|
25189
25244
|
/** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
|
|
25190
25245
|
providerKeyId: string | null;
|
|
25191
25246
|
reasoningCapability?: {
|
|
25247
|
+
/**
|
|
25248
|
+
* @description Anthropic only: the thinking request shape sent. adaptive (Claude 4.6 and later, including the Claude 5 family) accepts effort and rejects budgetTokens; enabled is the legacy budgetTokens form.
|
|
25249
|
+
* @enum {string}
|
|
25250
|
+
*/
|
|
25251
|
+
anthropicThinkingMode?: "adaptive" | "enabled";
|
|
25252
|
+
/** @description The model always reasons (GPT-5 / o-series); disabling is an effort floor, not off. */
|
|
25253
|
+
builtInReasoning?: boolean;
|
|
25192
25254
|
/** @enum {string} */
|
|
25193
25255
|
googleThinkingMode?: "budget" | "level";
|
|
25256
|
+
/** @description Which reasoning knobs this model's API accepts (catalog-sourced from models.dev reasoning_options). Absent when the catalog has no claim for the model. */
|
|
25257
|
+
options?: {
|
|
25258
|
+
budgetTokens?: {
|
|
25259
|
+
max?: number;
|
|
25260
|
+
min?: number;
|
|
25261
|
+
};
|
|
25262
|
+
effort?: string[];
|
|
25263
|
+
toggle?: boolean;
|
|
25264
|
+
};
|
|
25194
25265
|
provider?: string;
|
|
25195
25266
|
supported: boolean;
|
|
25196
25267
|
supportsReasoningSummary?: boolean;
|
|
@@ -25312,6 +25383,10 @@ interface paths {
|
|
|
25312
25383
|
createdByUserId?: string | null;
|
|
25313
25384
|
creator?: string;
|
|
25314
25385
|
creatorDisplayName?: string | null;
|
|
25386
|
+
/** @description Plain-language discount callout for this model, e.g. "90% off". null when undiscounted. */
|
|
25387
|
+
creditPromoLabel?: string | null;
|
|
25388
|
+
/** @description Factor platform-key spend on this model is billed at while a credit promo is active (0.1 = 90% off). 1 when no discount applies. */
|
|
25389
|
+
creditPromoMultiplier?: number;
|
|
25315
25390
|
displayName?: string;
|
|
25316
25391
|
id: string;
|
|
25317
25392
|
inputCostPer1kTokens?: number;
|
|
@@ -25331,8 +25406,24 @@ interface paths {
|
|
|
25331
25406
|
/** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
|
|
25332
25407
|
providerKeyId: string | null;
|
|
25333
25408
|
reasoningCapability?: {
|
|
25409
|
+
/**
|
|
25410
|
+
* @description Anthropic only: the thinking request shape sent. adaptive (Claude 4.6 and later, including the Claude 5 family) accepts effort and rejects budgetTokens; enabled is the legacy budgetTokens form.
|
|
25411
|
+
* @enum {string}
|
|
25412
|
+
*/
|
|
25413
|
+
anthropicThinkingMode?: "adaptive" | "enabled";
|
|
25414
|
+
/** @description The model always reasons (GPT-5 / o-series); disabling is an effort floor, not off. */
|
|
25415
|
+
builtInReasoning?: boolean;
|
|
25334
25416
|
/** @enum {string} */
|
|
25335
25417
|
googleThinkingMode?: "budget" | "level";
|
|
25418
|
+
/** @description Which reasoning knobs this model's API accepts (catalog-sourced from models.dev reasoning_options). Absent when the catalog has no claim for the model. */
|
|
25419
|
+
options?: {
|
|
25420
|
+
budgetTokens?: {
|
|
25421
|
+
max?: number;
|
|
25422
|
+
min?: number;
|
|
25423
|
+
};
|
|
25424
|
+
effort?: string[];
|
|
25425
|
+
toggle?: boolean;
|
|
25426
|
+
};
|
|
25336
25427
|
provider?: string;
|
|
25337
25428
|
supported: boolean;
|
|
25338
25429
|
supportsReasoningSummary?: boolean;
|
|
@@ -25461,6 +25552,10 @@ interface paths {
|
|
|
25461
25552
|
data: {
|
|
25462
25553
|
contextLength?: number;
|
|
25463
25554
|
costPer1kTokens: number;
|
|
25555
|
+
/** @description Plain-language discount callout, e.g. "90% off". null when undiscounted. */
|
|
25556
|
+
creditPromoLabel?: string | null;
|
|
25557
|
+
/** @description Factor platform-key spend on this model is billed at (0.1 = 90% off); 1 when undiscounted. */
|
|
25558
|
+
creditPromoMultiplier?: number;
|
|
25464
25559
|
displayName: string;
|
|
25465
25560
|
id: null;
|
|
25466
25561
|
isConfigured: boolean;
|
|
@@ -25559,12 +25654,20 @@ interface paths {
|
|
|
25559
25654
|
contextLength: number;
|
|
25560
25655
|
creator: string;
|
|
25561
25656
|
creatorDisplayName: string;
|
|
25657
|
+
/** @description Plain-language discount callout for the family, e.g. "90% off". null when undiscounted. */
|
|
25658
|
+
creditPromoLabel?: string | null;
|
|
25659
|
+
/** @description Factor platform-key spend on this model family is billed at while a credit promo is active (0.1 = 90% off). Follows the routed primary provider (a same-model failover onto another provider bills at that provider nominal price, undiscounted); 1 when undiscounted. */
|
|
25660
|
+
creditPromoMultiplier?: number;
|
|
25562
25661
|
displayName: string;
|
|
25563
25662
|
isConfigured: boolean;
|
|
25564
25663
|
lowestCost: number;
|
|
25565
25664
|
maxOutputTokens: number;
|
|
25566
25665
|
providers: {
|
|
25567
25666
|
costPer1kTokens: number;
|
|
25667
|
+
/** @description Plain-language discount callout, e.g. "90% off". null when undiscounted. */
|
|
25668
|
+
creditPromoLabel?: string | null;
|
|
25669
|
+
/** @description Factor platform-key spend on this listing is billed at (0.1 = 90% off); 1 when undiscounted. */
|
|
25670
|
+
creditPromoMultiplier?: number;
|
|
25568
25671
|
hasPlatformKey: boolean;
|
|
25569
25672
|
inputCostPer1kTokens: number;
|
|
25570
25673
|
/** @enum {string} */
|
|
@@ -25575,8 +25678,24 @@ interface paths {
|
|
|
25575
25678
|
providerDisplayName: string;
|
|
25576
25679
|
}[];
|
|
25577
25680
|
reasoningCapability?: {
|
|
25681
|
+
/**
|
|
25682
|
+
* @description Anthropic only: the thinking request shape sent. adaptive (Claude 4.6 and later, including the Claude 5 family) accepts effort and rejects budgetTokens; enabled is the legacy budgetTokens form.
|
|
25683
|
+
* @enum {string}
|
|
25684
|
+
*/
|
|
25685
|
+
anthropicThinkingMode?: "adaptive" | "enabled";
|
|
25686
|
+
/** @description The model always reasons (GPT-5 / o-series); disabling is an effort floor, not off. */
|
|
25687
|
+
builtInReasoning?: boolean;
|
|
25578
25688
|
/** @enum {string} */
|
|
25579
25689
|
googleThinkingMode?: "budget" | "level";
|
|
25690
|
+
/** @description Which reasoning knobs this model's API accepts (catalog-sourced from models.dev reasoning_options). Absent when the catalog has no claim for the model. */
|
|
25691
|
+
options?: {
|
|
25692
|
+
budgetTokens?: {
|
|
25693
|
+
max?: number;
|
|
25694
|
+
min?: number;
|
|
25695
|
+
};
|
|
25696
|
+
effort?: string[];
|
|
25697
|
+
toggle?: boolean;
|
|
25698
|
+
};
|
|
25580
25699
|
provider?: string;
|
|
25581
25700
|
supported: boolean;
|
|
25582
25701
|
supportsReasoningSummary?: boolean;
|
|
@@ -25656,6 +25775,10 @@ interface paths {
|
|
|
25656
25775
|
content: {
|
|
25657
25776
|
"application/json": {
|
|
25658
25777
|
data: {
|
|
25778
|
+
/** @description Plain-language discount callout, e.g. "90% off". null when undiscounted (always null for the Exa entry). */
|
|
25779
|
+
creditPromoLabel?: string | null;
|
|
25780
|
+
/** @description Factor platform-key spend on this model is billed at (0.1 = 90% off); 1 when undiscounted. */
|
|
25781
|
+
creditPromoMultiplier?: number;
|
|
25659
25782
|
displayLabel: string;
|
|
25660
25783
|
id: string;
|
|
25661
25784
|
/** @enum {string} */
|
|
@@ -25724,6 +25847,10 @@ interface paths {
|
|
|
25724
25847
|
content: {
|
|
25725
25848
|
"application/json": {
|
|
25726
25849
|
data: {
|
|
25850
|
+
/** @description Plain-language discount callout, e.g. "90% off". null when undiscounted (always null for the Exa entry). */
|
|
25851
|
+
creditPromoLabel?: string | null;
|
|
25852
|
+
/** @description Factor platform-key spend on this model is billed at (0.1 = 90% off); 1 when undiscounted. */
|
|
25853
|
+
creditPromoMultiplier?: number;
|
|
25727
25854
|
displayLabel: string;
|
|
25728
25855
|
id: string;
|
|
25729
25856
|
/** @enum {string} */
|
|
@@ -25918,6 +26045,10 @@ interface paths {
|
|
|
25918
26045
|
createdByUserId?: string | null;
|
|
25919
26046
|
creator?: string;
|
|
25920
26047
|
creatorDisplayName?: string | null;
|
|
26048
|
+
/** @description Plain-language discount callout for this model, e.g. "90% off". null when undiscounted. */
|
|
26049
|
+
creditPromoLabel?: string | null;
|
|
26050
|
+
/** @description Factor platform-key spend on this model is billed at while a credit promo is active (0.1 = 90% off). 1 when no discount applies. */
|
|
26051
|
+
creditPromoMultiplier?: number;
|
|
25921
26052
|
displayName?: string;
|
|
25922
26053
|
id: string;
|
|
25923
26054
|
inputCostPer1kTokens?: number;
|
|
@@ -25937,8 +26068,24 @@ interface paths {
|
|
|
25937
26068
|
/** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
|
|
25938
26069
|
providerKeyId: string | null;
|
|
25939
26070
|
reasoningCapability?: {
|
|
26071
|
+
/**
|
|
26072
|
+
* @description Anthropic only: the thinking request shape sent. adaptive (Claude 4.6 and later, including the Claude 5 family) accepts effort and rejects budgetTokens; enabled is the legacy budgetTokens form.
|
|
26073
|
+
* @enum {string}
|
|
26074
|
+
*/
|
|
26075
|
+
anthropicThinkingMode?: "adaptive" | "enabled";
|
|
26076
|
+
/** @description The model always reasons (GPT-5 / o-series); disabling is an effort floor, not off. */
|
|
26077
|
+
builtInReasoning?: boolean;
|
|
25940
26078
|
/** @enum {string} */
|
|
25941
26079
|
googleThinkingMode?: "budget" | "level";
|
|
26080
|
+
/** @description Which reasoning knobs this model's API accepts (catalog-sourced from models.dev reasoning_options). Absent when the catalog has no claim for the model. */
|
|
26081
|
+
options?: {
|
|
26082
|
+
budgetTokens?: {
|
|
26083
|
+
max?: number;
|
|
26084
|
+
min?: number;
|
|
26085
|
+
};
|
|
26086
|
+
effort?: string[];
|
|
26087
|
+
toggle?: boolean;
|
|
26088
|
+
};
|
|
25942
26089
|
provider?: string;
|
|
25943
26090
|
supported: boolean;
|
|
25944
26091
|
supportsReasoningSummary?: boolean;
|
|
@@ -26174,6 +26321,10 @@ interface paths {
|
|
|
26174
26321
|
createdByUserId?: string | null;
|
|
26175
26322
|
creator?: string;
|
|
26176
26323
|
creatorDisplayName?: string | null;
|
|
26324
|
+
/** @description Plain-language discount callout for this model, e.g. "90% off". null when undiscounted. */
|
|
26325
|
+
creditPromoLabel?: string | null;
|
|
26326
|
+
/** @description Factor platform-key spend on this model is billed at while a credit promo is active (0.1 = 90% off). 1 when no discount applies. */
|
|
26327
|
+
creditPromoMultiplier?: number;
|
|
26177
26328
|
displayName?: string;
|
|
26178
26329
|
id: string;
|
|
26179
26330
|
inputCostPer1kTokens?: number;
|
|
@@ -26193,8 +26344,24 @@ interface paths {
|
|
|
26193
26344
|
/** @description Previous-Worker-compatible provider-key alias. Updated organization clients should use organizationConnectionId; platform selection is null. */
|
|
26194
26345
|
providerKeyId: string | null;
|
|
26195
26346
|
reasoningCapability?: {
|
|
26347
|
+
/**
|
|
26348
|
+
* @description Anthropic only: the thinking request shape sent. adaptive (Claude 4.6 and later, including the Claude 5 family) accepts effort and rejects budgetTokens; enabled is the legacy budgetTokens form.
|
|
26349
|
+
* @enum {string}
|
|
26350
|
+
*/
|
|
26351
|
+
anthropicThinkingMode?: "adaptive" | "enabled";
|
|
26352
|
+
/** @description The model always reasons (GPT-5 / o-series); disabling is an effort floor, not off. */
|
|
26353
|
+
builtInReasoning?: boolean;
|
|
26196
26354
|
/** @enum {string} */
|
|
26197
26355
|
googleThinkingMode?: "budget" | "level";
|
|
26356
|
+
/** @description Which reasoning knobs this model's API accepts (catalog-sourced from models.dev reasoning_options). Absent when the catalog has no claim for the model. */
|
|
26357
|
+
options?: {
|
|
26358
|
+
budgetTokens?: {
|
|
26359
|
+
max?: number;
|
|
26360
|
+
min?: number;
|
|
26361
|
+
};
|
|
26362
|
+
effort?: string[];
|
|
26363
|
+
toggle?: boolean;
|
|
26364
|
+
};
|
|
26198
26365
|
provider?: string;
|
|
26199
26366
|
supported: boolean;
|
|
26200
26367
|
supportsReasoningSummary?: boolean;
|
|
@@ -36662,6 +36829,10 @@ interface paths {
|
|
|
36662
36829
|
organizationId: string | null;
|
|
36663
36830
|
outputPreview: string | null;
|
|
36664
36831
|
promptTokens?: number | null;
|
|
36832
|
+
reasoningConfig?: unknown;
|
|
36833
|
+
reasoningRejection?: unknown;
|
|
36834
|
+
reasoningRequested?: unknown;
|
|
36835
|
+
reasoningTokens?: number | null;
|
|
36665
36836
|
recordId: string | null;
|
|
36666
36837
|
recordMetadata?: unknown;
|
|
36667
36838
|
recordName: string | null;
|
|
@@ -44060,6 +44231,7 @@ interface paths {
|
|
|
44060
44231
|
enableSelfServeOauthClients: boolean;
|
|
44061
44232
|
enableVoice: boolean;
|
|
44062
44233
|
enableWorkspaceModel: boolean;
|
|
44234
|
+
modelCreditPromoMultiplier?: number;
|
|
44063
44235
|
workspaceModelEligible: boolean;
|
|
44064
44236
|
workspaceModelReady: boolean;
|
|
44065
44237
|
};
|
|
@@ -44606,6 +44778,12 @@ interface components {
|
|
|
44606
44778
|
enabled: true;
|
|
44607
44779
|
types: ("markdown" | "component")[];
|
|
44608
44780
|
};
|
|
44781
|
+
durability?: {
|
|
44782
|
+
/** @enum {string} */
|
|
44783
|
+
forced?: "durable" | "in_process";
|
|
44784
|
+
maxBudgetMs?: number | null;
|
|
44785
|
+
watchLeaseMs?: number | null;
|
|
44786
|
+
};
|
|
44609
44787
|
errorHandling?: {
|
|
44610
44788
|
fallbacks?: ({
|
|
44611
44789
|
delay?: number;
|
|
@@ -44652,6 +44830,7 @@ interface components {
|
|
|
44652
44830
|
presencePenalty?: number;
|
|
44653
44831
|
reasoning?: boolean | {
|
|
44654
44832
|
budgetTokens?: number;
|
|
44833
|
+
effort?: string;
|
|
44655
44834
|
enabled: boolean;
|
|
44656
44835
|
includeThoughts?: boolean;
|
|
44657
44836
|
/** @enum {string} */
|
|
@@ -44659,6 +44838,7 @@ interface components {
|
|
|
44659
44838
|
/** @enum {string} */
|
|
44660
44839
|
reasoningSummary?: "auto" | "detailed";
|
|
44661
44840
|
thinkingBudget?: number;
|
|
44841
|
+
thinkingLevel?: string;
|
|
44662
44842
|
};
|
|
44663
44843
|
sandbox?: {
|
|
44664
44844
|
enabled: boolean;
|
|
@@ -47026,6 +47206,13 @@ interface PromptStepConfig$1 {
|
|
|
47026
47206
|
* ```typescript
|
|
47027
47207
|
* reasoning: { enabled: true, reasoningSummary: 'auto' }
|
|
47028
47208
|
* ```
|
|
47209
|
+
*
|
|
47210
|
+
* @example Adaptive-thinking Claude (Claude 4.6 and later, including the Claude 5 family) with an effort level
|
|
47211
|
+
* ```typescript
|
|
47212
|
+
* // `effort`, not `budgetTokens` — adaptive thinking carries no token
|
|
47213
|
+
* // budget, so a budget set here is dropped before the request is sent.
|
|
47214
|
+
* reasoning: { enabled: true, effort: 'high' }
|
|
47215
|
+
* ```
|
|
47029
47216
|
*/
|
|
47030
47217
|
reasoning?: boolean | ReasoningConfig;
|
|
47031
47218
|
artifacts?: {
|
|
@@ -47464,7 +47651,13 @@ interface DispatchOptions$1 {
|
|
|
47464
47651
|
autoAppendMetadata?: boolean;
|
|
47465
47652
|
debugMode?: boolean;
|
|
47466
47653
|
loggingPolicy?: 'default' | 'on' | 'off';
|
|
47467
|
-
/**
|
|
47654
|
+
/**
|
|
47655
|
+
* Ignored for flows (runtime eligibility selects the engine). For agents,
|
|
47656
|
+
* `false` is deprecated: the legacy agent engine is being retired, a `false`
|
|
47657
|
+
* response carries `Deprecation` headers today, and a later release rejects
|
|
47658
|
+
* it. Omit the field for the default runtime lane, or send `true` for the
|
|
47659
|
+
* strict opt-in that fails loudly instead of folding to legacy.
|
|
47660
|
+
*/
|
|
47468
47661
|
useRuntimePackage?: boolean;
|
|
47469
47662
|
localInference?: {
|
|
47470
47663
|
sessionId: string;
|
|
@@ -48160,6 +48353,13 @@ interface ModelConfig {
|
|
|
48160
48353
|
/** @deprecated Use keyStatus instead */
|
|
48161
48354
|
supportsCustomKey: boolean;
|
|
48162
48355
|
keyStatus?: 'platform' | 'custom' | 'needs_setup';
|
|
48356
|
+
/**
|
|
48357
|
+
* Factor platform-key spend on this model is billed at while a credit promo
|
|
48358
|
+
* is active (`0.1` = 90% off); `1` or absent when undiscounted.
|
|
48359
|
+
*/
|
|
48360
|
+
creditPromoMultiplier?: number;
|
|
48361
|
+
/** Plain-language discount callout, e.g. `"90% off"`; `null`/absent when undiscounted. */
|
|
48362
|
+
creditPromoLabel?: string | null;
|
|
48163
48363
|
costPer1kTokens?: number;
|
|
48164
48364
|
contextLength?: number;
|
|
48165
48365
|
maxOutputTokens?: number;
|
|
@@ -48889,7 +49089,28 @@ interface ReasoningConfig {
|
|
|
48889
49089
|
reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
48890
49090
|
reasoningSummary?: 'auto' | 'detailed';
|
|
48891
49091
|
budgetTokens?: number;
|
|
49092
|
+
/**
|
|
49093
|
+
* Effort level for Claude ADAPTIVE thinking (Claude 4.6 and later, including the Claude 5 family), forwarded to
|
|
49094
|
+
* Anthropic's `output_config.effort`. Mutually exclusive with
|
|
49095
|
+
* `budgetTokens`: an adaptive model discards a budget, and the older
|
|
49096
|
+
* `budgetTokens` models reject an effort.
|
|
49097
|
+
*
|
|
49098
|
+
* A plain string rather than the `reasoningEffort` union because the accepted
|
|
49099
|
+
* ladder is per-model catalog data and already carries rungs outside it (such
|
|
49100
|
+
* as `'max'`). Validate a flow to see the ladder a specific model accepts —
|
|
49101
|
+
* `REASONING_KNOB_UNSUPPORTED` carries it in `details.accepted`.
|
|
49102
|
+
*/
|
|
49103
|
+
effort?: string;
|
|
48892
49104
|
thinkingBudget?: number;
|
|
49105
|
+
/**
|
|
49106
|
+
* Thinking LEVEL for Gemini 3+ models, forwarded to the Google provider's
|
|
49107
|
+
* `thinkingConfig`. Mutually exclusive with `thinkingBudget` per model
|
|
49108
|
+
* (Gemini 3+ takes the level, Gemini 2.5 takes the budget). Sending the wrong
|
|
49109
|
+
* one is not an error — it is silently ignored.
|
|
49110
|
+
*
|
|
49111
|
+
* A plain string for the same per-model-catalog-ladder reason as `effort`.
|
|
49112
|
+
*/
|
|
49113
|
+
thinkingLevel?: string;
|
|
48893
49114
|
includeThoughts?: boolean;
|
|
48894
49115
|
}
|
|
48895
49116
|
type ReasoningValue = boolean | ReasoningConfig;
|
|
@@ -52184,6 +52405,19 @@ interface AgentDefinitionConfig {
|
|
|
52184
52405
|
profileTemplate?: string;
|
|
52185
52406
|
injectSummary?: boolean;
|
|
52186
52407
|
};
|
|
52408
|
+
/**
|
|
52409
|
+
* Durable-turn knobs (ADR 0020). `watchLeaseMs` is how long a streaming
|
|
52410
|
+
* caller is watched before the stream ends with `await` /
|
|
52411
|
+
* `awaitReason: 'detached'` (the turn keeps running server-side);
|
|
52412
|
+
* `maxBudgetMs` is the absolute wall-clock budget for one turn; `forced`
|
|
52413
|
+
* pins the lane past the policy. `null` on either duration is the wire-only
|
|
52414
|
+
* reset marker.
|
|
52415
|
+
*/
|
|
52416
|
+
durability?: {
|
|
52417
|
+
watchLeaseMs?: number | null;
|
|
52418
|
+
maxBudgetMs?: number | null;
|
|
52419
|
+
forced?: 'durable' | 'in_process';
|
|
52420
|
+
};
|
|
52187
52421
|
}
|
|
52188
52422
|
/**
|
|
52189
52423
|
* `defineAgent` input — the flat authoring shape: identity + presentation
|
|
@@ -53401,6 +53635,90 @@ declare class Runtype {
|
|
|
53401
53635
|
static get surfaces(): SurfacesNamespace;
|
|
53402
53636
|
}
|
|
53403
53637
|
|
|
53638
|
+
/**
|
|
53639
|
+
* Transparent reconnect for a DETACHED agent stream (ADR 0020 point 6;
|
|
53640
|
+
* blueprint `2026-08-25-durable-by-default-agent-turns.md` §4).
|
|
53641
|
+
*
|
|
53642
|
+
* ## What the server does
|
|
53643
|
+
*
|
|
53644
|
+
* A durable agent turn runs inside a Durable Object, and the socket it streams
|
|
53645
|
+
* over carries a WATCH LEASE (10 minutes by default), not the turn's lifetime.
|
|
53646
|
+
* When the lease expires the server emits a unified `await` frame with
|
|
53647
|
+
* `awaitReason: 'detached'` and CLOSES the stream — the execution keeps running
|
|
53648
|
+
* server-side. Detach is part of the public contract, not an error:
|
|
53649
|
+
*
|
|
53650
|
+
* id: 118
|
|
53651
|
+
* event: await
|
|
53652
|
+
* data: {"type":"await","awaitReason":"detached","executionId":"aex_…",…}
|
|
53653
|
+
*
|
|
53654
|
+
* Raw-HTTP consumers get documented behavior. The SDKs are expected to follow
|
|
53655
|
+
* it, which is what this module does: it reopens the turn through the events
|
|
53656
|
+
* route with `?after=<last SSE id>` and keeps yielding frames until a real
|
|
53657
|
+
* terminal arrives.
|
|
53658
|
+
*
|
|
53659
|
+
* ## Why it wraps the stream rather than the callbacks
|
|
53660
|
+
*
|
|
53661
|
+
* `executeStream` is the single place every consumer goes through
|
|
53662
|
+
* (`executeWithCallbacks` and the local-tool loop both build on it), so
|
|
53663
|
+
* wrapping the `Response` body makes reconnect transparent for all of them at
|
|
53664
|
+
* once — and for a caller reading the raw stream by hand.
|
|
53665
|
+
*
|
|
53666
|
+
* Bytes are forwarded VERBATIM. This is not a re-encoder: it parses complete
|
|
53667
|
+
* SSE blocks only to observe three things (the last `id:`, the executionId, and
|
|
53668
|
+
* whether a terminal or a detach frame went by), and passes the original text
|
|
53669
|
+
* straight through. That matters because the `id:` line IS the relay cursor —
|
|
53670
|
+
* re-stamping it would break the very reconnect this exists to perform.
|
|
53671
|
+
*
|
|
53672
|
+
* ## Cursor and duplicate-freedom
|
|
53673
|
+
*
|
|
53674
|
+
* The server replays strictly AFTER the cursor, so a reconnect produces no
|
|
53675
|
+
* duplicates. A cursor that is malformed or lost fails OPEN to a replay from
|
|
53676
|
+
* the start of the turn, which is why the last-seen `id:` is tracked as the
|
|
53677
|
+
* raw string rather than being parsed into a number here.
|
|
53678
|
+
*
|
|
53679
|
+
* ## The detach frame is not swallowed
|
|
53680
|
+
*
|
|
53681
|
+
* It is forwarded like any other frame. The wire vocabulary is unchanged, so a
|
|
53682
|
+
* consumer that renders `await` states keeps rendering this one; the difference
|
|
53683
|
+
* is only that the stream no longer ENDS there.
|
|
53684
|
+
*
|
|
53685
|
+
* The Python SDK mirrors this behavior — a follow-up, tracked with the rest of
|
|
53686
|
+
* the SDK work in the blueprint's §4 slice 2.
|
|
53687
|
+
*/
|
|
53688
|
+
/**
|
|
53689
|
+
* How many times a single logical turn may be re-opened. A detached turn is
|
|
53690
|
+
* bounded by its absolute budget (30 minutes by default, 24 hours at most) and
|
|
53691
|
+
* each leg covers a full watch lease, so this is a safety stop against a server
|
|
53692
|
+
* that detaches immediately and repeatedly — not a normal-path limit.
|
|
53693
|
+
*/
|
|
53694
|
+
declare const DEFAULT_MAX_DETACHED_RECONNECTS = 12;
|
|
53695
|
+
interface DetachedReconnectOptions {
|
|
53696
|
+
/**
|
|
53697
|
+
* Turn transparent reconnect OFF and hand back the raw stream, ending at the
|
|
53698
|
+
* detach frame. The documented escape hatch: a caller that wants to own the
|
|
53699
|
+
* reconnect (its own backoff, its own cursor storage, a handoff to another
|
|
53700
|
+
* process) sets this and drives the events route itself.
|
|
53701
|
+
*/
|
|
53702
|
+
autoReconnect?: boolean;
|
|
53703
|
+
/** Safety stop; see {@link DEFAULT_MAX_DETACHED_RECONNECTS}. */
|
|
53704
|
+
maxReconnects?: number;
|
|
53705
|
+
/** Milliseconds to wait before each reconnect attempt. */
|
|
53706
|
+
reconnectDelayMs?: number;
|
|
53707
|
+
}
|
|
53708
|
+
/** Open the next leg of a detached turn. Returns `null` when it cannot. */
|
|
53709
|
+
type DetachedReattach = (args: {
|
|
53710
|
+
executionId: string;
|
|
53711
|
+
after: string;
|
|
53712
|
+
signal?: AbortSignal;
|
|
53713
|
+
}) => Promise<Response | null>;
|
|
53714
|
+
/**
|
|
53715
|
+
* Wrap a durable-turn SSE `Response` so a detach transparently continues.
|
|
53716
|
+
*
|
|
53717
|
+
* A non-streaming or failed response is returned untouched — there is nothing
|
|
53718
|
+
* to follow, and swallowing it here would hide the error from the caller.
|
|
53719
|
+
*/
|
|
53720
|
+
declare function withDetachedReconnect(response: Response, reattach: DetachedReattach, options?: DetachedReconnectOptions): Response;
|
|
53721
|
+
|
|
53404
53722
|
/**
|
|
53405
53723
|
* Agent API key request types.
|
|
53406
53724
|
*
|
|
@@ -56068,6 +56386,45 @@ interface Agent {
|
|
|
56068
56386
|
createdAt: string;
|
|
56069
56387
|
updatedAt: string;
|
|
56070
56388
|
}
|
|
56389
|
+
/**
|
|
56390
|
+
* Durable-turn admission controls (ADR 0020), sent as request headers on
|
|
56391
|
+
* `POST /agents/{id}/execute`.
|
|
56392
|
+
*
|
|
56393
|
+
* The route declares all three, so they are in the published spec and in every
|
|
56394
|
+
* generated SDK; this bag is the hand-written namespace's equivalent. Each is
|
|
56395
|
+
* optional, and sending none of them leaves the wire behavior of the call
|
|
56396
|
+
* exactly as it was. They are read only by the durable lane: a turn that
|
|
56397
|
+
* resolves to the in-process lane ignores them.
|
|
56398
|
+
*/
|
|
56399
|
+
interface AgentAdmissionOptions {
|
|
56400
|
+
/**
|
|
56401
|
+
* What to do when the conversation already has a turn in flight. `reject`
|
|
56402
|
+
* (the default when omitted) answers `CONVERSATION_BUSY`; `supersede`
|
|
56403
|
+
* cancels the incumbent and takes over; `queue` runs after it.
|
|
56404
|
+
*/
|
|
56405
|
+
concurrency?: 'reject' | 'supersede' | 'queue';
|
|
56406
|
+
/**
|
|
56407
|
+
* Fold this request into an already-pending turn for the same conversation
|
|
56408
|
+
* instead of starting a second one. The response is the pending execution.
|
|
56409
|
+
*/
|
|
56410
|
+
coalesce?: boolean;
|
|
56411
|
+
/**
|
|
56412
|
+
* Caller-chosen key that makes admission idempotent: a retry with the same
|
|
56413
|
+
* key returns the ORIGINAL execution rather than starting a second turn, and
|
|
56414
|
+
* consumes no additional quota.
|
|
56415
|
+
*/
|
|
56416
|
+
idempotencyKey?: string;
|
|
56417
|
+
}
|
|
56418
|
+
/**
|
|
56419
|
+
* Project {@link AgentAdmissionOptions} onto the three wire headers.
|
|
56420
|
+
*
|
|
56421
|
+
* Absent fields emit no header at all, because the route distinguishes "header
|
|
56422
|
+
* omitted" from "header sent with the default value" only for `coalesce`
|
|
56423
|
+
* (`'true'` is the sole accepted value; anything else starts a new turn) — but
|
|
56424
|
+
* emitting nothing for every absent field keeps a caller that passes `{}`
|
|
56425
|
+
* byte-identical to one that passes nothing.
|
|
56426
|
+
*/
|
|
56427
|
+
declare function buildAgentAdmissionHeaders(options?: AgentAdmissionOptions): Record<string, string>;
|
|
56071
56428
|
/**
|
|
56072
56429
|
* Agents endpoint handlers
|
|
56073
56430
|
*/
|
|
@@ -56139,9 +56496,9 @@ declare class AgentsEndpoint {
|
|
|
56139
56496
|
/**
|
|
56140
56497
|
* Execute an agent (non-streaming)
|
|
56141
56498
|
*/
|
|
56142
|
-
execute(id: string, data: AgentExecuteRequest): Promise<AgentExecuteResponse>;
|
|
56499
|
+
execute(id: string, data: AgentExecuteRequest, options?: AgentAdmissionOptions): Promise<AgentExecuteResponse>;
|
|
56143
56500
|
/** Start an agent execution and return its durable handle immediately. */
|
|
56144
|
-
executeAsync(id: string, data: AgentExecuteRequest): Promise<AsyncExecutionHandle>;
|
|
56501
|
+
executeAsync(id: string, data: AgentExecuteRequest, options?: AgentAdmissionOptions): Promise<AsyncExecutionHandle>;
|
|
56145
56502
|
/**
|
|
56146
56503
|
* Execute an agent with streaming response
|
|
56147
56504
|
*
|
|
@@ -56162,7 +56519,17 @@ declare class AgentsEndpoint {
|
|
|
56162
56519
|
*/
|
|
56163
56520
|
executeStream(id: string, data: AgentExecuteRequest, init?: {
|
|
56164
56521
|
signal?: AbortSignal;
|
|
56165
|
-
}): Promise<Response>;
|
|
56522
|
+
} & DetachedReconnectOptions & AgentAdmissionOptions): Promise<Response>;
|
|
56523
|
+
/**
|
|
56524
|
+
* The `?after=` reattach leg every durable agent stream is followed with.
|
|
56525
|
+
*
|
|
56526
|
+
* Shared by `executeStream` and by the local-tool loop's RESUME leg: a
|
|
56527
|
+
* durable resume answers on the same watch-lease contract as the original
|
|
56528
|
+
* execute, so its socket can close on `awaitReason: 'detached'` too. Building
|
|
56529
|
+
* it once is what keeps the two from drifting into different cursor or
|
|
56530
|
+
* conversation-key behavior.
|
|
56531
|
+
*/
|
|
56532
|
+
private buildDetachedReattach;
|
|
56166
56533
|
/**
|
|
56167
56534
|
* Execute an agent with streaming and callbacks
|
|
56168
56535
|
*
|
|
@@ -58518,4 +58885,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
58518
58885
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
58519
58886
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
58520
58887
|
|
|
58521
|
-
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|
|
58888
|
+
export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
|