@runtypelabs/sdk 11.3.0 → 11.4.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 +54 -2
- package/dist/index.d.cts +333 -5
- package/dist/index.d.ts +333 -5
- package/dist/index.mjs +54 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1122,6 +1122,8 @@ interface paths {
|
|
|
1122
1122
|
timeoutMs?: number;
|
|
1123
1123
|
toolPool: string[];
|
|
1124
1124
|
};
|
|
1125
|
+
/** @enum {string} */
|
|
1126
|
+
intent?: "mandatory" | "best-effort";
|
|
1125
1127
|
maxToolCalls?: number;
|
|
1126
1128
|
mcpServers?: {
|
|
1127
1129
|
allowedTools?: string[];
|
|
@@ -1675,6 +1677,8 @@ interface paths {
|
|
|
1675
1677
|
timeoutMs?: number;
|
|
1676
1678
|
toolPool: string[];
|
|
1677
1679
|
};
|
|
1680
|
+
/** @enum {string} */
|
|
1681
|
+
intent?: "mandatory" | "best-effort";
|
|
1678
1682
|
maxToolCalls?: number;
|
|
1679
1683
|
mcpServers?: {
|
|
1680
1684
|
allowedTools?: string[];
|
|
@@ -2518,6 +2522,8 @@ interface paths {
|
|
|
2518
2522
|
timeoutMs?: number;
|
|
2519
2523
|
toolPool: string[];
|
|
2520
2524
|
} | null;
|
|
2525
|
+
/** @enum {string|null} */
|
|
2526
|
+
intent?: "mandatory" | "best-effort" | null;
|
|
2521
2527
|
maxToolCalls?: number;
|
|
2522
2528
|
mcpServers?: {
|
|
2523
2529
|
allowedTools?: string[];
|
|
@@ -14158,6 +14164,8 @@ interface paths {
|
|
|
14158
14164
|
args?: unknown;
|
|
14159
14165
|
at: string;
|
|
14160
14166
|
callId: string;
|
|
14167
|
+
/** @enum {boolean} */
|
|
14168
|
+
scriptRead?: true;
|
|
14161
14169
|
seq: number;
|
|
14162
14170
|
tool: string;
|
|
14163
14171
|
/** @enum {string} */
|
|
@@ -14174,6 +14182,8 @@ interface paths {
|
|
|
14174
14182
|
name?: string;
|
|
14175
14183
|
};
|
|
14176
14184
|
ok: boolean;
|
|
14185
|
+
/** @enum {boolean} */
|
|
14186
|
+
scriptRead?: true;
|
|
14177
14187
|
seq: number;
|
|
14178
14188
|
summary: string;
|
|
14179
14189
|
tool: string;
|
|
@@ -14479,7 +14489,7 @@ interface paths {
|
|
|
14479
14489
|
};
|
|
14480
14490
|
/**
|
|
14481
14491
|
* Stream a delegate task
|
|
14482
|
-
* @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors.
|
|
14492
|
+
* @description Unified execution Server-Sent Events, replayed then tailed until the task settles. Each frame carries its seq as the SSE id; reconnect with `after=<last id>` or Last-Event-ID. Stream cursors differ from JSON journal cursors. Reads a Code Mode script makes are not streamed; the JSON journal keeps them as events marked `scriptRead: true`.
|
|
14483
14493
|
*/
|
|
14484
14494
|
get: {
|
|
14485
14495
|
parameters: {
|
|
@@ -15472,6 +15482,8 @@ interface paths {
|
|
|
15472
15482
|
timeoutMs?: number;
|
|
15473
15483
|
toolPool: string[];
|
|
15474
15484
|
};
|
|
15485
|
+
/** @enum {string} */
|
|
15486
|
+
intent?: "mandatory" | "best-effort";
|
|
15475
15487
|
maxToolCalls?: number;
|
|
15476
15488
|
mcpServers?: unknown[];
|
|
15477
15489
|
perToolLimits?: {
|
|
@@ -15943,6 +15955,8 @@ interface paths {
|
|
|
15943
15955
|
timeoutMs?: number;
|
|
15944
15956
|
toolPool: string[];
|
|
15945
15957
|
};
|
|
15958
|
+
/** @enum {string} */
|
|
15959
|
+
intent?: "mandatory" | "best-effort";
|
|
15946
15960
|
maxToolCalls?: number;
|
|
15947
15961
|
mcpServers?: unknown[];
|
|
15948
15962
|
perToolLimits?: {
|
|
@@ -21076,6 +21090,8 @@ interface paths {
|
|
|
21076
21090
|
suggestion?: string;
|
|
21077
21091
|
}[];
|
|
21078
21092
|
error: string;
|
|
21093
|
+
/** @description On `insufficient_scope`: every API key scope this request needs. */
|
|
21094
|
+
requiredScopes?: string[];
|
|
21079
21095
|
};
|
|
21080
21096
|
};
|
|
21081
21097
|
};
|
|
@@ -21521,6 +21537,26 @@ interface paths {
|
|
|
21521
21537
|
patch?: never;
|
|
21522
21538
|
trace?: never;
|
|
21523
21539
|
};
|
|
21540
|
+
"/v1/extraction-models": {
|
|
21541
|
+
parameters: {
|
|
21542
|
+
query?: never;
|
|
21543
|
+
header?: never;
|
|
21544
|
+
path?: never;
|
|
21545
|
+
cookie?: never;
|
|
21546
|
+
};
|
|
21547
|
+
/**
|
|
21548
|
+
* List extraction models
|
|
21549
|
+
* @description List supported extraction models, their native routes, field and image limits, pricing and credential requirements. An extraction model reads typed field values out of text and images with no generated tokens; it runs the `extract` flow step. This static catalog does not verify account eligibility or spending readiness; execution performs those checks. These models are not chat models.
|
|
21550
|
+
*/
|
|
21551
|
+
get: operations["listExtractionModels"];
|
|
21552
|
+
put?: never;
|
|
21553
|
+
post?: never;
|
|
21554
|
+
delete?: never;
|
|
21555
|
+
options?: never;
|
|
21556
|
+
head?: never;
|
|
21557
|
+
patch?: never;
|
|
21558
|
+
trace?: never;
|
|
21559
|
+
};
|
|
21524
21560
|
"/v1/feedback": {
|
|
21525
21561
|
parameters: {
|
|
21526
21562
|
query?: never;
|
|
@@ -22662,7 +22698,7 @@ interface paths {
|
|
|
22662
22698
|
name: string;
|
|
22663
22699
|
order?: number;
|
|
22664
22700
|
/** @enum {string} */
|
|
22665
|
-
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
|
|
22701
|
+
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary" | "extract";
|
|
22666
22702
|
when?: string;
|
|
22667
22703
|
}[];
|
|
22668
22704
|
name: string;
|
|
@@ -22674,7 +22710,7 @@ interface paths {
|
|
|
22674
22710
|
name: string;
|
|
22675
22711
|
order?: number;
|
|
22676
22712
|
/** @enum {string} */
|
|
22677
|
-
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
|
|
22713
|
+
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary" | "extract";
|
|
22678
22714
|
when?: string;
|
|
22679
22715
|
}[];
|
|
22680
22716
|
};
|
|
@@ -23079,7 +23115,7 @@ interface paths {
|
|
|
23079
23115
|
name: string;
|
|
23080
23116
|
order?: number;
|
|
23081
23117
|
/** @enum {string} */
|
|
23082
|
-
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary";
|
|
23118
|
+
type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary" | "extract";
|
|
23083
23119
|
when?: string;
|
|
23084
23120
|
}[];
|
|
23085
23121
|
name?: string;
|
|
@@ -46273,6 +46309,124 @@ interface paths {
|
|
|
46273
46309
|
patch?: never;
|
|
46274
46310
|
trace?: never;
|
|
46275
46311
|
};
|
|
46312
|
+
"/v1/runtime/extractions": {
|
|
46313
|
+
parameters: {
|
|
46314
|
+
query?: never;
|
|
46315
|
+
header?: never;
|
|
46316
|
+
path?: never;
|
|
46317
|
+
cookie?: never;
|
|
46318
|
+
};
|
|
46319
|
+
get?: never;
|
|
46320
|
+
put?: never;
|
|
46321
|
+
/**
|
|
46322
|
+
* Extract typed fields (hosted ExtractionProvider)
|
|
46323
|
+
* @description The runtime-family extraction contract consumed by `@runtypelabs/runtime`’s HostedExtractionProvider, so a self-hosted runtime on platform or hybrid keys runs the `extract` step through Runtype with a Self-hosted Runtime key (`RUNTIME:EXECUTE`). Billed and recorded like an extract flow step. Requires an Enterprise plan: ineligible accounts receive 403 (code `BYOC_PLAN_REQUIRED`).
|
|
46324
|
+
*/
|
|
46325
|
+
post: {
|
|
46326
|
+
parameters: {
|
|
46327
|
+
query?: never;
|
|
46328
|
+
header?: never;
|
|
46329
|
+
path?: never;
|
|
46330
|
+
cookie?: never;
|
|
46331
|
+
};
|
|
46332
|
+
requestBody?: {
|
|
46333
|
+
content: {
|
|
46334
|
+
"application/json": components["schemas"]["RuntimeExtractionRequest"];
|
|
46335
|
+
};
|
|
46336
|
+
};
|
|
46337
|
+
responses: {
|
|
46338
|
+
/** @description The values, answers and extraction metadata */
|
|
46339
|
+
200: {
|
|
46340
|
+
headers: {
|
|
46341
|
+
[name: string]: unknown;
|
|
46342
|
+
};
|
|
46343
|
+
content: {
|
|
46344
|
+
"application/json": components["schemas"]["RuntimeExtractionResponse"];
|
|
46345
|
+
};
|
|
46346
|
+
};
|
|
46347
|
+
/** @description Invalid state, fields or images (see `code`) */
|
|
46348
|
+
400: {
|
|
46349
|
+
headers: {
|
|
46350
|
+
[name: string]: unknown;
|
|
46351
|
+
};
|
|
46352
|
+
content: {
|
|
46353
|
+
"application/json": components["schemas"]["Error"] & {
|
|
46354
|
+
/** @description Stable code for a caller-fixable failure, e.g. EXTRACTION_FIELDS_INVALID or EXTRACTION_MODEL_UNKNOWN. */
|
|
46355
|
+
code?: string;
|
|
46356
|
+
details?: {
|
|
46357
|
+
[key: string]: unknown;
|
|
46358
|
+
};
|
|
46359
|
+
};
|
|
46360
|
+
};
|
|
46361
|
+
};
|
|
46362
|
+
/** @description Unauthorized */
|
|
46363
|
+
401: {
|
|
46364
|
+
headers: {
|
|
46365
|
+
[name: string]: unknown;
|
|
46366
|
+
};
|
|
46367
|
+
content: {
|
|
46368
|
+
"application/json": components["schemas"]["Error"];
|
|
46369
|
+
};
|
|
46370
|
+
};
|
|
46371
|
+
/** @description Monthly spend limit exceeded */
|
|
46372
|
+
402: {
|
|
46373
|
+
headers: {
|
|
46374
|
+
[name: string]: unknown;
|
|
46375
|
+
};
|
|
46376
|
+
content: {
|
|
46377
|
+
"application/json": components["schemas"]["Error"];
|
|
46378
|
+
};
|
|
46379
|
+
};
|
|
46380
|
+
/** @description Not an API key, the key lacks an execute permission, or the account is not on an Enterprise plan (code `BYOC_PLAN_REQUIRED`) */
|
|
46381
|
+
403: {
|
|
46382
|
+
headers: {
|
|
46383
|
+
[name: string]: unknown;
|
|
46384
|
+
};
|
|
46385
|
+
content: {
|
|
46386
|
+
"application/json": components["schemas"]["Error"];
|
|
46387
|
+
};
|
|
46388
|
+
};
|
|
46389
|
+
/** @description The extraction model is not served or cannot be funded (see `code`) */
|
|
46390
|
+
422: {
|
|
46391
|
+
headers: {
|
|
46392
|
+
[name: string]: unknown;
|
|
46393
|
+
};
|
|
46394
|
+
content: {
|
|
46395
|
+
"application/json": components["schemas"]["Error"] & {
|
|
46396
|
+
/** @description Stable code for a caller-fixable failure, e.g. EXTRACTION_FIELDS_INVALID or EXTRACTION_MODEL_UNKNOWN. */
|
|
46397
|
+
code?: string;
|
|
46398
|
+
details?: {
|
|
46399
|
+
[key: string]: unknown;
|
|
46400
|
+
};
|
|
46401
|
+
};
|
|
46402
|
+
};
|
|
46403
|
+
};
|
|
46404
|
+
/** @description Daily execution limit or rate limit exceeded */
|
|
46405
|
+
429: {
|
|
46406
|
+
headers: {
|
|
46407
|
+
[name: string]: unknown;
|
|
46408
|
+
};
|
|
46409
|
+
content: {
|
|
46410
|
+
"application/json": components["schemas"]["Error"];
|
|
46411
|
+
};
|
|
46412
|
+
};
|
|
46413
|
+
/** @description Extraction failed */
|
|
46414
|
+
500: {
|
|
46415
|
+
headers: {
|
|
46416
|
+
[name: string]: unknown;
|
|
46417
|
+
};
|
|
46418
|
+
content: {
|
|
46419
|
+
"application/json": components["schemas"]["Error"];
|
|
46420
|
+
};
|
|
46421
|
+
};
|
|
46422
|
+
};
|
|
46423
|
+
};
|
|
46424
|
+
delete?: never;
|
|
46425
|
+
options?: never;
|
|
46426
|
+
head?: never;
|
|
46427
|
+
patch?: never;
|
|
46428
|
+
trace?: never;
|
|
46429
|
+
};
|
|
46276
46430
|
"/v1/runtime/judgments": {
|
|
46277
46431
|
parameters: {
|
|
46278
46432
|
query?: never;
|
|
@@ -58305,6 +58459,8 @@ interface components {
|
|
|
58305
58459
|
timeoutMs?: number;
|
|
58306
58460
|
toolPool: string[];
|
|
58307
58461
|
};
|
|
58462
|
+
/** @enum {string} */
|
|
58463
|
+
intent?: "mandatory" | "best-effort";
|
|
58308
58464
|
maxToolCalls?: number;
|
|
58309
58465
|
mcpServers?: {
|
|
58310
58466
|
allowedTools?: string[];
|
|
@@ -59139,6 +59295,8 @@ interface components {
|
|
|
59139
59295
|
timeoutMs?: number;
|
|
59140
59296
|
toolPool: string[];
|
|
59141
59297
|
} | null;
|
|
59298
|
+
/** @enum {string|null} */
|
|
59299
|
+
intent?: "mandatory" | "best-effort" | null;
|
|
59142
59300
|
maxToolCalls?: number;
|
|
59143
59301
|
mcpServers?: {
|
|
59144
59302
|
allowedTools?: string[];
|
|
@@ -59612,6 +59770,8 @@ interface components {
|
|
|
59612
59770
|
notes?: string;
|
|
59613
59771
|
};
|
|
59614
59772
|
Error: {
|
|
59773
|
+
/** @description Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs. */
|
|
59774
|
+
code?: string;
|
|
59615
59775
|
details?: {
|
|
59616
59776
|
/** @description Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM). */
|
|
59617
59777
|
code?: string;
|
|
@@ -59622,6 +59782,8 @@ interface components {
|
|
|
59622
59782
|
suggestion?: string;
|
|
59623
59783
|
}[];
|
|
59624
59784
|
error: string;
|
|
59785
|
+
/** @description On `insufficient_scope`: every API key scope this request needs. */
|
|
59786
|
+
requiredScopes?: string[];
|
|
59625
59787
|
};
|
|
59626
59788
|
/** @description Version selector for an Agent-target suite. Supply at most one of alias or versionId; omit it to run the saved configuration. */
|
|
59627
59789
|
EvalAgentSelector: {
|
|
@@ -60882,6 +61044,35 @@ interface components {
|
|
|
60882
61044
|
/** @enum {number} */
|
|
60883
61045
|
version: 1;
|
|
60884
61046
|
} | null;
|
|
61047
|
+
ExtractionModel: {
|
|
61048
|
+
contextWindow: number;
|
|
61049
|
+
credentialRequirements: {
|
|
61050
|
+
organizationCredentialSupported: boolean;
|
|
61051
|
+
platformFundingSupported: boolean;
|
|
61052
|
+
/** @enum {string} */
|
|
61053
|
+
provider: "platform";
|
|
61054
|
+
};
|
|
61055
|
+
description: string;
|
|
61056
|
+
docsUrl: string;
|
|
61057
|
+
id: string;
|
|
61058
|
+
maxImageBytes: number;
|
|
61059
|
+
maxImages: number;
|
|
61060
|
+
maxTotalImageBytes: number;
|
|
61061
|
+
name: string;
|
|
61062
|
+
passTokens: number;
|
|
61063
|
+
platformFunding: boolean;
|
|
61064
|
+
pricing: {
|
|
61065
|
+
inputPer1MTokens: number;
|
|
61066
|
+
inputPerToken: string;
|
|
61067
|
+
outputPer1MTokens: number;
|
|
61068
|
+
outputPerToken: string;
|
|
61069
|
+
};
|
|
61070
|
+
/** @enum {string} */
|
|
61071
|
+
provider: "cloudflare";
|
|
61072
|
+
providerModelId: string;
|
|
61073
|
+
/** @enum {string} */
|
|
61074
|
+
route: "cloudflare-workers-ai";
|
|
61075
|
+
};
|
|
60885
61076
|
FlowEnsureConflict: {
|
|
60886
61077
|
/** @enum {string} */
|
|
60887
61078
|
code: "external_modification" | "remote_changed";
|
|
@@ -61980,6 +62171,59 @@ interface components {
|
|
|
61980
62171
|
/** @description Skill slug; the agent loads it as `skill:<slug>`. */
|
|
61981
62172
|
slug: string;
|
|
61982
62173
|
};
|
|
62174
|
+
RuntimeExtractionMetadata: {
|
|
62175
|
+
/** @description Provider rates, before margin. */
|
|
62176
|
+
estimatedCostUsd?: number;
|
|
62177
|
+
/** @enum {string} */
|
|
62178
|
+
keySource: "user" | "platform";
|
|
62179
|
+
provider: string;
|
|
62180
|
+
requestedModel: string;
|
|
62181
|
+
resolvedModelId: string | null;
|
|
62182
|
+
route: string;
|
|
62183
|
+
usage: {
|
|
62184
|
+
inputTokens: number;
|
|
62185
|
+
outputTokens: number;
|
|
62186
|
+
passes?: number;
|
|
62187
|
+
reported: boolean;
|
|
62188
|
+
};
|
|
62189
|
+
};
|
|
62190
|
+
RuntimeExtractionRequest: {
|
|
62191
|
+
/** @description The self-hosted execution asking, recorded on the extraction telemetry. */
|
|
62192
|
+
executionId?: string;
|
|
62193
|
+
/** @description Field name to field spec, each `{ type: "text" | "number" | "date" | "time" | "datetime" | "duration" | "list" | "estimate" | "forecast", instructions?, ... }`. Refused with `EXTRACTION_FIELDS_INVALID` and one sentence per problem. */
|
|
62194
|
+
fields: {
|
|
62195
|
+
[key: string]: unknown;
|
|
62196
|
+
};
|
|
62197
|
+
/** @description Up to the model limit of embedded images: data: URLs or `{ contentType, base64 }`. Remote URLs are refused. */
|
|
62198
|
+
images?: unknown[];
|
|
62199
|
+
/** @description Extraction model id; defaults to the platform default. */
|
|
62200
|
+
model?: string;
|
|
62201
|
+
options?: {
|
|
62202
|
+
includeQuantiles?: boolean;
|
|
62203
|
+
returnStateText?: boolean;
|
|
62204
|
+
};
|
|
62205
|
+
/** @description ISO date anchoring dates written without a year. */
|
|
62206
|
+
referenceDate?: string;
|
|
62207
|
+
/** @description The text to read. Never echoed in errors or logs. */
|
|
62208
|
+
state: string;
|
|
62209
|
+
stepId?: string;
|
|
62210
|
+
};
|
|
62211
|
+
RuntimeExtractionResponse: {
|
|
62212
|
+
/** @description One answer per field: value, confidence, pNull, span(s) and estimate intervals. */
|
|
62213
|
+
answers: {
|
|
62214
|
+
[key: string]: unknown;
|
|
62215
|
+
};
|
|
62216
|
+
extraction: components["schemas"]["RuntimeExtractionMetadata"];
|
|
62217
|
+
model: string;
|
|
62218
|
+
truncated: boolean;
|
|
62219
|
+
usage: {
|
|
62220
|
+
[key: string]: unknown;
|
|
62221
|
+
};
|
|
62222
|
+
/** @description One value per field; null when the input does not determine it. */
|
|
62223
|
+
values: {
|
|
62224
|
+
[key: string]: unknown;
|
|
62225
|
+
};
|
|
62226
|
+
};
|
|
61983
62227
|
RuntimeHostDependency: {
|
|
61984
62228
|
interface: string;
|
|
61985
62229
|
/** @enum {string} */
|
|
@@ -62701,6 +62945,37 @@ interface operations {
|
|
|
62701
62945
|
};
|
|
62702
62946
|
};
|
|
62703
62947
|
};
|
|
62948
|
+
listExtractionModels: {
|
|
62949
|
+
parameters: {
|
|
62950
|
+
query?: never;
|
|
62951
|
+
header?: never;
|
|
62952
|
+
path?: never;
|
|
62953
|
+
cookie?: never;
|
|
62954
|
+
};
|
|
62955
|
+
requestBody?: never;
|
|
62956
|
+
responses: {
|
|
62957
|
+
/** @description Supported extraction model catalog. */
|
|
62958
|
+
200: {
|
|
62959
|
+
headers: {
|
|
62960
|
+
[name: string]: unknown;
|
|
62961
|
+
};
|
|
62962
|
+
content: {
|
|
62963
|
+
"application/json": {
|
|
62964
|
+
models: components["schemas"]["ExtractionModel"][];
|
|
62965
|
+
};
|
|
62966
|
+
};
|
|
62967
|
+
};
|
|
62968
|
+
/** @description Unauthorized */
|
|
62969
|
+
401: {
|
|
62970
|
+
headers: {
|
|
62971
|
+
[name: string]: unknown;
|
|
62972
|
+
};
|
|
62973
|
+
content: {
|
|
62974
|
+
"application/json": components["schemas"]["Error"];
|
|
62975
|
+
};
|
|
62976
|
+
};
|
|
62977
|
+
};
|
|
62978
|
+
};
|
|
62704
62979
|
getOtlpIngestHealth: {
|
|
62705
62980
|
parameters: {
|
|
62706
62981
|
query?: {
|
|
@@ -64499,6 +64774,8 @@ export declare class FlowBuilder {
|
|
|
64499
64774
|
recallMemory(config: RawStepMethodConfig$1): this;
|
|
64500
64775
|
/** Add a memory-summary step. */
|
|
64501
64776
|
memorySummary(config: RawStepMethodConfig$1): this;
|
|
64777
|
+
/** Add an extract step: typed fields read out of text and images by an extraction model. */
|
|
64778
|
+
extract(config: RawStepMethodConfig$1): this;
|
|
64502
64779
|
/**
|
|
64503
64780
|
* Attach a subagent runtime tool to the most recent prompt step.
|
|
64504
64781
|
*
|
|
@@ -71369,6 +71646,8 @@ export declare class RuntypeFlowBuilder {
|
|
|
71369
71646
|
recallMemory(config: RawStepMethodConfig): this;
|
|
71370
71647
|
/** Add a memory-summary step. */
|
|
71371
71648
|
memorySummary(config: RawStepMethodConfig): this;
|
|
71649
|
+
/** Add an extract step: typed fields read out of text and images by an extraction model. */
|
|
71650
|
+
extract(config: RawStepMethodConfig): this;
|
|
71372
71651
|
/**
|
|
71373
71652
|
* Set a run condition (when predicate) on the last added step.
|
|
71374
71653
|
* If the expression evaluates to falsy at runtime, the step is skipped.
|
|
@@ -73120,6 +73399,8 @@ interface AgentDefinitionConfig {
|
|
|
73120
73399
|
threshold?: number;
|
|
73121
73400
|
alwaysLoaded?: string[];
|
|
73122
73401
|
};
|
|
73402
|
+
/** `mandatory`: a non-idempotent tool runs only after its intent is recorded (default `best-effort`). */
|
|
73403
|
+
intent?: 'mandatory' | 'best-effort';
|
|
73123
73404
|
};
|
|
73124
73405
|
artifacts?: {
|
|
73125
73406
|
enabled: true;
|
|
@@ -75090,6 +75371,49 @@ interface DecisionModelCatalog {
|
|
|
75090
75371
|
models: DecisionModelCatalogEntry[];
|
|
75091
75372
|
}
|
|
75092
75373
|
//#endregion
|
|
75374
|
+
//#region ../shared/dist/index-DxcjM9ZR.d.ts
|
|
75375
|
+
//#endregion
|
|
75376
|
+
//#region src/extraction/models.d.ts
|
|
75377
|
+
type ExtractionModelProvider = 'cloudflare';
|
|
75378
|
+
type ExtractionModelRoute = 'cloudflare-workers-ai';
|
|
75379
|
+
interface ExtractionModelPricing {
|
|
75380
|
+
readonly inputPerToken: string;
|
|
75381
|
+
readonly outputPerToken: string;
|
|
75382
|
+
readonly inputPer1MTokens: number;
|
|
75383
|
+
readonly outputPer1MTokens: number;
|
|
75384
|
+
}
|
|
75385
|
+
/** Limits describe what Runtype sends, not every capability of the upstream model. */
|
|
75386
|
+
interface ExtractionModelDescriptor {
|
|
75387
|
+
readonly id: string;
|
|
75388
|
+
readonly name: string;
|
|
75389
|
+
readonly provider: ExtractionModelProvider;
|
|
75390
|
+
readonly route: ExtractionModelRoute;
|
|
75391
|
+
readonly providerModelId: string;
|
|
75392
|
+
readonly description: string;
|
|
75393
|
+
readonly contextWindow: number;
|
|
75394
|
+
/** Tokens one pass holds; fields beyond it are split across parallel passes server-side. */
|
|
75395
|
+
readonly passTokens: number;
|
|
75396
|
+
readonly maxImages: number;
|
|
75397
|
+
readonly maxImageBytes: number;
|
|
75398
|
+
readonly maxTotalImageBytes: number;
|
|
75399
|
+
readonly pricing: ExtractionModelPricing;
|
|
75400
|
+
readonly platformFunding: boolean;
|
|
75401
|
+
readonly docsUrl: string;
|
|
75402
|
+
}
|
|
75403
|
+
//#endregion
|
|
75404
|
+
//#region src/extraction-models.d.ts
|
|
75405
|
+
/** Supported model capabilities, not the calling organization's spending readiness. */
|
|
75406
|
+
type ExtractionModelCatalogEntry = ExtractionModelDescriptor & {
|
|
75407
|
+
credentialRequirements: {
|
|
75408
|
+
provider: 'platform';
|
|
75409
|
+
organizationCredentialSupported: boolean;
|
|
75410
|
+
platformFundingSupported: boolean;
|
|
75411
|
+
};
|
|
75412
|
+
};
|
|
75413
|
+
interface ExtractionModelCatalog {
|
|
75414
|
+
models: ExtractionModelCatalogEntry[];
|
|
75415
|
+
}
|
|
75416
|
+
//#endregion
|
|
75093
75417
|
//#region src/simulation-tool-memory-types.d.ts
|
|
75094
75418
|
/** How one tool call was answered: the rung of the response ladder that served it. */
|
|
75095
75419
|
type SimulationServedBy = 'live' | 'recorded' | 'transformed' | 'composite' | 'synthesized' | 'stub' | 'fault';
|
|
@@ -75605,6 +75929,8 @@ type ConditionalGetResult<T> = {
|
|
|
75605
75929
|
export declare class RuntypeClient implements ApiClient {
|
|
75606
75930
|
/** List supported decision models; credentials and spending policy are checked at execution. */
|
|
75607
75931
|
listDecisionModels(): Promise<DecisionModelCatalog>;
|
|
75932
|
+
/** List supported extraction models; spending policy is checked at execution. */
|
|
75933
|
+
listExtractionModels(): Promise<ExtractionModelCatalog>;
|
|
75608
75934
|
private baseUrl;
|
|
75609
75935
|
private apiVersion;
|
|
75610
75936
|
private timeout;
|
|
@@ -76828,6 +77154,7 @@ export declare const STEP_FIELD_REGISTRY: {
|
|
|
76828
77154
|
readonly 'save-memory': readonly StepFieldMeta[];
|
|
76829
77155
|
readonly 'recall-memory': readonly StepFieldMeta[];
|
|
76830
77156
|
readonly 'memory-summary': readonly StepFieldMeta[];
|
|
77157
|
+
readonly extract: readonly StepFieldMeta[];
|
|
76831
77158
|
};
|
|
76832
77159
|
/**
|
|
76833
77160
|
* Maps every step type to its FlowBuilder method name. Covers all known step
|
|
@@ -76865,6 +77192,7 @@ export declare const STEP_TYPE_TO_METHOD: {
|
|
|
76865
77192
|
readonly 'save-memory': 'saveMemory';
|
|
76866
77193
|
readonly 'recall-memory': 'recallMemory';
|
|
76867
77194
|
readonly 'memory-summary': 'memorySummary';
|
|
77195
|
+
readonly extract: 'extract';
|
|
76868
77196
|
};
|
|
76869
77197
|
//#endregion
|
|
76870
77198
|
//#region src/workflows/hook-registry.d.ts
|
|
@@ -77130,5 +77458,5 @@ export declare function getLikelySupportingCandidatePaths(bestCandidatePath: str
|
|
|
77130
77458
|
export declare function getDefaultPlanPath(taskName: string): string;
|
|
77131
77459
|
export declare function sanitizeTaskSlug(taskName: string): string;
|
|
77132
77460
|
//#endregion
|
|
77133
|
-
export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
|
|
77461
|
+
export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
|
|
77134
77462
|
export {}
|
package/dist/index.mjs
CHANGED
|
@@ -1474,6 +1474,10 @@ var FlowBuilder = class {
|
|
|
1474
1474
|
memorySummary(config) {
|
|
1475
1475
|
return this.addRawStep("memory-summary", config);
|
|
1476
1476
|
}
|
|
1477
|
+
/** Add an extract step: typed fields read out of text and images by an extraction model. */
|
|
1478
|
+
extract(config) {
|
|
1479
|
+
return this.addRawStep("extract", config);
|
|
1480
|
+
}
|
|
1477
1481
|
/**
|
|
1478
1482
|
* Attach a subagent runtime tool to the most recent prompt step.
|
|
1479
1483
|
*
|
|
@@ -10638,6 +10642,10 @@ var RuntypeFlowBuilder = class {
|
|
|
10638
10642
|
memorySummary(config) {
|
|
10639
10643
|
return this.addRawStep("memory-summary", config);
|
|
10640
10644
|
}
|
|
10645
|
+
/** Add an extract step: typed fields read out of text and images by an extraction model. */
|
|
10646
|
+
extract(config) {
|
|
10647
|
+
return this.addRawStep("extract", config);
|
|
10648
|
+
}
|
|
10641
10649
|
/**
|
|
10642
10650
|
* Set a run condition (when predicate) on the last added step.
|
|
10643
10651
|
* If the expression evaluates to falsy at runtime, the step is skipped.
|
|
@@ -14609,7 +14617,7 @@ function transformQueryParams(params) {
|
|
|
14609
14617
|
}
|
|
14610
14618
|
//#endregion
|
|
14611
14619
|
//#region src/version.ts
|
|
14612
|
-
const SDK_VERSION = "11.
|
|
14620
|
+
const SDK_VERSION = "11.4.0";
|
|
14613
14621
|
/**
|
|
14614
14622
|
* Canonical client identity the API uses for attribution
|
|
14615
14623
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
|
@@ -14649,6 +14657,10 @@ var RuntypeClient = class {
|
|
|
14649
14657
|
async listDecisionModels() {
|
|
14650
14658
|
return this.get("/decision-models");
|
|
14651
14659
|
}
|
|
14660
|
+
/** List supported extraction models; spending policy is checked at execution. */
|
|
14661
|
+
async listExtractionModels() {
|
|
14662
|
+
return this.get("/extraction-models");
|
|
14663
|
+
}
|
|
14652
14664
|
constructor(config = {}) {
|
|
14653
14665
|
const baseUrl = config.baseUrl || "https://api.runtype.com";
|
|
14654
14666
|
this.apiVersion = config.apiVersion || "v1";
|
|
@@ -16787,6 +16799,45 @@ const STEP_FIELD_REGISTRY = {
|
|
|
16787
16799
|
key: "defaultValue",
|
|
16788
16800
|
format: "value"
|
|
16789
16801
|
}
|
|
16802
|
+
],
|
|
16803
|
+
extract: [
|
|
16804
|
+
{
|
|
16805
|
+
key: "model",
|
|
16806
|
+
format: "json"
|
|
16807
|
+
},
|
|
16808
|
+
{
|
|
16809
|
+
key: "state",
|
|
16810
|
+
format: "template"
|
|
16811
|
+
},
|
|
16812
|
+
{
|
|
16813
|
+
key: "images",
|
|
16814
|
+
format: "value"
|
|
16815
|
+
},
|
|
16816
|
+
{
|
|
16817
|
+
key: "fields",
|
|
16818
|
+
format: "value"
|
|
16819
|
+
},
|
|
16820
|
+
{
|
|
16821
|
+
key: "referenceDate",
|
|
16822
|
+
format: "json"
|
|
16823
|
+
},
|
|
16824
|
+
{
|
|
16825
|
+
key: "options",
|
|
16826
|
+
format: "value"
|
|
16827
|
+
},
|
|
16828
|
+
{
|
|
16829
|
+
key: "outputVariable",
|
|
16830
|
+
format: "json"
|
|
16831
|
+
},
|
|
16832
|
+
{
|
|
16833
|
+
key: "errorHandling",
|
|
16834
|
+
format: "value",
|
|
16835
|
+
skipDefault: "fail"
|
|
16836
|
+
},
|
|
16837
|
+
{
|
|
16838
|
+
key: "defaultValue",
|
|
16839
|
+
format: "value"
|
|
16840
|
+
}
|
|
16790
16841
|
]
|
|
16791
16842
|
};
|
|
16792
16843
|
/**
|
|
@@ -16824,7 +16875,8 @@ const STEP_TYPE_TO_METHOD = {
|
|
|
16824
16875
|
"generate-pdf": "generatePdf",
|
|
16825
16876
|
"save-memory": "saveMemory",
|
|
16826
16877
|
"recall-memory": "recallMemory",
|
|
16827
|
-
"memory-summary": "memorySummary"
|
|
16878
|
+
"memory-summary": "memorySummary",
|
|
16879
|
+
extract: "extract"
|
|
16828
16880
|
};
|
|
16829
16881
|
//#endregion
|
|
16830
16882
|
export { AgentAliasDependencyError, AgentAliasNotFoundError, AgentAliasRevisionMismatchError, AgentAliasRevisionRequiredError, AgentAliasesNamespace, AgentDeploymentsNamespace, AgentDriftError, AgentEnsureConflictError, AgentPromotionError, AgentVersionsEndpoint, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, ApiKeyRequestsEndpoint, ApiKeysEndpoint, BatchBuilder, BatchesNamespace, BillingEndpoint, ChatEndpoint, ClientBatchBuilder, ClientEvalBuilder, ClientFlowBuilder, ClientTokenDriftError, ClientTokenEnsureError, ClientTokensEndpoint, ClientTokensNamespace, CollectionDriftError, CollectionEnsureConflictError, CollectionsEndpoint, ContextTemplatesEndpoint, ConversationsEndpoint, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, DispatchEndpoint, ENSURE_RELEASE_DEPLOY_CONFLICT_MESSAGE, EvalBuilder, EvalDriftError, EvalEndpoint, EvalEnsureConflictError, EvalRunner, EvalSuitesNamespace, EvalsNamespace, ExecutionsEndpoint, ExecutionsNamespace, FlowBuilder, FlowDriftError, FlowEnsureConflictError, FlowResult, FlowStepsEndpoint, FlowVersionsEndpoint, FlowsEndpoint, FlowsNamespace, FpoDriftError, IntegrationsEndpoint, LEDGER_ARTIFACT_LINE_PREFIX, LIVE_AGENT_ALIAS, LogsEndpoint, ModelConfigsEndpoint, ProductDriftError, ProductEnsureConflictError, ProductsNamespace, PromptsEndpoint, PromptsNamespace, ProviderKeysEndpoint, QuestionSetDriftError, QuestionSetEnsureConflictError, QuestionSetsNamespace, RUNTYPE_CLIENT_KIND, RecordsEndpoint, RunsNamespace, Runtype, RuntypeApiError, RuntypeClient, RuntypeFlowBuilder, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, SandboxDeploymentsNamespace, ScheduleDriftError, ScheduleEnsureConflictError, SchedulesEndpoint, SecretsEndpoint, SimulationsEndpoint, SkillDriftError, SkillEnsureConflictError, SkillProposalsNamespace, SkillsNamespace, SurfaceDriftError, SurfaceEnsureConflictError, SurfacesEndpoint, SurfacesNamespace, ToolApprovalGrantsEndpoint, ToolDriftError, ToolEnsureConflictError, ToolsEndpoint, ToolsNamespace, TypedRecordsScope, UNIFIED_EVENTS_QUERY, UsersEndpoint, activateAgentPromotion, agentAliasErrorCode, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildExecutionEventsPath, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, combineAbortSignals, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeQuestionSetContentHash, computeRecordCollectionContentHash, computeScheduleContentHash, computeScheduleDefinitionHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createA2AHandler, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineQuestionSet, defineSchedule, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, ensureSchedule, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, fpoPlanHasDrift, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isBuiltinToolExecuteResponse, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeQuestionSetDefinition, normalizeRecordCollectionDefinition, normalizeScheduleContent, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, prepareAgentPromotion, processStream, promoteAgent, promotionIdempotencyKey, pullEval, pullFpo, pullSchedule, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, validateAgentPromotion, withDetachedReconnect, withUnifiedEvents };
|