@soat/sdk 0.13.3 → 0.13.4
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 +1 -1
- package/dist/index.d.cts +80 -24
- package/dist/index.d.mts +80 -24
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2358,7 +2358,7 @@ var Tools = class {
|
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Call a tool
|
|
2360
2360
|
*
|
|
2361
|
-
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `
|
|
2361
|
+
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
2362
2362
|
* For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
|
|
2363
2363
|
* `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
|
|
2364
2364
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1696,7 +1696,7 @@ type AiProviderResourceProperties = {
|
|
|
1696
1696
|
} | null;
|
|
1697
1697
|
};
|
|
1698
1698
|
/**
|
|
1699
|
-
* Defines a tool (HTTP endpoint, MCP server,
|
|
1699
|
+
* Defines a tool (HTTP endpoint, MCP server, SOAT action, or pipeline) that agents can invoke during a generation.
|
|
1700
1700
|
*/
|
|
1701
1701
|
type ToolResourceProperties = {
|
|
1702
1702
|
/**
|
|
@@ -1704,7 +1704,7 @@ type ToolResourceProperties = {
|
|
|
1704
1704
|
*/
|
|
1705
1705
|
name: string;
|
|
1706
1706
|
/**
|
|
1707
|
-
* Tool type hint (e.g. http, mcp, soat)
|
|
1707
|
+
* Tool type hint (e.g. http, mcp, soat, pipeline)
|
|
1708
1708
|
*/
|
|
1709
1709
|
type?: string | null;
|
|
1710
1710
|
/**
|
|
@@ -1761,6 +1761,12 @@ type ToolResourceProperties = {
|
|
|
1761
1761
|
preset_parameters?: {
|
|
1762
1762
|
[key: string]: unknown;
|
|
1763
1763
|
} | null;
|
|
1764
|
+
/**
|
|
1765
|
+
* Pipeline definition for `pipeline` tools: an ordered `steps` array, each invoking another tool by `tool_id` (optional `action`) with an `input` built from earlier results via JSON Logic over `{ input, steps }`, plus an optional `output` mapping. Step `input` keys and `var` paths use camelCase (the runtime form). Free-form, user-defined.
|
|
1766
|
+
*/
|
|
1767
|
+
pipeline?: {
|
|
1768
|
+
[key: string]: unknown;
|
|
1769
|
+
} | null;
|
|
1764
1770
|
};
|
|
1765
1771
|
/**
|
|
1766
1772
|
* Stores a text document in a project, optionally indexing it for knowledge retrieval.
|
|
@@ -1825,9 +1831,9 @@ type MemoryEntryResourceProperties = {
|
|
|
1825
1831
|
*/
|
|
1826
1832
|
content: string;
|
|
1827
1833
|
/**
|
|
1828
|
-
*
|
|
1834
|
+
* How this entry was created (defaults to manual)
|
|
1829
1835
|
*/
|
|
1830
|
-
|
|
1836
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
1831
1837
|
};
|
|
1832
1838
|
/**
|
|
1833
1839
|
* Registers an HTTPS endpoint to receive SOAT platform event notifications.
|
|
@@ -2141,7 +2147,7 @@ type Generation = {
|
|
|
2141
2147
|
*/
|
|
2142
2148
|
trace_id?: string;
|
|
2143
2149
|
/**
|
|
2144
|
-
* Public ID of the generation that triggered this one
|
|
2150
|
+
* Public ID of the generation that triggered this one. Set for debate perspective/synthesis child generations and sub-agent invocations alike. Null for top-level generations.
|
|
2145
2151
|
*
|
|
2146
2152
|
*/
|
|
2147
2153
|
initiator_generation_id?: string | null;
|
|
@@ -2246,7 +2252,7 @@ type DocumentKnowledgeResult = {
|
|
|
2246
2252
|
/**
|
|
2247
2253
|
* Semantic similarity score (0–1). Only present when `query` was provided.
|
|
2248
2254
|
*/
|
|
2249
|
-
|
|
2255
|
+
similarity_score?: number;
|
|
2250
2256
|
/**
|
|
2251
2257
|
* Creation timestamp
|
|
2252
2258
|
*/
|
|
@@ -2280,7 +2286,7 @@ type MemoryKnowledgeResult = {
|
|
|
2280
2286
|
/**
|
|
2281
2287
|
* Semantic similarity score (0–1). Only present when `query` was provided.
|
|
2282
2288
|
*/
|
|
2283
|
-
|
|
2289
|
+
similarity_score?: number;
|
|
2284
2290
|
/**
|
|
2285
2291
|
* Creation timestamp
|
|
2286
2292
|
*/
|
|
@@ -2306,7 +2312,7 @@ type MemoryEntry = {
|
|
|
2306
2312
|
id?: string;
|
|
2307
2313
|
memory_id?: string;
|
|
2308
2314
|
content?: string;
|
|
2309
|
-
|
|
2315
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
2310
2316
|
created_at?: Date;
|
|
2311
2317
|
updated_at?: Date;
|
|
2312
2318
|
};
|
|
@@ -2327,17 +2333,17 @@ type OrchestrationNode = {
|
|
|
2327
2333
|
/**
|
|
2328
2334
|
* Node execution type.
|
|
2329
2335
|
*/
|
|
2330
|
-
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'loop' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2336
|
+
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'loop' | 'poll' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2331
2337
|
/**
|
|
2332
2338
|
* For agent nodes — public ID of the agent to invoke.
|
|
2333
2339
|
*/
|
|
2334
2340
|
agent_id?: string;
|
|
2335
2341
|
/**
|
|
2336
|
-
* For tool nodes — public ID of the tool to call.
|
|
2342
|
+
* For tool and poll nodes — public ID of the tool to call.
|
|
2337
2343
|
*/
|
|
2338
2344
|
tool_id?: string;
|
|
2339
2345
|
/**
|
|
2340
|
-
* For tool nodes — specific operation/action on MCP/SOAT tools.
|
|
2346
|
+
* For tool and poll nodes — specific operation/action on MCP/SOAT tools.
|
|
2341
2347
|
*/
|
|
2342
2348
|
operation_id?: string;
|
|
2343
2349
|
/**
|
|
@@ -2346,6 +2352,13 @@ type OrchestrationNode = {
|
|
|
2346
2352
|
expression?: {
|
|
2347
2353
|
[key: string]: unknown;
|
|
2348
2354
|
};
|
|
2355
|
+
/**
|
|
2356
|
+
* For poll nodes — JSON Logic stop condition, evaluated each attempt against the run state augmented with `response` (the latest tool result) and `attempt` (1-based count); a truthy result stops polling.
|
|
2357
|
+
*
|
|
2358
|
+
*/
|
|
2359
|
+
exit_condition?: {
|
|
2360
|
+
[key: string]: unknown;
|
|
2361
|
+
};
|
|
2349
2362
|
/**
|
|
2350
2363
|
* For human nodes — prompt shown to the human reviewer.
|
|
2351
2364
|
*/
|
|
@@ -2385,16 +2398,23 @@ type OrchestrationNode = {
|
|
|
2385
2398
|
* For loop nodes — variable name injected into state for each item.
|
|
2386
2399
|
*/
|
|
2387
2400
|
item_variable?: string;
|
|
2388
|
-
/**
|
|
2389
|
-
* For loop nodes — sub-graph definition to run per item.
|
|
2390
|
-
*/
|
|
2391
|
-
sub_graph?: string;
|
|
2392
2401
|
/**
|
|
2393
2402
|
* For loop nodes — number of items to process in parallel.
|
|
2394
2403
|
*/
|
|
2395
2404
|
parallelism?: number;
|
|
2396
2405
|
/**
|
|
2397
|
-
* For
|
|
2406
|
+
* For poll nodes — wait between attempts. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
|
|
2407
|
+
*
|
|
2408
|
+
*/
|
|
2409
|
+
interval?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* For poll nodes — when max_iterations is reached without the exit condition becoming true, fail the run (true) instead of completing with condition_met=false (default false).
|
|
2412
|
+
*
|
|
2413
|
+
*/
|
|
2414
|
+
fail_on_timeout?: boolean;
|
|
2415
|
+
/**
|
|
2416
|
+
* For delay nodes — how long to wait. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
|
|
2417
|
+
*
|
|
2398
2418
|
*/
|
|
2399
2419
|
duration?: string;
|
|
2400
2420
|
/**
|
|
@@ -2406,11 +2426,13 @@ type OrchestrationNode = {
|
|
|
2406
2426
|
*/
|
|
2407
2427
|
webhook_url?: string;
|
|
2408
2428
|
/**
|
|
2409
|
-
*
|
|
2429
|
+
* Public ID of the orchestration this node runs — the child orchestration for sub_orchestration nodes, and the orchestration run once per item for loop nodes.
|
|
2430
|
+
*
|
|
2410
2431
|
*/
|
|
2411
2432
|
orchestration_id?: string;
|
|
2412
2433
|
/**
|
|
2413
|
-
* Maximum iterations before the node is aborted.
|
|
2434
|
+
* Maximum iterations before the node is aborted. For poll nodes this is the maximum number of attempts (default 10, ceiling 1000).
|
|
2435
|
+
*
|
|
2414
2436
|
*/
|
|
2415
2437
|
max_iterations?: number;
|
|
2416
2438
|
};
|
|
@@ -2913,7 +2935,7 @@ type Tool = {
|
|
|
2913
2935
|
/**
|
|
2914
2936
|
* Tool type
|
|
2915
2937
|
*/
|
|
2916
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
2938
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
2917
2939
|
/**
|
|
2918
2940
|
* What the tool does (sent to the model)
|
|
2919
2941
|
*/
|
|
@@ -2947,6 +2969,12 @@ type Tool = {
|
|
|
2947
2969
|
preset_parameters?: {
|
|
2948
2970
|
[key: string]: unknown;
|
|
2949
2971
|
} | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* Pipeline definition for `pipeline` tools: an ordered `steps` array, each step invoking another tool by `tool_id` (optional `action`) and building its `input` from earlier results via JSON Logic evaluated over `{ input, steps }`. An optional `output` maps the final result.
|
|
2974
|
+
*/
|
|
2975
|
+
pipeline?: {
|
|
2976
|
+
[key: string]: unknown;
|
|
2977
|
+
} | null;
|
|
2950
2978
|
created_at?: Date;
|
|
2951
2979
|
updated_at?: Date;
|
|
2952
2980
|
};
|
|
@@ -2962,7 +2990,7 @@ type CreateToolRequest = {
|
|
|
2962
2990
|
/**
|
|
2963
2991
|
* Tool type (default http)
|
|
2964
2992
|
*/
|
|
2965
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
2993
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
2966
2994
|
/**
|
|
2967
2995
|
* What the tool does
|
|
2968
2996
|
*/
|
|
@@ -2996,10 +3024,16 @@ type CreateToolRequest = {
|
|
|
2996
3024
|
preset_parameters?: {
|
|
2997
3025
|
[key: string]: unknown;
|
|
2998
3026
|
};
|
|
3027
|
+
/**
|
|
3028
|
+
* Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.
|
|
3029
|
+
*/
|
|
3030
|
+
pipeline?: {
|
|
3031
|
+
[key: string]: unknown;
|
|
3032
|
+
};
|
|
2999
3033
|
};
|
|
3000
3034
|
type UpdateToolRequest = {
|
|
3001
3035
|
name?: string;
|
|
3002
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
3036
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
3003
3037
|
description?: string | null;
|
|
3004
3038
|
parameters?: {
|
|
3005
3039
|
[key: string]: unknown;
|
|
@@ -3021,6 +3055,12 @@ type UpdateToolRequest = {
|
|
|
3021
3055
|
preset_parameters?: {
|
|
3022
3056
|
[key: string]: unknown;
|
|
3023
3057
|
} | null;
|
|
3058
|
+
/**
|
|
3059
|
+
* Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.
|
|
3060
|
+
*/
|
|
3061
|
+
pipeline?: {
|
|
3062
|
+
[key: string]: unknown;
|
|
3063
|
+
} | null;
|
|
3024
3064
|
};
|
|
3025
3065
|
type CallToolRequest = {
|
|
3026
3066
|
/**
|
|
@@ -3106,6 +3146,11 @@ type TraceTreeNode = {
|
|
|
3106
3146
|
* Child traces triggered by sub-agent calls from this trace
|
|
3107
3147
|
*/
|
|
3108
3148
|
children?: Array<TraceTreeNode>;
|
|
3149
|
+
/**
|
|
3150
|
+
* Generations that belong to this trace node. Only present when `include=generations` is requested. Includes top-level generations and debate child generations (perspective turns and synthesis steps) linked via `initiator_generation_id`.
|
|
3151
|
+
*
|
|
3152
|
+
*/
|
|
3153
|
+
generations?: Array<Generation>;
|
|
3109
3154
|
};
|
|
3110
3155
|
type UserRecord = {
|
|
3111
3156
|
/**
|
|
@@ -6007,6 +6052,11 @@ type ListGenerationsData = {
|
|
|
6007
6052
|
* Filter by trace public ID
|
|
6008
6053
|
*/
|
|
6009
6054
|
trace_id?: string;
|
|
6055
|
+
/**
|
|
6056
|
+
* Filter by the public ID of the parent generation. Returns all generations triggered by that generation — debate perspective turns, synthesis steps, and sub-agent invocations. Null-initiated (top-level) generations are not returned.
|
|
6057
|
+
*
|
|
6058
|
+
*/
|
|
6059
|
+
initiator_generation_id?: string;
|
|
6010
6060
|
/**
|
|
6011
6061
|
* Filter by lifecycle status
|
|
6012
6062
|
*/
|
|
@@ -6381,7 +6431,7 @@ type CreateMemoryEntryData = {
|
|
|
6381
6431
|
/**
|
|
6382
6432
|
* How this entry was created
|
|
6383
6433
|
*/
|
|
6384
|
-
|
|
6434
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
6385
6435
|
/**
|
|
6386
6436
|
* Cosine similarity score at or above which the incoming content is considered a duplicate and skipped (default 0.95)
|
|
6387
6437
|
*/
|
|
@@ -8088,7 +8138,13 @@ type GetTraceTreeData = {
|
|
|
8088
8138
|
*/
|
|
8089
8139
|
trace_id: string;
|
|
8090
8140
|
};
|
|
8091
|
-
query?:
|
|
8141
|
+
query?: {
|
|
8142
|
+
/**
|
|
8143
|
+
* Comma-separated list of related resources to embed on each node. Supported value: `generations` — attaches all generations that belong to each trace node (including debate perspective/synthesis children linked via `initiator_generation_id`).
|
|
8144
|
+
*
|
|
8145
|
+
*/
|
|
8146
|
+
include?: string;
|
|
8147
|
+
};
|
|
8092
8148
|
url: '/api/v1/traces/{trace_id}/tree';
|
|
8093
8149
|
};
|
|
8094
8150
|
type GetTraceTreeErrors = {
|
|
@@ -9453,7 +9509,7 @@ declare class Tools {
|
|
|
9453
9509
|
/**
|
|
9454
9510
|
* Call a tool
|
|
9455
9511
|
*
|
|
9456
|
-
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `
|
|
9512
|
+
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
9457
9513
|
* For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
|
|
9458
9514
|
* `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
|
|
9459
9515
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1696,7 +1696,7 @@ type AiProviderResourceProperties = {
|
|
|
1696
1696
|
} | null;
|
|
1697
1697
|
};
|
|
1698
1698
|
/**
|
|
1699
|
-
* Defines a tool (HTTP endpoint, MCP server,
|
|
1699
|
+
* Defines a tool (HTTP endpoint, MCP server, SOAT action, or pipeline) that agents can invoke during a generation.
|
|
1700
1700
|
*/
|
|
1701
1701
|
type ToolResourceProperties = {
|
|
1702
1702
|
/**
|
|
@@ -1704,7 +1704,7 @@ type ToolResourceProperties = {
|
|
|
1704
1704
|
*/
|
|
1705
1705
|
name: string;
|
|
1706
1706
|
/**
|
|
1707
|
-
* Tool type hint (e.g. http, mcp, soat)
|
|
1707
|
+
* Tool type hint (e.g. http, mcp, soat, pipeline)
|
|
1708
1708
|
*/
|
|
1709
1709
|
type?: string | null;
|
|
1710
1710
|
/**
|
|
@@ -1761,6 +1761,12 @@ type ToolResourceProperties = {
|
|
|
1761
1761
|
preset_parameters?: {
|
|
1762
1762
|
[key: string]: unknown;
|
|
1763
1763
|
} | null;
|
|
1764
|
+
/**
|
|
1765
|
+
* Pipeline definition for `pipeline` tools: an ordered `steps` array, each invoking another tool by `tool_id` (optional `action`) with an `input` built from earlier results via JSON Logic over `{ input, steps }`, plus an optional `output` mapping. Step `input` keys and `var` paths use camelCase (the runtime form). Free-form, user-defined.
|
|
1766
|
+
*/
|
|
1767
|
+
pipeline?: {
|
|
1768
|
+
[key: string]: unknown;
|
|
1769
|
+
} | null;
|
|
1764
1770
|
};
|
|
1765
1771
|
/**
|
|
1766
1772
|
* Stores a text document in a project, optionally indexing it for knowledge retrieval.
|
|
@@ -1825,9 +1831,9 @@ type MemoryEntryResourceProperties = {
|
|
|
1825
1831
|
*/
|
|
1826
1832
|
content: string;
|
|
1827
1833
|
/**
|
|
1828
|
-
*
|
|
1834
|
+
* How this entry was created (defaults to manual)
|
|
1829
1835
|
*/
|
|
1830
|
-
|
|
1836
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
1831
1837
|
};
|
|
1832
1838
|
/**
|
|
1833
1839
|
* Registers an HTTPS endpoint to receive SOAT platform event notifications.
|
|
@@ -2141,7 +2147,7 @@ type Generation = {
|
|
|
2141
2147
|
*/
|
|
2142
2148
|
trace_id?: string;
|
|
2143
2149
|
/**
|
|
2144
|
-
* Public ID of the generation that triggered this one
|
|
2150
|
+
* Public ID of the generation that triggered this one. Set for debate perspective/synthesis child generations and sub-agent invocations alike. Null for top-level generations.
|
|
2145
2151
|
*
|
|
2146
2152
|
*/
|
|
2147
2153
|
initiator_generation_id?: string | null;
|
|
@@ -2246,7 +2252,7 @@ type DocumentKnowledgeResult = {
|
|
|
2246
2252
|
/**
|
|
2247
2253
|
* Semantic similarity score (0–1). Only present when `query` was provided.
|
|
2248
2254
|
*/
|
|
2249
|
-
|
|
2255
|
+
similarity_score?: number;
|
|
2250
2256
|
/**
|
|
2251
2257
|
* Creation timestamp
|
|
2252
2258
|
*/
|
|
@@ -2280,7 +2286,7 @@ type MemoryKnowledgeResult = {
|
|
|
2280
2286
|
/**
|
|
2281
2287
|
* Semantic similarity score (0–1). Only present when `query` was provided.
|
|
2282
2288
|
*/
|
|
2283
|
-
|
|
2289
|
+
similarity_score?: number;
|
|
2284
2290
|
/**
|
|
2285
2291
|
* Creation timestamp
|
|
2286
2292
|
*/
|
|
@@ -2306,7 +2312,7 @@ type MemoryEntry = {
|
|
|
2306
2312
|
id?: string;
|
|
2307
2313
|
memory_id?: string;
|
|
2308
2314
|
content?: string;
|
|
2309
|
-
|
|
2315
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
2310
2316
|
created_at?: Date;
|
|
2311
2317
|
updated_at?: Date;
|
|
2312
2318
|
};
|
|
@@ -2327,17 +2333,17 @@ type OrchestrationNode = {
|
|
|
2327
2333
|
/**
|
|
2328
2334
|
* Node execution type.
|
|
2329
2335
|
*/
|
|
2330
|
-
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'loop' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2336
|
+
type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'loop' | 'poll' | 'delay' | 'webhook' | 'sub_orchestration';
|
|
2331
2337
|
/**
|
|
2332
2338
|
* For agent nodes — public ID of the agent to invoke.
|
|
2333
2339
|
*/
|
|
2334
2340
|
agent_id?: string;
|
|
2335
2341
|
/**
|
|
2336
|
-
* For tool nodes — public ID of the tool to call.
|
|
2342
|
+
* For tool and poll nodes — public ID of the tool to call.
|
|
2337
2343
|
*/
|
|
2338
2344
|
tool_id?: string;
|
|
2339
2345
|
/**
|
|
2340
|
-
* For tool nodes — specific operation/action on MCP/SOAT tools.
|
|
2346
|
+
* For tool and poll nodes — specific operation/action on MCP/SOAT tools.
|
|
2341
2347
|
*/
|
|
2342
2348
|
operation_id?: string;
|
|
2343
2349
|
/**
|
|
@@ -2346,6 +2352,13 @@ type OrchestrationNode = {
|
|
|
2346
2352
|
expression?: {
|
|
2347
2353
|
[key: string]: unknown;
|
|
2348
2354
|
};
|
|
2355
|
+
/**
|
|
2356
|
+
* For poll nodes — JSON Logic stop condition, evaluated each attempt against the run state augmented with `response` (the latest tool result) and `attempt` (1-based count); a truthy result stops polling.
|
|
2357
|
+
*
|
|
2358
|
+
*/
|
|
2359
|
+
exit_condition?: {
|
|
2360
|
+
[key: string]: unknown;
|
|
2361
|
+
};
|
|
2349
2362
|
/**
|
|
2350
2363
|
* For human nodes — prompt shown to the human reviewer.
|
|
2351
2364
|
*/
|
|
@@ -2385,16 +2398,23 @@ type OrchestrationNode = {
|
|
|
2385
2398
|
* For loop nodes — variable name injected into state for each item.
|
|
2386
2399
|
*/
|
|
2387
2400
|
item_variable?: string;
|
|
2388
|
-
/**
|
|
2389
|
-
* For loop nodes — sub-graph definition to run per item.
|
|
2390
|
-
*/
|
|
2391
|
-
sub_graph?: string;
|
|
2392
2401
|
/**
|
|
2393
2402
|
* For loop nodes — number of items to process in parallel.
|
|
2394
2403
|
*/
|
|
2395
2404
|
parallelism?: number;
|
|
2396
2405
|
/**
|
|
2397
|
-
* For
|
|
2406
|
+
* For poll nodes — wait between attempts. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
|
|
2407
|
+
*
|
|
2408
|
+
*/
|
|
2409
|
+
interval?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* For poll nodes — when max_iterations is reached without the exit condition becoming true, fail the run (true) instead of completing with condition_met=false (default false).
|
|
2412
|
+
*
|
|
2413
|
+
*/
|
|
2414
|
+
fail_on_timeout?: boolean;
|
|
2415
|
+
/**
|
|
2416
|
+
* For delay nodes — how long to wait. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
|
|
2417
|
+
*
|
|
2398
2418
|
*/
|
|
2399
2419
|
duration?: string;
|
|
2400
2420
|
/**
|
|
@@ -2406,11 +2426,13 @@ type OrchestrationNode = {
|
|
|
2406
2426
|
*/
|
|
2407
2427
|
webhook_url?: string;
|
|
2408
2428
|
/**
|
|
2409
|
-
*
|
|
2429
|
+
* Public ID of the orchestration this node runs — the child orchestration for sub_orchestration nodes, and the orchestration run once per item for loop nodes.
|
|
2430
|
+
*
|
|
2410
2431
|
*/
|
|
2411
2432
|
orchestration_id?: string;
|
|
2412
2433
|
/**
|
|
2413
|
-
* Maximum iterations before the node is aborted.
|
|
2434
|
+
* Maximum iterations before the node is aborted. For poll nodes this is the maximum number of attempts (default 10, ceiling 1000).
|
|
2435
|
+
*
|
|
2414
2436
|
*/
|
|
2415
2437
|
max_iterations?: number;
|
|
2416
2438
|
};
|
|
@@ -2913,7 +2935,7 @@ type Tool = {
|
|
|
2913
2935
|
/**
|
|
2914
2936
|
* Tool type
|
|
2915
2937
|
*/
|
|
2916
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
2938
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
2917
2939
|
/**
|
|
2918
2940
|
* What the tool does (sent to the model)
|
|
2919
2941
|
*/
|
|
@@ -2947,6 +2969,12 @@ type Tool = {
|
|
|
2947
2969
|
preset_parameters?: {
|
|
2948
2970
|
[key: string]: unknown;
|
|
2949
2971
|
} | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* Pipeline definition for `pipeline` tools: an ordered `steps` array, each step invoking another tool by `tool_id` (optional `action`) and building its `input` from earlier results via JSON Logic evaluated over `{ input, steps }`. An optional `output` maps the final result.
|
|
2974
|
+
*/
|
|
2975
|
+
pipeline?: {
|
|
2976
|
+
[key: string]: unknown;
|
|
2977
|
+
} | null;
|
|
2950
2978
|
created_at?: Date;
|
|
2951
2979
|
updated_at?: Date;
|
|
2952
2980
|
};
|
|
@@ -2962,7 +2990,7 @@ type CreateToolRequest = {
|
|
|
2962
2990
|
/**
|
|
2963
2991
|
* Tool type (default http)
|
|
2964
2992
|
*/
|
|
2965
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
2993
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
2966
2994
|
/**
|
|
2967
2995
|
* What the tool does
|
|
2968
2996
|
*/
|
|
@@ -2996,10 +3024,16 @@ type CreateToolRequest = {
|
|
|
2996
3024
|
preset_parameters?: {
|
|
2997
3025
|
[key: string]: unknown;
|
|
2998
3026
|
};
|
|
3027
|
+
/**
|
|
3028
|
+
* Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.
|
|
3029
|
+
*/
|
|
3030
|
+
pipeline?: {
|
|
3031
|
+
[key: string]: unknown;
|
|
3032
|
+
};
|
|
2999
3033
|
};
|
|
3000
3034
|
type UpdateToolRequest = {
|
|
3001
3035
|
name?: string;
|
|
3002
|
-
type?: 'http' | 'client' | 'mcp' | 'soat';
|
|
3036
|
+
type?: 'http' | 'client' | 'mcp' | 'soat' | 'pipeline';
|
|
3003
3037
|
description?: string | null;
|
|
3004
3038
|
parameters?: {
|
|
3005
3039
|
[key: string]: unknown;
|
|
@@ -3021,6 +3055,12 @@ type UpdateToolRequest = {
|
|
|
3021
3055
|
preset_parameters?: {
|
|
3022
3056
|
[key: string]: unknown;
|
|
3023
3057
|
} | null;
|
|
3058
|
+
/**
|
|
3059
|
+
* Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.
|
|
3060
|
+
*/
|
|
3061
|
+
pipeline?: {
|
|
3062
|
+
[key: string]: unknown;
|
|
3063
|
+
} | null;
|
|
3024
3064
|
};
|
|
3025
3065
|
type CallToolRequest = {
|
|
3026
3066
|
/**
|
|
@@ -3106,6 +3146,11 @@ type TraceTreeNode = {
|
|
|
3106
3146
|
* Child traces triggered by sub-agent calls from this trace
|
|
3107
3147
|
*/
|
|
3108
3148
|
children?: Array<TraceTreeNode>;
|
|
3149
|
+
/**
|
|
3150
|
+
* Generations that belong to this trace node. Only present when `include=generations` is requested. Includes top-level generations and debate child generations (perspective turns and synthesis steps) linked via `initiator_generation_id`.
|
|
3151
|
+
*
|
|
3152
|
+
*/
|
|
3153
|
+
generations?: Array<Generation>;
|
|
3109
3154
|
};
|
|
3110
3155
|
type UserRecord = {
|
|
3111
3156
|
/**
|
|
@@ -6007,6 +6052,11 @@ type ListGenerationsData = {
|
|
|
6007
6052
|
* Filter by trace public ID
|
|
6008
6053
|
*/
|
|
6009
6054
|
trace_id?: string;
|
|
6055
|
+
/**
|
|
6056
|
+
* Filter by the public ID of the parent generation. Returns all generations triggered by that generation — debate perspective turns, synthesis steps, and sub-agent invocations. Null-initiated (top-level) generations are not returned.
|
|
6057
|
+
*
|
|
6058
|
+
*/
|
|
6059
|
+
initiator_generation_id?: string;
|
|
6010
6060
|
/**
|
|
6011
6061
|
* Filter by lifecycle status
|
|
6012
6062
|
*/
|
|
@@ -6381,7 +6431,7 @@ type CreateMemoryEntryData = {
|
|
|
6381
6431
|
/**
|
|
6382
6432
|
* How this entry was created
|
|
6383
6433
|
*/
|
|
6384
|
-
|
|
6434
|
+
source_type?: 'manual' | 'agent' | 'extraction';
|
|
6385
6435
|
/**
|
|
6386
6436
|
* Cosine similarity score at or above which the incoming content is considered a duplicate and skipped (default 0.95)
|
|
6387
6437
|
*/
|
|
@@ -8088,7 +8138,13 @@ type GetTraceTreeData = {
|
|
|
8088
8138
|
*/
|
|
8089
8139
|
trace_id: string;
|
|
8090
8140
|
};
|
|
8091
|
-
query?:
|
|
8141
|
+
query?: {
|
|
8142
|
+
/**
|
|
8143
|
+
* Comma-separated list of related resources to embed on each node. Supported value: `generations` — attaches all generations that belong to each trace node (including debate perspective/synthesis children linked via `initiator_generation_id`).
|
|
8144
|
+
*
|
|
8145
|
+
*/
|
|
8146
|
+
include?: string;
|
|
8147
|
+
};
|
|
8092
8148
|
url: '/api/v1/traces/{trace_id}/tree';
|
|
8093
8149
|
};
|
|
8094
8150
|
type GetTraceTreeErrors = {
|
|
@@ -9453,7 +9509,7 @@ declare class Tools {
|
|
|
9453
9509
|
/**
|
|
9454
9510
|
* Call a tool
|
|
9455
9511
|
*
|
|
9456
|
-
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `
|
|
9512
|
+
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
9457
9513
|
* For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
|
|
9458
9514
|
* `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
|
|
9459
9515
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -2357,7 +2357,7 @@ var Tools = class {
|
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Call a tool
|
|
2359
2359
|
*
|
|
2360
|
-
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `
|
|
2360
|
+
* Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
2361
2361
|
* For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
|
|
2362
2362
|
* `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
|
|
2363
2363
|
*
|