@uipath/maestro-builder-sdk 6.88.0 → 6.88.2
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/api-index.md +68 -67
- package/dist/api-members.md +256 -253
- package/dist/bpmn/bpmn-sdk.d.ts +40 -15
- package/dist/bpmn/bpmn-sdk.js +29 -8
- package/dist/bpmn/check-cli.js +13 -6
- package/dist/bpmn/check.js +24 -9
- package/dist/bpmn/compile-cli.js +13 -2
- package/dist/bpmn/decompile.js +73 -2
- package/dist/bpmn/graph.js +2 -2
- package/dist/bpmn/serialize.js +3 -1
- package/dist/bpmn-api.md +7 -6
- package/dist/check.js +1 -1
- package/dist/cli-result.d.ts +4 -2
- package/dist/cli-result.js +4 -3
- package/dist/cli-run.js +17 -2
- package/dist/core/actions.d.ts +16 -2
- package/dist/core/event-subscription.d.ts +1 -1
- package/dist/core/event-subscription.js +1 -1
- package/dist/core/refusals.d.ts +31 -29
- package/dist/core/refusals.js +31 -29
- package/dist/decompile.js +9 -4
- package/dist/flow-node-type.d.ts +14 -6
- package/dist/nodes/agent/flow/check.d.ts +9 -1
- package/dist/nodes/agent/flow/check.js +132 -118
- package/dist/nodes/agent/flow/inline-agent-lift.d.ts +13 -0
- package/dist/nodes/agent/flow/inline-agent-lift.js +168 -50
- package/dist/nodes/agent/flow/inline-agent.d.ts +21 -1
- package/dist/nodes/agent/flow/inline-agent.js +97 -68
- package/dist/nodes/agent/flow/node-type.js +39 -7
- package/dist/nodes/agent/flow/resources.d.ts +15 -2
- package/dist/nodes/agent/flow/resources.js +36 -5
- package/dist/nodes/agent/flow/spec.d.ts +25 -4
- package/dist/serialize.js +5 -5
- package/package.json +2 -2
package/dist/core/actions.d.ts
CHANGED
|
@@ -430,7 +430,7 @@ export interface AgentResourcePlacement {
|
|
|
430
430
|
* The resource node's id. Defaults to `<agent step>Context`, `<agent step>Tool`
|
|
431
431
|
* or `<agent step>Escalation`, numbered from 2 for a second resource of the
|
|
432
432
|
* same kind (`<agent step>Context2`). Compile writes it as given and refuses an
|
|
433
|
-
* id another node in the flow already has (`check`: `
|
|
433
|
+
* id another node in the flow already has (`check`: `FLOW_AGENT_RESOURCE_NODE_ID`).
|
|
434
434
|
*/
|
|
435
435
|
nodeId?: string;
|
|
436
436
|
/**
|
|
@@ -506,6 +506,20 @@ export interface ClientSideToolRef {
|
|
|
506
506
|
inputs?: Record<string, InlineAgentFieldType>;
|
|
507
507
|
/** What the client returns, by name. */
|
|
508
508
|
returns?: Record<string, InlineAgentFieldType>;
|
|
509
|
+
/**
|
|
510
|
+
* The arguments as a whole JSON schema, written as given, for what `inputs`
|
|
511
|
+
* cannot say: a property's `description` (which the model reads), `items`,
|
|
512
|
+
* `required`. Decompile writes it for a canvas tool whose schema is more than
|
|
513
|
+
* typed fields. Give `inputs` or this, not both
|
|
514
|
+
* (FLOW_AGENT_TOOL_CLIENTSIDE_SCHEMA_TWICE).
|
|
515
|
+
*
|
|
516
|
+
* ```ts
|
|
517
|
+
* inputSchema: { type: 'object', properties: { grid: { type: 'array', items: { type: 'string' }, description: 'Up to 32 rows' } }, required: ['grid'] }
|
|
518
|
+
* ```
|
|
519
|
+
*/
|
|
520
|
+
inputSchema?: Record<string, unknown>;
|
|
521
|
+
/** What the client returns, as a whole JSON schema; the `returns` counterpart of {@link ClientSideToolRef.inputSchema}. */
|
|
522
|
+
outputSchema?: Record<string, unknown>;
|
|
509
523
|
}
|
|
510
524
|
/**
|
|
511
525
|
* The built-in HTTP-request tool (`uipath.agent.resource.tool.builtin.httprequest`):
|
|
@@ -611,7 +625,7 @@ export interface ConnectorToolRef {
|
|
|
611
625
|
* `connector()`'s `connection` option takes (e.g. `'genai'`), resolved to
|
|
612
626
|
* the tenant connection id at compile. Required: a connector tool with no
|
|
613
627
|
* connection has nothing to call Integration Service with, and `check`
|
|
614
|
-
* reports `
|
|
628
|
+
* reports `FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION`.
|
|
615
629
|
*/
|
|
616
630
|
connection?: string;
|
|
617
631
|
/**
|
|
@@ -46,7 +46,7 @@ export declare function refuseUnverifiedByoa(env: EventEmitEnv, where: string, s
|
|
|
46
46
|
* Refuse a connector-bound node (connector step, event trigger, `.entryPoint`
|
|
47
47
|
* onEvent, `waitForEvent`) that names no `connection` or no `folder` label.
|
|
48
48
|
* (An inline agent's connector tool is #875's: `check` refuses it as
|
|
49
|
-
*
|
|
49
|
+
* FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION, and serialize leaves it unbound.)
|
|
50
50
|
* `resolveBinding` returns `undefined` for an absent label, which used to reach
|
|
51
51
|
* the node as `detail.connectionId: null` with no binding — valid to compile,
|
|
52
52
|
* refused by `flow validate` (flow-builder-sdk#890): BINDING_MISSING.
|
|
@@ -33,7 +33,7 @@ export function refuseUnverifiedByoa(env, where, sub) {
|
|
|
33
33
|
* Refuse a connector-bound node (connector step, event trigger, `.entryPoint`
|
|
34
34
|
* onEvent, `waitForEvent`) that names no `connection` or no `folder` label.
|
|
35
35
|
* (An inline agent's connector tool is #875's: `check` refuses it as
|
|
36
|
-
*
|
|
36
|
+
* FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION, and serialize leaves it unbound.)
|
|
37
37
|
* `resolveBinding` returns `undefined` for an absent label, which used to reach
|
|
38
38
|
* the node as `detail.connectionId: null` with no binding — valid to compile,
|
|
39
39
|
* refused by `flow validate` (flow-builder-sdk#890): BINDING_MISSING.
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const REFUSALS: {
|
|
|
23
23
|
readonly AGENTIC_READ_UNKNOWN_FIELD: "lint";
|
|
24
24
|
readonly AGENTIC_READ_WITHOUT_RETURNS: "lint";
|
|
25
25
|
readonly AGENTIC_RESERVED_INPUT: "lowering";
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
26
|
+
readonly FLOW_AGENT_CONTEXT_NO_FOLDER_PATH: "lint";
|
|
27
|
+
readonly FLOW_AGENT_CONTEXT_NO_ID: "lowering";
|
|
28
|
+
readonly FLOW_AGENT_CONTEXT_QUERY_NOT_EXPRESSION: "lint";
|
|
29
29
|
readonly AGENT_EMPTY_INPUT_FLOOR: "lint";
|
|
30
30
|
readonly AGENT_EMPTY_RETURNS: "lint";
|
|
31
31
|
readonly AGENT_KEY_NOT_GUID: "lint";
|
|
@@ -147,6 +147,7 @@ export declare const REFUSALS: {
|
|
|
147
147
|
readonly BUSINESS_RULE_EMPTY_DATA: "lint";
|
|
148
148
|
readonly BUSINESS_RULE_OUTPUT_NAME: "lint";
|
|
149
149
|
readonly BUSINESS_RULE_OUTPUT_SOURCE: "lint";
|
|
150
|
+
readonly CALL_ACTIVITY_NO_PAYLOAD: "lint";
|
|
150
151
|
readonly CALL_NO_NUMBER: "lint";
|
|
151
152
|
readonly CALL_NUMBER_NOT_E164: "lint";
|
|
152
153
|
readonly CARRIED_DEFINITION_CONFLICT: "lowering";
|
|
@@ -453,17 +454,17 @@ export declare const REFUSALS: {
|
|
|
453
454
|
readonly IMPLICIT_SPLIT: "lint";
|
|
454
455
|
readonly INLINE_AGENT_COMPOSITE_INPUT: "lowering";
|
|
455
456
|
readonly INLINE_AGENT_EMPTY_RETURNS: "lint";
|
|
456
|
-
readonly
|
|
457
|
-
readonly
|
|
458
|
-
readonly
|
|
459
|
-
readonly
|
|
460
|
-
readonly
|
|
461
|
-
readonly
|
|
462
|
-
readonly
|
|
463
|
-
readonly
|
|
464
|
-
readonly
|
|
465
|
-
readonly
|
|
466
|
-
readonly
|
|
457
|
+
readonly FLOW_AGENT_ESCALATION_APP_KEY_NOT_GUID: "lint";
|
|
458
|
+
readonly FLOW_AGENT_ESCALATION_APP_WITH_FIELDS: "lowering";
|
|
459
|
+
readonly FLOW_AGENT_ESCALATION_FIELD_OPTIONS: "lint";
|
|
460
|
+
readonly FLOW_AGENT_ESCALATION_FIELD_OPTIONS_IGNORED: "lint";
|
|
461
|
+
readonly FLOW_AGENT_ESCALATION_FIELD_SETTING_INVALID: "lint";
|
|
462
|
+
readonly FLOW_AGENT_ESCALATION_FIELD_TYPE_UNKNOWN: "lint";
|
|
463
|
+
readonly FLOW_AGENT_ESCALATION_NO_APP: "lint";
|
|
464
|
+
readonly FLOW_AGENT_ESCALATION_NO_FIELDS: "lint";
|
|
465
|
+
readonly FLOW_AGENT_ESCALATION_NO_NAME: "lint";
|
|
466
|
+
readonly FLOW_AGENT_ESCALATION_QUICKFORM_WITH_APP: "lowering";
|
|
467
|
+
readonly FLOW_AGENT_ESCALATION_VARIANT: "lowering";
|
|
467
468
|
readonly INLINE_AGENT_INPUT_NAME_AMBIGUOUS: "lint";
|
|
468
469
|
readonly INLINE_AGENT_MEMORY_ID_NOT_GUID: "lint";
|
|
469
470
|
readonly INLINE_AGENT_MEMORY_INCOMPLETE: "lint";
|
|
@@ -473,23 +474,24 @@ export declare const REFUSALS: {
|
|
|
473
474
|
readonly INLINE_AGENT_PROMPT_JSON_TEXT: "lint";
|
|
474
475
|
readonly INLINE_AGENT_READ_NOT_OUTPUT: "lint";
|
|
475
476
|
readonly INLINE_AGENT_READ_UNKNOWN_FIELD: "lint";
|
|
476
|
-
readonly
|
|
477
|
-
readonly
|
|
478
|
-
readonly
|
|
477
|
+
readonly FLOW_AGENT_RESOURCE_NODE_ID: "lowering";
|
|
478
|
+
readonly FLOW_AGENT_RESOURCE_SOURCE_DUP: "lowering";
|
|
479
|
+
readonly FLOW_AGENT_RESOURCE_SOURCE_NOT_GUID: "lint";
|
|
479
480
|
readonly INLINE_AGENT_SCAFFOLD_MODEL: "lint";
|
|
480
481
|
readonly INLINE_AGENT_SOURCE_NOT_GUID: "lint";
|
|
481
|
-
readonly
|
|
482
|
-
readonly
|
|
483
|
-
readonly
|
|
484
|
-
readonly
|
|
485
|
-
readonly
|
|
486
|
-
readonly
|
|
487
|
-
readonly
|
|
488
|
-
readonly
|
|
489
|
-
readonly
|
|
490
|
-
readonly
|
|
491
|
-
readonly
|
|
492
|
-
readonly
|
|
482
|
+
readonly FLOW_AGENT_TOOL_A2A_INCOMPLETE: "lint";
|
|
483
|
+
readonly FLOW_AGENT_TOOL_CLIENTSIDE_NO_NAME: "lint";
|
|
484
|
+
readonly FLOW_AGENT_TOOL_CLIENTSIDE_SCHEMA_TWICE: "lowering";
|
|
485
|
+
readonly FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION: "lint";
|
|
486
|
+
readonly FLOW_AGENT_TOOL_HTTP_METHOD: "lint";
|
|
487
|
+
readonly FLOW_AGENT_TOOL_IXP_NO_NAME: "lint";
|
|
488
|
+
readonly FLOW_AGENT_TOOL_IXP_PROJECT_NOT_GUID: "lint";
|
|
489
|
+
readonly FLOW_AGENT_TOOL_KEY_NOT_GUID: "lint";
|
|
490
|
+
readonly FLOW_AGENT_TOOL_MCP_INCOMPLETE: "lint";
|
|
491
|
+
readonly FLOW_AGENT_TOOL_NO_OPERATION: "lint";
|
|
492
|
+
readonly FLOW_AGENT_TOOL_NO_RESOURCE_ID: "lint";
|
|
493
|
+
readonly FLOW_AGENT_TOOL_UNKNOWN_BUILTIN: "lowering";
|
|
494
|
+
readonly FLOW_AGENT_TOOL_UNKNOWN_KIND: "lowering";
|
|
493
495
|
readonly INLINE_AGENT_UNDECLARED_PLACEHOLDER: "lint";
|
|
494
496
|
readonly INLINE_AGENT_UNREFERENCED_INPUT: "lint";
|
|
495
497
|
readonly INPUT_READ_WITHOUT_TRIGGER: "lint";
|
package/dist/core/refusals.js
CHANGED
|
@@ -72,9 +72,9 @@ export const REFUSALS = {
|
|
|
72
72
|
AGENTIC_READ_UNKNOWN_FIELD: 'lint',
|
|
73
73
|
AGENTIC_READ_WITHOUT_RETURNS: 'lint',
|
|
74
74
|
AGENTIC_RESERVED_INPUT: 'lowering',
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
FLOW_AGENT_CONTEXT_NO_FOLDER_PATH: 'lint',
|
|
76
|
+
FLOW_AGENT_CONTEXT_NO_ID: 'lowering',
|
|
77
|
+
FLOW_AGENT_CONTEXT_QUERY_NOT_EXPRESSION: 'lint',
|
|
78
78
|
AGENT_EMPTY_INPUT_FLOOR: 'lint',
|
|
79
79
|
AGENT_EMPTY_RETURNS: 'lint',
|
|
80
80
|
AGENT_KEY_NOT_GUID: 'lint',
|
|
@@ -196,6 +196,7 @@ export const REFUSALS = {
|
|
|
196
196
|
BUSINESS_RULE_EMPTY_DATA: 'lint',
|
|
197
197
|
BUSINESS_RULE_OUTPUT_NAME: 'lint',
|
|
198
198
|
BUSINESS_RULE_OUTPUT_SOURCE: 'lint',
|
|
199
|
+
CALL_ACTIVITY_NO_PAYLOAD: 'lint',
|
|
199
200
|
CALL_NO_NUMBER: 'lint',
|
|
200
201
|
CALL_NUMBER_NOT_E164: 'lint',
|
|
201
202
|
CARRIED_DEFINITION_CONFLICT: 'lowering',
|
|
@@ -526,17 +527,17 @@ export const REFUSALS = {
|
|
|
526
527
|
IMPLICIT_SPLIT: 'lint',
|
|
527
528
|
INLINE_AGENT_COMPOSITE_INPUT: 'lowering',
|
|
528
529
|
INLINE_AGENT_EMPTY_RETURNS: 'lint',
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
530
|
+
FLOW_AGENT_ESCALATION_APP_KEY_NOT_GUID: 'lint',
|
|
531
|
+
FLOW_AGENT_ESCALATION_APP_WITH_FIELDS: 'lowering',
|
|
532
|
+
FLOW_AGENT_ESCALATION_FIELD_OPTIONS: 'lint',
|
|
533
|
+
FLOW_AGENT_ESCALATION_FIELD_OPTIONS_IGNORED: 'lint',
|
|
534
|
+
FLOW_AGENT_ESCALATION_FIELD_SETTING_INVALID: 'lint',
|
|
535
|
+
FLOW_AGENT_ESCALATION_FIELD_TYPE_UNKNOWN: 'lint',
|
|
536
|
+
FLOW_AGENT_ESCALATION_NO_APP: 'lint',
|
|
537
|
+
FLOW_AGENT_ESCALATION_NO_FIELDS: 'lint',
|
|
538
|
+
FLOW_AGENT_ESCALATION_NO_NAME: 'lint',
|
|
539
|
+
FLOW_AGENT_ESCALATION_QUICKFORM_WITH_APP: 'lowering',
|
|
540
|
+
FLOW_AGENT_ESCALATION_VARIANT: 'lowering',
|
|
540
541
|
INLINE_AGENT_INPUT_NAME_AMBIGUOUS: 'lint',
|
|
541
542
|
INLINE_AGENT_MEMORY_ID_NOT_GUID: 'lint',
|
|
542
543
|
INLINE_AGENT_MEMORY_INCOMPLETE: 'lint',
|
|
@@ -546,23 +547,24 @@ export const REFUSALS = {
|
|
|
546
547
|
INLINE_AGENT_PROMPT_JSON_TEXT: 'lint',
|
|
547
548
|
INLINE_AGENT_READ_NOT_OUTPUT: 'lint',
|
|
548
549
|
INLINE_AGENT_READ_UNKNOWN_FIELD: 'lint',
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
FLOW_AGENT_RESOURCE_NODE_ID: 'lowering',
|
|
551
|
+
FLOW_AGENT_RESOURCE_SOURCE_DUP: 'lowering',
|
|
552
|
+
FLOW_AGENT_RESOURCE_SOURCE_NOT_GUID: 'lint',
|
|
552
553
|
INLINE_AGENT_SCAFFOLD_MODEL: 'lint',
|
|
553
554
|
INLINE_AGENT_SOURCE_NOT_GUID: 'lint',
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
555
|
+
FLOW_AGENT_TOOL_A2A_INCOMPLETE: 'lint',
|
|
556
|
+
FLOW_AGENT_TOOL_CLIENTSIDE_NO_NAME: 'lint',
|
|
557
|
+
FLOW_AGENT_TOOL_CLIENTSIDE_SCHEMA_TWICE: 'lowering',
|
|
558
|
+
FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION: 'lint',
|
|
559
|
+
FLOW_AGENT_TOOL_HTTP_METHOD: 'lint',
|
|
560
|
+
FLOW_AGENT_TOOL_IXP_NO_NAME: 'lint',
|
|
561
|
+
FLOW_AGENT_TOOL_IXP_PROJECT_NOT_GUID: 'lint',
|
|
562
|
+
FLOW_AGENT_TOOL_KEY_NOT_GUID: 'lint',
|
|
563
|
+
FLOW_AGENT_TOOL_MCP_INCOMPLETE: 'lint',
|
|
564
|
+
FLOW_AGENT_TOOL_NO_OPERATION: 'lint',
|
|
565
|
+
FLOW_AGENT_TOOL_NO_RESOURCE_ID: 'lint',
|
|
566
|
+
FLOW_AGENT_TOOL_UNKNOWN_BUILTIN: 'lowering',
|
|
567
|
+
FLOW_AGENT_TOOL_UNKNOWN_KIND: 'lowering',
|
|
566
568
|
INLINE_AGENT_UNDECLARED_PLACEHOLDER: 'lint',
|
|
567
569
|
INLINE_AGENT_UNREFERENCED_INPUT: 'lint',
|
|
568
570
|
INPUT_READ_WITHOUT_TRIGGER: 'lint',
|
package/dist/decompile.js
CHANGED
|
@@ -815,21 +815,26 @@ function liftRegistered(node, impl = registeredImpl(node), graph) {
|
|
|
815
815
|
sidecar: (path) => runReadSidecar?.(path),
|
|
816
816
|
flowId: runFlowId,
|
|
817
817
|
definitionOf: (n) => runDefs.get(`${n.type}@${n.typeVersion}`) ?? runDefs.get(n.type),
|
|
818
|
-
attached: (port, limit = Infinity) => {
|
|
818
|
+
attached: (port, limit = Infinity, accept = () => true) => {
|
|
819
819
|
const found = [];
|
|
820
820
|
for (const e of graph?.outEdges(node.id) ?? []) {
|
|
821
821
|
if (e.sourcePort !== port || found.length >= limit)
|
|
822
822
|
continue;
|
|
823
823
|
const n = graph.byId.get(e.targetNodeId);
|
|
824
|
-
if (n === undefined)
|
|
824
|
+
if (n === undefined || !accept(n))
|
|
825
825
|
continue;
|
|
826
826
|
graph.accounted.add(e);
|
|
827
827
|
found.push(n);
|
|
828
828
|
}
|
|
829
829
|
return found;
|
|
830
830
|
},
|
|
831
|
-
attachedIds: (port) => (graph?.outEdges(node.id) ?? [])
|
|
832
|
-
.filter((e) =>
|
|
831
|
+
attachedIds: (port, accept = () => true) => (graph?.outEdges(node.id) ?? [])
|
|
832
|
+
.filter((e) => {
|
|
833
|
+
if (e.sourcePort !== port)
|
|
834
|
+
return false;
|
|
835
|
+
const n = graph.byId.get(e.targetNodeId);
|
|
836
|
+
return n !== undefined && accept(n);
|
|
837
|
+
})
|
|
833
838
|
.map((e) => e.targetNodeId),
|
|
834
839
|
absorb: (id, compiledId) => { runAbsorbed.set(id, compiledId); },
|
|
835
840
|
outPorts: () => (graph?.outEdges(node.id) ?? []).map((e) => e.sourcePort),
|
package/dist/flow-node-type.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ export interface FlowSerializeContext {
|
|
|
214
214
|
* Write a file beside the `.flow` (an agent's `agent.json`), at a path relative
|
|
215
215
|
* to it. The same file twice is not a clash (a subflow body emitted for two
|
|
216
216
|
* callers); two different contents at a path an explicit `source` chose are
|
|
217
|
-
* refused (`
|
|
217
|
+
* refused (`FLOW_AGENT_RESOURCE_SOURCE_DUP`). `owner` names whoever chose
|
|
218
218
|
* that `source`, as the refusal names it (`inline agent step "answer"'s
|
|
219
219
|
* context index "SOP"`); omit it for a derived one. `true` (the older form)
|
|
220
220
|
* marks an explicit `source` without naming its owner. The `json` object is
|
|
@@ -240,7 +240,7 @@ export interface FlowSerializeContext {
|
|
|
240
240
|
/**
|
|
241
241
|
* Claim the node id of a resource this step attaches: `explicit` exactly as
|
|
242
242
|
* written (decompile writes the file's id), refused when blank or already
|
|
243
|
-
* another node's (`
|
|
243
|
+
* another node's (`FLOW_AGENT_RESOURCE_NODE_ID`); else `<seed>`, deduped
|
|
244
244
|
* file-wide (`<seed>2`, …).
|
|
245
245
|
*/
|
|
246
246
|
resourceNodeId(explicit: string | undefined, seed: string, where: string): string;
|
|
@@ -316,10 +316,18 @@ export interface FlowDeserializeContext {
|
|
|
316
316
|
* The nodes attached to this one on an artifact handle (`tool`, `context`,
|
|
317
317
|
* `escalation`, `memory`), in edge order, at most `limit` of them. Their edges
|
|
318
318
|
* are carried by this node's spec, so they are not reported as dropped.
|
|
319
|
+
* With `accept`, only the nodes it accepts are returned and claimed; the
|
|
320
|
+
* rest stay unclaimed, so decompile reports their edges.
|
|
319
321
|
*/
|
|
320
|
-
attached(port: string, limit?: number
|
|
321
|
-
|
|
322
|
-
|
|
322
|
+
attached(port: string, limit?: number, accept?: (node: {
|
|
323
|
+
id: string;
|
|
324
|
+
type: string;
|
|
325
|
+
}) => boolean): readonly unknown[];
|
|
326
|
+
/** The ids of every node attached on that handle (that `accept` accepts), without claiming their edges. */
|
|
327
|
+
attachedIds(port: string, accept?: (node: {
|
|
328
|
+
id: string;
|
|
329
|
+
type: string;
|
|
330
|
+
}) => boolean): readonly string[];
|
|
323
331
|
/**
|
|
324
332
|
* Record that an attached node folds into this node's spec, and the id
|
|
325
333
|
* compile will give it (undefined: compile will not emit it again), so what
|
|
@@ -449,7 +457,7 @@ export interface FlowCheckContext {
|
|
|
449
457
|
}): void;
|
|
450
458
|
/**
|
|
451
459
|
* @deprecated Compile claims node ids and folders file-wide and refuses a clash
|
|
452
|
-
* (
|
|
460
|
+
* (FLOW_AGENT_RESOURCE_NODE_ID / FLOW_AGENT_RESOURCE_SOURCE_DUP), which
|
|
453
461
|
* `check` reports from its serializer run. These record nothing and answer
|
|
454
462
|
* `undefined`; kept so a node-type package written against them still builds.
|
|
455
463
|
*/
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
import type { DiagnosticCatalog } from '../../../core/nodes/family.js';
|
|
10
10
|
import type { OutputPathRead } from '../../../core/nodes/node-type.js';
|
|
11
11
|
import type { FlowCheckContext } from '../../../flow-node-type.js';
|
|
12
|
-
import type { InlineAgentInputs } from './spec.js';
|
|
12
|
+
import type { AgentResources, InlineAgentInputs } from './spec.js';
|
|
13
|
+
import type { AgentKindLabel } from './inline-agent.js';
|
|
13
14
|
export declare const AGENT_DIAGNOSTICS: DiagnosticCatalog;
|
|
14
15
|
/**
|
|
15
16
|
* A conversational AGENT step (Phase 5).
|
|
@@ -75,6 +76,13 @@ export declare function jsonTextDirective(text: string, returnKeys?: readonly st
|
|
|
75
76
|
* one string field. See {@link jsonTextDirective}.
|
|
76
77
|
*/
|
|
77
78
|
export declare function checkInlineAgent(inputs: InlineAgentInputs | undefined, ctx: FlowCheckContext): void;
|
|
79
|
+
/**
|
|
80
|
+
* The resource rules an agent's `context`, `tools` and `escalation` share,
|
|
81
|
+
* whichever agent attaches them: the inline agent, and the voice and
|
|
82
|
+
* conversational agents, which attach the same resources (#1670). The codes are
|
|
83
|
+
* `FLOW_AGENT_*`, shared by all three; each message names the agent `who` is.
|
|
84
|
+
*/
|
|
85
|
+
export declare function checkAgentResources(inputs: AgentResources | undefined, ctx: FlowCheckContext, who: AgentKindLabel): void;
|
|
78
86
|
/**
|
|
79
87
|
* A read of an inline agent's output: `out('<step>', '<field>')`.
|
|
80
88
|
*
|