@jangts/agent-core 0.3.5 → 0.3.6

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +28 -26
  3. package/development/docs/api/README.en.md +2 -0
  4. package/development/docs/api/README.md +2 -0
  5. package/development/docs/api/observability.en.md +37 -11
  6. package/development/docs/api/observability.md +64 -11
  7. package/development/docs/api/reference.en.md +469 -348
  8. package/development/docs/api/reference.md +193 -137
  9. package/development/docs/api/types.en.md +1 -0
  10. package/development/docs/api/types.md +1 -0
  11. package/development/docs/api/workflow-views.en.md +64 -0
  12. package/development/docs/api/workflow-views.md +78 -0
  13. package/development/docs/api/workflow.en.md +6 -2
  14. package/development/docs/api/workflow.md +6 -2
  15. package/development/skills/agent-core-app/SKILL.md +12 -0
  16. package/dist/cjs/capabilities/invocation.js +21 -1
  17. package/dist/cjs/capabilities/tool-runtime.js +8 -1
  18. package/dist/cjs/capabilities/tools.js +12 -17
  19. package/dist/cjs/diagnostics/index.js +51 -3
  20. package/dist/cjs/diagnostics/native-sub-flow.js +106 -0
  21. package/dist/cjs/diagnostics/sub-flow.js +278 -32
  22. package/dist/cjs/execution/engine.js +3 -2
  23. package/dist/cjs/execution/events.js +5 -5
  24. package/dist/cjs/execution/reporting.js +18 -28
  25. package/dist/cjs/execution/workflow-chain.js +211 -0
  26. package/dist/cjs/execution/workflow-graph.js +72 -0
  27. package/dist/cjs/execution/workflow.js +34 -6
  28. package/dist/cjs/kits/aggregation.js +17 -14
  29. package/dist/cjs/kits/answering/checks.js +2 -1
  30. package/dist/cjs/kits/answering/flow.js +24 -21
  31. package/dist/cjs/kits/answering/tasks.js +25 -20
  32. package/dist/cjs/kits/delivery.js +36 -24
  33. package/dist/cjs/kits/knowledge/catalog.js +33 -30
  34. package/dist/cjs/kits/policies.js +3 -2
  35. package/dist/cjs/kits/presentation/outputs.js +2 -1
  36. package/dist/cjs/kits/retrieval.js +7 -1
  37. package/dist/cjs/kits/tools.js +1 -0
  38. package/dist/cjs/model/decision-retry.js +2 -1
  39. package/dist/cjs/model/runner.js +20 -5
  40. package/dist/cjs/structs/execution/workflow-views.js +2 -0
  41. package/dist/cjs/support/context/nodes.js +48 -45
  42. package/dist/cjs/support/context/processing.js +6 -3
  43. package/dist/cjs/utils/invocation.js +1 -0
  44. package/dist/esm/capabilities/invocation.js +21 -1
  45. package/dist/esm/capabilities/tool-runtime.js +8 -1
  46. package/dist/esm/capabilities/tools.js +12 -17
  47. package/dist/esm/diagnostics/index.d.ts +1 -0
  48. package/dist/esm/diagnostics/index.js +48 -2
  49. package/dist/esm/diagnostics/native-sub-flow.d.ts +94 -0
  50. package/dist/esm/diagnostics/native-sub-flow.js +101 -0
  51. package/dist/esm/diagnostics/sub-flow.d.ts +56 -4
  52. package/dist/esm/diagnostics/sub-flow.js +271 -32
  53. package/dist/esm/execution/engine.d.ts +1 -0
  54. package/dist/esm/execution/engine.js +3 -2
  55. package/dist/esm/execution/events.js +5 -5
  56. package/dist/esm/execution/reporting.d.ts +6 -12
  57. package/dist/esm/execution/reporting.js +19 -29
  58. package/dist/esm/execution/workflow-chain.d.ts +3 -0
  59. package/dist/esm/execution/workflow-chain.js +208 -0
  60. package/dist/esm/execution/workflow-graph.d.ts +7 -0
  61. package/dist/esm/execution/workflow-graph.js +68 -0
  62. package/dist/esm/execution/workflow.d.ts +6 -0
  63. package/dist/esm/execution/workflow.js +34 -6
  64. package/dist/esm/kits/aggregation.d.ts +1 -1
  65. package/dist/esm/kits/aggregation.js +17 -14
  66. package/dist/esm/kits/answering/checks.js +2 -1
  67. package/dist/esm/kits/answering/flow.js +24 -21
  68. package/dist/esm/kits/answering/tasks.js +25 -20
  69. package/dist/esm/kits/delivery.d.ts +0 -9
  70. package/dist/esm/kits/delivery.js +36 -24
  71. package/dist/esm/kits/knowledge/catalog.js +33 -30
  72. package/dist/esm/kits/policies.d.ts +1 -1
  73. package/dist/esm/kits/policies.js +3 -2
  74. package/dist/esm/kits/presentation/outputs.js +2 -1
  75. package/dist/esm/kits/retrieval.js +7 -1
  76. package/dist/esm/kits/tools.js +1 -0
  77. package/dist/esm/model/decision-retry.d.ts +2 -0
  78. package/dist/esm/model/decision-retry.js +2 -1
  79. package/dist/esm/model/runner.d.ts +2 -0
  80. package/dist/esm/model/runner.js +20 -5
  81. package/dist/esm/structs/capabilities/invocation.d.ts +2 -0
  82. package/dist/esm/structs/capabilities/tools.d.ts +7 -3
  83. package/dist/esm/structs/common.d.ts +2 -0
  84. package/dist/esm/structs/debug.d.ts +36 -20
  85. package/dist/esm/structs/execution/workflow-views.d.ts +123 -0
  86. package/dist/esm/structs/execution/workflow-views.js +1 -0
  87. package/dist/esm/structs/execution/workflow.d.ts +4 -3
  88. package/dist/esm/structs/index.d.ts +1 -0
  89. package/dist/esm/structs/model/runtime.d.ts +2 -0
  90. package/dist/esm/support/context/nodes.js +48 -45
  91. package/dist/esm/support/context/processing.js +6 -3
  92. package/dist/esm/utils/invocation.d.ts +1 -0
  93. package/dist/esm/utils/invocation.js +1 -0
  94. package/package.json +1 -1
  95. package/dist/cjs/utils/debug.js +0 -30
  96. package/dist/esm/utils/debug.d.ts +0 -27
  97. package/dist/esm/utils/debug.js +0 -27
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## @jangts/agent-core
8
8
 
9
- [合同与行为](core.md) · 302 个导出符号
9
+ [合同与行为](core.md) · 316 个导出符号
10
10
 
11
11
  | 符号 | 类型/值 | 声明与说明 |
12
12
  | --- | --- | --- |
@@ -25,12 +25,12 @@
25
25
  | `AgentModelBinding` | type | [声明](../../../dist/esm/execution/engine.d.ts#L22) |
26
26
  | `AgentModelRuntime` | type | [声明](../../../dist/esm/execution/engine.d.ts#L15) |
27
27
  | `AgentOutputEvent` | type | [声明](../../../dist/esm/structs/kits/presentation/events.d.ts#L11) |
28
- | `AgentWorkflow` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L8) |
29
- | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L103) |
28
+ | `AgentWorkflow` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L9) |
29
+ | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L102) |
30
30
  | `assembleContextPlan` | value | [声明](../../../dist/esm/context/plan.d.ts#L14) |
31
31
  | `assembleFragments` | value | [声明](../../../dist/esm/context/assembly.d.ts#L14) |
32
32
  | `AsyncSink` | type | [声明](../../../dist/esm/structs/common.d.ts#L21) |
33
- | `AttemptBudget` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L150) |
33
+ | `AttemptBudget` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L156) |
34
34
  | `bindInteraction` | value | [声明](../../../dist/esm/kits/interaction/handlers.d.ts#L21) |
35
35
  | `BreakCheck` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L33) |
36
36
  | `BreakEvent` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L42) |
@@ -83,14 +83,14 @@
83
83
  | `CoreEventPayloads` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L17) |
84
84
  | `CoreLogOutput` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L213) |
85
85
  | `CoreStep` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L35) |
86
- | `createDiagnostics` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L15) |
86
+ | `createDiagnostics` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L16) |
87
87
  | `CreateDiagnosticsOptions` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L247) |
88
88
  | `createIntentRegistry` | value | [声明](../../../dist/esm/kits/intents/registry.d.ts#L87) |
89
89
  | `createJsonTransport` | value | [声明](../../../dist/esm/support/model/transports.d.ts#L28) |
90
90
  | `createModelTransport` | value | [声明](../../../dist/esm/model/selection-transport.d.ts#L17) |
91
91
  | `createScopeRegistry` | value | [声明](../../../dist/esm/kits/intents/scopes.d.ts#L134) |
92
92
  | `createTextTransport` | value | [声明](../../../dist/esm/support/model/transports.d.ts#L10) |
93
- | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L151) |
93
+ | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L168) |
94
94
  | `defineAgentCatalog` | value | [声明](../../../dist/esm/kits/intents/catalog.d.ts#L15) |
95
95
  | `defineCandidateSelection` | value | [声明](../../../dist/esm/kits/candidates.d.ts#L24) |
96
96
  | `defineCommand` | value | [声明](../../../dist/esm/kits/interaction/command.d.ts#L15) |
@@ -107,10 +107,10 @@
107
107
  | `defineSemanticSlots` | value | [声明](../../../dist/esm/kits/presentation/templates.d.ts#L37) |
108
108
  | `defineTextSkillLoader` | value | [声明](../../../dist/esm/kits/text-skills.d.ts#L16) |
109
109
  | `defineTextTemplate` | value | [声明](../../../dist/esm/kits/presentation/templates.d.ts#L21) |
110
- | `defineWorkflow` | value | [声明](../../../dist/esm/execution/workflow.d.ts#L143) |
110
+ | `defineWorkflow` | value | [声明](../../../dist/esm/execution/workflow.d.ts#L149) |
111
111
  | `DescribedTool` | type | [声明](../../../dist/esm/structs/kits/intents/catalog.d.ts#L40) |
112
112
  | `DiagnosticContext` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L224) |
113
- | `diagnosticError` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L24) |
113
+ | `diagnosticError` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L25) |
114
114
  | `DiagnosticIdentity` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L131) |
115
115
  | `DiagnosticSpanFields` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L180) |
116
116
  | `DurationMs` | type | [声明](../../../dist/esm/structs/common.d.ts#L17) |
@@ -120,7 +120,7 @@
120
120
  | `EvidenceProjectionProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L29) |
121
121
  | `EvidenceProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L21) |
122
122
  | `EvidenceRequirement` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L12) |
123
- | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L47) |
123
+ | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L49) |
124
124
  | `executeInvocation` | value | [声明](../../../dist/esm/capabilities/invocation.d.ts#L17) |
125
125
  | `ExecutionContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L95) |
126
126
  | `ExecutionEventDescriptor` | type | [声明](../../../dist/esm/structs/execution/events.d.ts#L14) |
@@ -166,14 +166,14 @@
166
166
  | `ModelChildPolicy` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L56) |
167
167
  | `ModelFunction` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L34) |
168
168
  | `ModelImage` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L10) |
169
- | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L199) |
169
+ | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L201) |
170
170
  | `ModelInteractionAdapter` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L45) |
171
171
  | `modelInteractionCatalog` | value | [声明](../../../dist/esm/support/model/interactions/index.d.ts#L6) |
172
172
  | `ModelMessage` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L17) |
173
173
  | `ModelOptions` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L59) |
174
174
  | `ModelOutputEvent` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L107) |
175
175
  | `ModelPart` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L57) |
176
- | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L249) |
176
+ | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L251) |
177
177
  | `modelProtocolError` | value | [声明](../../../dist/esm/utils/model-protocol.d.ts#L9) |
178
178
  | `ModelProviderContext` | type | [声明](../../../dist/esm/structs/model/chat-provider.d.ts#L14) |
179
179
  | `ModelProviderErrorCode` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L15) |
@@ -194,15 +194,15 @@
194
194
  | `nativeFunctionInteraction` | value | [声明](../../../dist/esm/model/interactions/native-functions.d.ts#L8) |
195
195
  | `NodeAgentCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L43) |
196
196
  | `NodeCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L15) |
197
- | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L128) |
198
- | `normalizeDiagnosticEvent` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L38) |
197
+ | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L140) |
198
+ | `normalizeDiagnosticEvent` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L39) |
199
199
  | `Observer` | type | [声明](../../../dist/esm/structs/common.d.ts#L19) |
200
- | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L107) |
200
+ | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L109) |
201
201
  | `parseJsonFrames` | value | [声明](../../../dist/esm/support/transport/json.d.ts#L32) |
202
202
  | `Policy` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L135) |
203
203
  | `PolicyAssessment` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L22) |
204
204
  | `PolicyDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L11) |
205
- | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L230) |
205
+ | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L232) |
206
206
  | `PreparedModelInteraction` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L25) |
207
207
  | `ProtocolCheck` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L47) |
208
208
  | `ProtocolField` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L15) |
@@ -215,7 +215,7 @@
215
215
  | `publishReplyEvents` | value | [声明](../../../dist/esm/kits/presentation/events.d.ts#L40) |
216
216
  | `ReadonlyCatalog` | type | [声明](../../../dist/esm/structs/common.d.ts#L60) |
217
217
  | `readSse` | value | [声明](../../../dist/esm/index.d.ts#L31) |
218
- | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L88) |
218
+ | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L94) |
219
219
  | `RecoveryDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L40) |
220
220
  | `RecoveryResult` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L31) |
221
221
  | `RegisteredIntent` | type | [声明](../../../dist/esm/structs/kits/intents/registry.d.ts#L73) |
@@ -224,7 +224,7 @@
224
224
  | `RegisteredProtocol` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L149) |
225
225
  | `RegisteredScope` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L73) |
226
226
  | `RegisteredScopeEvidence` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L61) |
227
- | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L58) |
227
+ | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
228
228
  | `RegistrationDefinition` | type | [声明](../../../dist/esm/structs/support/registration.d.ts#L11) |
229
229
  | `Registry` | type | [声明](../../../dist/esm/structs/common.d.ts#L76) |
230
230
  | `REPLY_BUBBLE_BOUNDARY` | value | [声明](../../../dist/esm/kits/presentation/events.d.ts#L19) |
@@ -251,9 +251,11 @@
251
251
  | `SchemaAdapter` | type | [声明](../../../dist/esm/structs/common.d.ts#L29) |
252
252
  | `ScopeDefinition` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L15) |
253
253
  | `ScopeDescription` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L77) |
254
+ | `ScopedSubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L55) |
255
+ | `ScopedSubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
254
256
  | `ScopeRegistry` | value + type | [声明](../../../dist/esm/kits/intents/scopes.d.ts#L17) |
255
257
  | `ScopeRegistryPolicy` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L38) |
256
- | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L116) |
258
+ | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L118) |
257
259
  | `SemanticSlotDefinition` | type | [声明](../../../dist/esm/structs/kits/presentation/templates.d.ts#L19) |
258
260
  | `serializeOutputEvents` | value | [声明](../../../dist/esm/kits/presentation/events.d.ts#L53) |
259
261
  | `SseEvent` | type | [声明](../../../dist/esm/index.d.ts#L31) |
@@ -262,11 +264,12 @@
262
264
  | `SseReadOptions` | type | [声明](../../../dist/esm/index.d.ts#L31) |
263
265
  | `SseWriter` | type | [声明](../../../dist/esm/structs/support/transport/sse.d.ts#L12) |
264
266
  | `StepOutcome` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L26) |
265
- | `SubFlowLogger` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
266
- | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L105) |
267
- | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L101) |
268
- | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L84) |
269
- | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L135) |
267
+ | `SubFlowLog` | type | [声明](../../../dist/esm/structs/debug.d.ts#L130) |
268
+ | `SubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L45) |
269
+ | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L119) |
270
+ | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L111) |
271
+ | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L90) |
272
+ | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L147) |
270
273
  | `Support` | value | [声明](../../../dist/esm/support/index.d.ts#L10) |
271
274
  | `textOutputEvents` | value | [声明](../../../dist/esm/kits/presentation/events.d.ts#L60) |
272
275
  | `TextSkill` | type | [声明](../../../dist/esm/structs/kits/text-skills.d.ts#L24) |
@@ -281,11 +284,11 @@
281
284
  | `ToolContribution` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L82) |
282
285
  | `ToolDefinition` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L17) |
283
286
  | `ToolExecutionContext` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L36) |
284
- | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
287
+ | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L62) |
285
288
  | `ToolFinalizer` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L164) |
286
289
  | `ToolInvocation` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L61) |
287
290
  | `ToolInvocationPorts` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L51) |
288
- | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L81) |
291
+ | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L83) |
289
292
  | `ToolJournal` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L31) |
290
293
  | `ToolLifecycleOptions` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L166) |
291
294
  | `ToolLifecycleRegistry` | value + type | [声明](../../../dist/esm/kits/tools.d.ts#L18) |
@@ -293,8 +296,8 @@
293
296
  | `ToolNormalizer` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L162) |
294
297
  | `ToolProtocol` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L156) |
295
298
  | `ToolRegistry` | value + type | [声明](../../../dist/esm/capabilities/tools.d.ts#L7) |
296
- | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L90) |
297
- | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L71) |
299
+ | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L94) |
300
+ | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L73) |
298
301
  | `ToolResult` | type | [声明](../../../dist/esm/structs/invocation.d.ts#L57) |
299
302
  | `ToolRuntimeTypes` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L20) |
300
303
  | `transformContextText` | value | [声明](../../../dist/esm/support/context/assembly.d.ts#L39) |
@@ -303,19 +306,30 @@
303
306
  | `ValidationError` | value + type | [声明](../../../dist/esm/structs/errors.d.ts#L17) |
304
307
  | `WalkRule` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L22) |
305
308
  | `walkRules` | value | [声明](../../../dist/esm/utils/rules.d.ts#L36) |
306
- | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L24) |
309
+ | `WorkflowChain` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L62) |
310
+ | `WorkflowChainCoverage` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L46) |
311
+ | `WorkflowChainNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L78) |
312
+ | `WorkflowChainNodeEvent` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L98) |
313
+ | `WorkflowChainSource` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L57) |
314
+ | `WorkflowChainTransition` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L111) |
315
+ | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L25) |
307
316
  | `WorkflowContractError` | value + type | [声明](../../../dist/esm/structs/errors.d.ts#L38) |
308
- | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L115) |
309
- | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L157) |
310
- | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L171) |
311
- | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L73) |
312
- | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L64) |
313
- | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L48) |
317
+ | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L116) |
318
+ | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L158) |
319
+ | `WorkflowGraph` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L6) |
320
+ | `WorkflowGraphEdge` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L37) |
321
+ | `WorkflowGraphNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L15) |
322
+ | `WorkflowGraphRoute` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L28) |
323
+ | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L172) |
324
+ | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L72) |
325
+ | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L65) |
326
+ | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L49) |
327
+ | `WorkflowSubflowRecord` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L71) |
314
328
  | `writeSseFrame` | value | [声明](../../../dist/esm/support/transport/sse.d.ts#L38) |
315
329
 
316
330
  ## @jangts/agent-core/engine
317
331
 
318
- [合同与行为](core.md) · 33 个导出符号
332
+ [合同与行为](core.md) · 44 个导出符号
319
333
 
320
334
  | 符号 | 类型/值 | 声明与说明 |
321
335
  | --- | --- | --- |
@@ -330,13 +344,13 @@
330
344
  | `AgentCoreEngineSetup` | type | [声明](../../../dist/esm/execution/engine.d.ts#L33) |
331
345
  | `AgentModelBinding` | type | [声明](../../../dist/esm/execution/engine.d.ts#L22) |
332
346
  | `AgentModelRuntime` | type | [声明](../../../dist/esm/execution/engine.d.ts#L15) |
333
- | `AgentWorkflow` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L8) |
334
- | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L103) |
335
- | `AttemptBudget` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L150) |
347
+ | `AgentWorkflow` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L9) |
348
+ | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L102) |
349
+ | `AttemptBudget` | value + type | [声明](../../../dist/esm/execution/workflow.d.ts#L156) |
336
350
  | `CacheContext` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L51) |
337
351
  | `CacheReadOptions` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L11) |
338
352
  | `CoreStep` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L35) |
339
- | `defineWorkflow` | value | [声明](../../../dist/esm/execution/workflow.d.ts#L143) |
353
+ | `defineWorkflow` | value | [声明](../../../dist/esm/execution/workflow.d.ts#L149) |
340
354
  | `EngineCacheOptions` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L6) |
341
355
  | `LoopEvent` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L13) |
342
356
  | `NodeAgentCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L43) |
@@ -344,14 +358,25 @@
344
358
  | `requireWorkflowValue` | value | [声明](../../../dist/esm/execution/state.d.ts#L22) |
345
359
  | `route` | value | [声明](../../../dist/esm/execution/state.d.ts#L195) |
346
360
  | `StepOutcome` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L26) |
347
- | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L24) |
361
+ | `WorkflowChain` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L62) |
362
+ | `WorkflowChainCoverage` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L46) |
363
+ | `WorkflowChainNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L78) |
364
+ | `WorkflowChainNodeEvent` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L98) |
365
+ | `WorkflowChainSource` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L57) |
366
+ | `WorkflowChainTransition` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L111) |
367
+ | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L25) |
348
368
  | `WorkflowContractError` | value + type | [声明](../../../dist/esm/structs/errors.d.ts#L38) |
349
- | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L115) |
350
- | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L157) |
351
- | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L171) |
352
- | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L73) |
353
- | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L64) |
354
- | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L48) |
369
+ | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L116) |
370
+ | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L158) |
371
+ | `WorkflowGraph` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L6) |
372
+ | `WorkflowGraphEdge` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L37) |
373
+ | `WorkflowGraphNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L15) |
374
+ | `WorkflowGraphRoute` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L28) |
375
+ | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L172) |
376
+ | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L72) |
377
+ | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L65) |
378
+ | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L49) |
379
+ | `WorkflowSubflowRecord` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L71) |
355
380
 
356
381
  ## @jangts/agent-core/model
357
382
 
@@ -364,9 +389,9 @@
364
389
  | `ModelCallTrace` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L72) |
365
390
  | `ModelChildOptions` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L126) |
366
391
  | `ModelChildPolicy` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L56) |
367
- | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L199) |
392
+ | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L201) |
368
393
  | `ModelOutputEvent` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L107) |
369
- | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L249) |
394
+ | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L251) |
370
395
  | `ModelRunner` | value + type | [声明](../../../dist/esm/model/runner.d.ts#L14) |
371
396
  | `ModelRunnerOptions` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L164) |
372
397
  | `ModelRunnerPorts` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L111) |
@@ -374,11 +399,11 @@
374
399
  | `ModelRuntimeConfig` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L45) |
375
400
  | `ModelTokenBudget` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L30) |
376
401
  | `ModelTransportDefinition` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L65) |
377
- | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L230) |
402
+ | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L232) |
378
403
 
379
404
  ## @jangts/agent-core/types
380
405
 
381
- [合同与行为](types.md) · 459 个导出符号
406
+ [合同与行为](types.md) · 473 个导出符号
382
407
 
383
408
  | 符号 | 类型/值 | 声明与说明 |
384
409
  | --- | --- | --- |
@@ -398,8 +423,8 @@
398
423
  | `AgentModelBinding` | type | [声明](../../../dist/esm/execution/engine.d.ts#L22) |
399
424
  | `AgentModelRuntime` | type | [声明](../../../dist/esm/execution/engine.d.ts#L15) |
400
425
  | `AgentOutputEvent` | type | [声明](../../../dist/esm/structs/kits/presentation/events.d.ts#L11) |
401
- | `AgentWorkflow` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L8) |
402
- | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L103) |
426
+ | `AgentWorkflow` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L9) |
427
+ | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L102) |
403
428
  | `Aggregation` | type | [声明](../../../dist/esm/kits/aggregation.d.ts#L44) |
404
429
  | `AnswerCheck` | type | [声明](../../../dist/esm/structs/kits/answering/flow.d.ts#L16) |
405
430
  | `AnswerChecker` | type | [声明](../../../dist/esm/structs/kits/answering/checks.d.ts#L11) |
@@ -417,7 +442,7 @@
417
442
  | `assembleContextPlan` | type | [声明](../../../dist/esm/context/plan.d.ts#L14) |
418
443
  | `assembleFragments` | type | [声明](../../../dist/esm/context/assembly.d.ts#L14) |
419
444
  | `AsyncSink` | type | [声明](../../../dist/esm/structs/common.d.ts#L21) |
420
- | `AttemptBudget` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L150) |
445
+ | `AttemptBudget` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L156) |
421
446
  | `bindInteraction` | type | [声明](../../../dist/esm/kits/interaction/handlers.d.ts#L21) |
422
447
  | `BreakCheck` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L33) |
423
448
  | `BreakEvent` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L42) |
@@ -478,14 +503,14 @@
478
503
  | `CoreEventPayloads` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L17) |
479
504
  | `CoreLogOutput` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L213) |
480
505
  | `CoreStep` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L35) |
481
- | `createDiagnostics` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L15) |
506
+ | `createDiagnostics` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L16) |
482
507
  | `CreateDiagnosticsOptions` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L247) |
483
508
  | `createIntentRegistry` | type | [声明](../../../dist/esm/kits/intents/registry.d.ts#L87) |
484
509
  | `createJsonTransport` | type | [声明](../../../dist/esm/support/model/transports.d.ts#L28) |
485
510
  | `createModelTransport` | type | [声明](../../../dist/esm/model/selection-transport.d.ts#L17) |
486
511
  | `createScopeRegistry` | type | [声明](../../../dist/esm/kits/intents/scopes.d.ts#L134) |
487
512
  | `createTextTransport` | type | [声明](../../../dist/esm/support/model/transports.d.ts#L10) |
488
- | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L151) |
513
+ | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L168) |
489
514
  | `defineAgentCatalog` | type | [声明](../../../dist/esm/kits/intents/catalog.d.ts#L15) |
490
515
  | `defineAgentFamily` | type | [声明](../../../dist/esm/kits/family.d.ts#L17) |
491
516
  | `defineAnswerCheckCatalog` | type | [声明](../../../dist/esm/kits/answering/checks.d.ts#L15) |
@@ -499,7 +524,7 @@
499
524
  | `defineContentProjection` | type | [声明](../../../dist/esm/kits/projection.d.ts#L15) |
500
525
  | `defineContextAssembly` | type | [声明](../../../dist/esm/support/context/assembly.d.ts#L15) |
501
526
  | `defineContextFragments` | type | [声明](../../../dist/esm/support/context/assembly.d.ts#L28) |
502
- | `defineDelivery` | type | [声明](../../../dist/esm/kits/delivery.d.ts#L25) |
527
+ | `defineDelivery` | type | [声明](../../../dist/esm/kits/delivery.d.ts#L16) |
503
528
  | `defineDurableTask` | type | [声明](../../../dist/esm/kits/durable.d.ts#L19) |
504
529
  | `defineEvidenceChecklist` | type | [声明](../../../dist/esm/kits/evidence.d.ts#L14) |
505
530
  | `defineEvidenceProjection` | type | [声明](../../../dist/esm/kits/evidence.d.ts#L40) |
@@ -519,13 +544,13 @@
519
544
  | `defineTextSkillLoader` | type | [声明](../../../dist/esm/kits/text-skills.d.ts#L16) |
520
545
  | `defineTextTemplate` | type | [声明](../../../dist/esm/kits/presentation/templates.d.ts#L21) |
521
546
  | `defineTreeProjection` | type | [声明](../../../dist/esm/kits/projection.d.ts#L48) |
522
- | `defineWorkflow` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L143) |
523
- | `Delivery` | type | [声明](../../../dist/esm/kits/delivery.d.ts#L44) |
547
+ | `defineWorkflow` | type | [声明](../../../dist/esm/execution/workflow.d.ts#L149) |
548
+ | `Delivery` | type | [声明](../../../dist/esm/kits/delivery.d.ts#L35) |
524
549
  | `DeliveryOptions` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L25) |
525
550
  | `DeliveryStage` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L13) |
526
551
  | `DescribedTool` | type | [声明](../../../dist/esm/structs/kits/intents/catalog.d.ts#L40) |
527
552
  | `DiagnosticContext` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L224) |
528
- | `diagnosticError` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L24) |
553
+ | `diagnosticError` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L25) |
529
554
  | `DiagnosticIdentity` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L131) |
530
555
  | `DiagnosticSpanFields` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L180) |
531
556
  | `Durable` | type | [声明](../../../dist/esm/kits/durable.d.ts#L22) |
@@ -547,7 +572,7 @@
547
572
  | `EvidenceProjectionProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L29) |
548
573
  | `EvidenceProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L21) |
549
574
  | `EvidenceRequirement` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L12) |
550
- | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L47) |
575
+ | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L49) |
551
576
  | `executeInvocation` | type | [声明](../../../dist/esm/capabilities/invocation.d.ts#L17) |
552
577
  | `ExecutionContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L95) |
553
578
  | `ExecutionEventDescriptor` | type | [声明](../../../dist/esm/structs/execution/events.d.ts#L14) |
@@ -625,7 +650,7 @@
625
650
  | `ModelChoiceIndex` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L113) |
626
651
  | `ModelFunction` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L34) |
627
652
  | `ModelImage` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L10) |
628
- | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L199) |
653
+ | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L201) |
629
654
  | `ModelInteractionAdapter` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L45) |
630
655
  | `modelInteractionCatalog` | type | [声明](../../../dist/esm/support/model/interactions/index.d.ts#L6) |
631
656
  | `ModelInvocationContext` | type | [声明](../../../dist/esm/kits/inference.d.ts#L28) |
@@ -634,7 +659,7 @@
634
659
  | `ModelOptions` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L59) |
635
660
  | `ModelOutputEvent` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L107) |
636
661
  | `ModelPart` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L57) |
637
- | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L249) |
662
+ | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L251) |
638
663
  | `modelProtocolError` | type | [声明](../../../dist/esm/utils/model-protocol.d.ts#L9) |
639
664
  | `ModelProviderContext` | type | [声明](../../../dist/esm/structs/model/chat-provider.d.ts#L14) |
640
665
  | `ModelProviderErrorCode` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L15) |
@@ -657,13 +682,13 @@
657
682
  | `nativeFunctionInteraction` | type | [声明](../../../dist/esm/model/interactions/native-functions.d.ts#L8) |
658
683
  | `NodeAgentCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L43) |
659
684
  | `NodeCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L15) |
660
- | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L128) |
685
+ | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L140) |
661
686
  | `Normalization` | type | [声明](../../../dist/esm/kits/normalization.d.ts#L37) |
662
687
  | `NormalizationOptions` | type | [声明](../../../dist/esm/structs/kits/normalization.d.ts#L20) |
663
688
  | `NormalizationStep` | type | [声明](../../../dist/esm/structs/kits/normalization.d.ts#L11) |
664
- | `normalizeDiagnosticEvent` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L38) |
689
+ | `normalizeDiagnosticEvent` | type | [声明](../../../dist/esm/diagnostics/index.d.ts#L39) |
665
690
  | `Observer` | type | [声明](../../../dist/esm/structs/common.d.ts#L19) |
666
- | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L107) |
691
+ | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L109) |
667
692
  | `OutputCatalogOptions` | type | [声明](../../../dist/esm/structs/kits/presentation/outputs.d.ts#L77) |
668
693
  | `OutputComposeInput` | type | [声明](../../../dist/esm/structs/kits/presentation/outputs.d.ts#L60) |
669
694
  | `OutputDefinition` | type | [声明](../../../dist/esm/structs/kits/presentation/outputs.d.ts#L33) |
@@ -677,7 +702,7 @@
677
702
  | `Policy` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L135) |
678
703
  | `PolicyAssessment` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L22) |
679
704
  | `PolicyDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L11) |
680
- | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L230) |
705
+ | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L232) |
681
706
  | `PreparedModelInteraction` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L25) |
682
707
  | `PreparedModelTransport` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L38) |
683
708
  | `Presentation` | type | [声明](../../../dist/esm/kits/presentation/index.d.ts#L22) |
@@ -703,7 +728,7 @@
703
728
  | `ReadonlyCatalog` | type | [声明](../../../dist/esm/structs/common.d.ts#L60) |
704
729
  | `readSse` | type | [声明](../../../dist/esm/types.d.ts#L20) |
705
730
  | `reciprocalRankFusion` | type | [声明](../../../dist/esm/kits/rank-fusion.d.ts#L36) |
706
- | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L88) |
731
+ | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L94) |
707
732
  | `RecoveryDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L40) |
708
733
  | `RecoveryResult` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L31) |
709
734
  | `Reflection` | type | [声明](../../../dist/esm/kits/reflection.d.ts#L18) |
@@ -724,7 +749,7 @@
724
749
  | `RegisteredProtocol` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L149) |
725
750
  | `RegisteredScope` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L73) |
726
751
  | `RegisteredScopeEvidence` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L61) |
727
- | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L58) |
752
+ | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
728
753
  | `RegisteredTransportOutput` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L158) |
729
754
  | `RegistrationDefinition` | type | [声明](../../../dist/esm/structs/support/registration.d.ts#L11) |
730
755
  | `Registry` | type | [声明](../../../dist/esm/structs/common.d.ts#L76) |
@@ -754,9 +779,11 @@
754
779
  | `SchemaAdapter` | type | [声明](../../../dist/esm/structs/common.d.ts#L29) |
755
780
  | `ScopeDefinition` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L15) |
756
781
  | `ScopeDescription` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L77) |
782
+ | `ScopedSubFlowLogger` | type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L55) |
783
+ | `ScopedSubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
757
784
  | `ScopeRegistry` | type | [声明](../../../dist/esm/kits/intents/scopes.d.ts#L17) |
758
785
  | `ScopeRegistryPolicy` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L38) |
759
- | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L116) |
786
+ | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L118) |
760
787
  | `SectionSelection` | type | [声明](../../../dist/esm/structs/kits/knowledge.d.ts#L33) |
761
788
  | `SelectedTools` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L39) |
762
789
  | `selectVariant` | type | [声明](../../../dist/esm/kits/presentation/variants.d.ts#L20) |
@@ -768,11 +795,12 @@
768
795
  | `SseReadOptions` | type | [声明](../../../dist/esm/types.d.ts#L10) |
769
796
  | `SseWriter` | type | [声明](../../../dist/esm/structs/support/transport/sse.d.ts#L12) |
770
797
  | `StepOutcome` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L26) |
771
- | `SubFlowLogger` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
772
- | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L105) |
773
- | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L101) |
774
- | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L84) |
775
- | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L135) |
798
+ | `SubFlowLog` | type | [声明](../../../dist/esm/structs/debug.d.ts#L130) |
799
+ | `SubFlowLogger` | type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L45) |
800
+ | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L119) |
801
+ | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L111) |
802
+ | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L90) |
803
+ | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L147) |
776
804
  | `Support` | type | [声明](../../../dist/esm/support/index.d.ts#L10) |
777
805
  | `textOutputEvents` | type | [声明](../../../dist/esm/kits/presentation/events.d.ts#L60) |
778
806
  | `TextSearch` | type | [声明](../../../dist/esm/kits/search.d.ts#L8) |
@@ -796,11 +824,11 @@
796
824
  | `ToolContribution` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L82) |
797
825
  | `ToolDefinition` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L17) |
798
826
  | `ToolExecutionContext` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L36) |
799
- | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
827
+ | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L62) |
800
828
  | `ToolFinalizer` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L164) |
801
829
  | `ToolInvocation` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L61) |
802
830
  | `ToolInvocationPorts` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L51) |
803
- | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L81) |
831
+ | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L83) |
804
832
  | `ToolJournal` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L31) |
805
833
  | `ToolJournalFinish` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L22) |
806
834
  | `ToolJournalStart` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L13) |
@@ -812,8 +840,8 @@
812
840
  | `ToolProposal` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L18) |
813
841
  | `ToolProtocol` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L156) |
814
842
  | `ToolRegistry` | type | [声明](../../../dist/esm/capabilities/tools.d.ts#L7) |
815
- | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L90) |
816
- | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L71) |
843
+ | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L94) |
844
+ | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L73) |
817
845
  | `ToolResult` | type | [声明](../../../dist/esm/structs/invocation.d.ts#L57) |
818
846
  | `ToolRuntime` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L53) |
819
847
  | `ToolRuntimeTypes` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L20) |
@@ -831,20 +859,31 @@
831
859
  | `VectorSearchSpace` | type | [声明](../../../dist/esm/kits/vector-search.d.ts#L12) |
832
860
  | `WalkRule` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L22) |
833
861
  | `walkRules` | type | [声明](../../../dist/esm/utils/rules.d.ts#L36) |
834
- | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L24) |
862
+ | `WorkflowChain` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L62) |
863
+ | `WorkflowChainCoverage` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L46) |
864
+ | `WorkflowChainNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L78) |
865
+ | `WorkflowChainNodeEvent` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L98) |
866
+ | `WorkflowChainSource` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L57) |
867
+ | `WorkflowChainTransition` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L111) |
868
+ | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L25) |
835
869
  | `WorkflowContractError` | type | [声明](../../../dist/esm/structs/errors.d.ts#L38) |
836
- | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L115) |
837
- | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L157) |
838
- | `WorkflowFailure` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L152) |
839
- | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L171) |
840
- | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L73) |
841
- | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L64) |
842
- | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L48) |
870
+ | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L116) |
871
+ | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L158) |
872
+ | `WorkflowFailure` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L153) |
873
+ | `WorkflowGraph` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L6) |
874
+ | `WorkflowGraphEdge` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L37) |
875
+ | `WorkflowGraphNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L15) |
876
+ | `WorkflowGraphRoute` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L28) |
877
+ | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L172) |
878
+ | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L72) |
879
+ | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L65) |
880
+ | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L49) |
881
+ | `WorkflowSubflowRecord` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L71) |
843
882
  | `writeSseFrame` | type | [声明](../../../dist/esm/support/transport/sse.d.ts#L38) |
844
883
 
845
884
  ## @jangts/agent-core/structs
846
885
 
847
- [合同与行为](types.md) · 282 个导出符号
886
+ [合同与行为](types.md) · 296 个导出符号
848
887
 
849
888
  | 符号 | 类型/值 | 声明与说明 |
850
889
  | --- | --- | --- |
@@ -856,7 +895,7 @@
856
895
  | `AgentErrorInfo` | type | [声明](../../../dist/esm/structs/errors.d.ts#L46) |
857
896
  | `AgentFamily` | type | [声明](../../../dist/esm/structs/kits/family.d.ts#L86) |
858
897
  | `AgentOutputEvent` | type | [声明](../../../dist/esm/structs/kits/presentation/events.d.ts#L11) |
859
- | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L103) |
898
+ | `AgentWorkflowDefinition` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L102) |
860
899
  | `ArtifactReference` | type | [声明](../../../dist/esm/structs/kits/artifacts.d.ts#L12) |
861
900
  | `ArtifactResolver` | type | [声明](../../../dist/esm/structs/kits/artifacts.d.ts#L21) |
862
901
  | `AsyncSink` | type | [声明](../../../dist/esm/structs/common.d.ts#L21) |
@@ -905,7 +944,7 @@
905
944
  | `CoreLogOutput` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L213) |
906
945
  | `CoreStep` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L35) |
907
946
  | `CreateDiagnosticsOptions` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L247) |
908
- | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L151) |
947
+ | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L168) |
909
948
  | `DescribedTool` | type | [声明](../../../dist/esm/structs/kits/intents/catalog.d.ts#L40) |
910
949
  | `DiagnosticContext` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L224) |
911
950
  | `DiagnosticIdentity` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L131) |
@@ -926,7 +965,7 @@
926
965
  | `EvidenceProjectionProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L29) |
927
966
  | `EvidenceProvider` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L21) |
928
967
  | `EvidenceRequirement` | type | [声明](../../../dist/esm/structs/kits/evidence.d.ts#L12) |
929
- | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L47) |
968
+ | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L49) |
930
969
  | `ExecutionContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L95) |
931
970
  | `ExecutionEventDescriptor` | type | [声明](../../../dist/esm/structs/execution/events.d.ts#L14) |
932
971
  | `ExecutionObserver` | type | [声明](../../../dist/esm/structs/execution/events.d.ts#L17) |
@@ -982,13 +1021,13 @@
982
1021
  | `ModelChoiceIndex` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L113) |
983
1022
  | `ModelFunction` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L34) |
984
1023
  | `ModelImage` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L10) |
985
- | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L199) |
1024
+ | `ModelInputMeasurement` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L201) |
986
1025
  | `ModelInteractionAdapter` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L45) |
987
1026
  | `ModelMessage` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L17) |
988
1027
  | `ModelOptions` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L59) |
989
1028
  | `ModelOutputEvent` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L107) |
990
1029
  | `ModelPart` | type | [声明](../../../dist/esm/structs/model/messages.d.ts#L57) |
991
- | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L249) |
1030
+ | `ModelPrepareRequest` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L251) |
992
1031
  | `ModelProviderContext` | type | [声明](../../../dist/esm/structs/model/chat-provider.d.ts#L14) |
993
1032
  | `ModelProviderErrorCode` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L15) |
994
1033
  | `ModelProviderFailure` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L37) |
@@ -1007,13 +1046,13 @@
1007
1046
  | `NativeFunctionCall` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L73) |
1008
1047
  | `NodeAgentCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L43) |
1009
1048
  | `NodeCache` | type | [声明](../../../dist/esm/structs/execution/cache.d.ts#L15) |
1010
- | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L128) |
1049
+ | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L140) |
1011
1050
  | `Observer` | type | [声明](../../../dist/esm/structs/common.d.ts#L19) |
1012
- | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L107) |
1051
+ | `OperationContext` | type | [声明](../../../dist/esm/structs/common.d.ts#L109) |
1013
1052
  | `Policy` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L135) |
1014
1053
  | `PolicyAssessment` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L22) |
1015
1054
  | `PolicyDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L11) |
1016
- | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L230) |
1055
+ | `PreparedModelCall` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L232) |
1017
1056
  | `PreparedModelInteraction` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L25) |
1018
1057
  | `PreparedModelTransport` | type | [声明](../../../dist/esm/structs/model/interactions.d.ts#L38) |
1019
1058
  | `ProtocolCheck` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L47) |
@@ -1030,7 +1069,7 @@
1030
1069
  | `ProviderReasoningLevel` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L45) |
1031
1070
  | `ProviderReasoningStrategy` | type | [声明](../../../dist/esm/structs/support/model/provider.d.ts#L52) |
1032
1071
  | `ReadonlyCatalog` | type | [声明](../../../dist/esm/structs/common.d.ts#L60) |
1033
- | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L88) |
1072
+ | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L94) |
1034
1073
  | `RecoveryDefinition` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L40) |
1035
1074
  | `RecoveryResult` | type | [声明](../../../dist/esm/structs/kits/policies.d.ts#L31) |
1036
1075
  | `ReflectionDefinition` | type | [声明](../../../dist/esm/structs/kits/reflection.d.ts#L108) |
@@ -1049,7 +1088,7 @@
1049
1088
  | `RegisteredProtocol` | type | [声明](../../../dist/esm/structs/kits/interaction.d.ts#L149) |
1050
1089
  | `RegisteredScope` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L73) |
1051
1090
  | `RegisteredScopeEvidence` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L61) |
1052
- | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L58) |
1091
+ | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
1053
1092
  | `RegisteredTransportOutput` | type | [声明](../../../dist/esm/structs/model/runtime.d.ts#L158) |
1054
1093
  | `RegistrationDefinition` | type | [声明](../../../dist/esm/structs/support/registration.d.ts#L11) |
1055
1094
  | `Registry` | type | [声明](../../../dist/esm/structs/common.d.ts#L76) |
@@ -1071,8 +1110,10 @@
1071
1110
  | `SchemaAdapter` | type | [声明](../../../dist/esm/structs/common.d.ts#L29) |
1072
1111
  | `ScopeDefinition` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L15) |
1073
1112
  | `ScopeDescription` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L77) |
1113
+ | `ScopedSubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L55) |
1114
+ | `ScopedSubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
1074
1115
  | `ScopeRegistryPolicy` | type | [声明](../../../dist/esm/structs/kits/intents/scopes.d.ts#L38) |
1075
- | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L116) |
1116
+ | `SearchHit` | type | [声明](../../../dist/esm/structs/common.d.ts#L118) |
1076
1117
  | `SelectedTools` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L39) |
1077
1118
  | `SemanticSlotDefinition` | type | [声明](../../../dist/esm/structs/kits/presentation/templates.d.ts#L19) |
1078
1119
  | `SseEvent` | type | [声明](../../../dist/esm/structs/index.d.ts#L26) |
@@ -1080,11 +1121,12 @@
1080
1121
  | `SseReadOptions` | type | [声明](../../../dist/esm/structs/index.d.ts#L26) |
1081
1122
  | `SseWriter` | type | [声明](../../../dist/esm/structs/support/transport/sse.d.ts#L12) |
1082
1123
  | `StepOutcome` | type | [声明](../../../dist/esm/structs/execution/engine.d.ts#L26) |
1083
- | `SubFlowLogger` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
1084
- | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L105) |
1085
- | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L101) |
1086
- | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L84) |
1087
- | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L135) |
1124
+ | `SubFlowLog` | type | [声明](../../../dist/esm/structs/debug.d.ts#L130) |
1125
+ | `SubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L45) |
1126
+ | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L119) |
1127
+ | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L111) |
1128
+ | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L90) |
1129
+ | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L147) |
1088
1130
  | `TextSkill` | type | [声明](../../../dist/esm/structs/kits/text-skills.d.ts#L24) |
1089
1131
  | `TextSkillHeader` | type | [声明](../../../dist/esm/structs/kits/text-skills.d.ts#L31) |
1090
1132
  | `TextSkillLoader` | type | [声明](../../../dist/esm/structs/kits/text-skills.d.ts#L61) |
@@ -1100,11 +1142,11 @@
1100
1142
  | `ToolContribution` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L82) |
1101
1143
  | `ToolDefinition` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L17) |
1102
1144
  | `ToolExecutionContext` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L36) |
1103
- | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
1145
+ | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L62) |
1104
1146
  | `ToolFinalizer` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L164) |
1105
1147
  | `ToolInvocation` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L61) |
1106
1148
  | `ToolInvocationPorts` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L51) |
1107
- | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L81) |
1149
+ | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L83) |
1108
1150
  | `ToolJournal` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L31) |
1109
1151
  | `ToolJournalFinish` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L22) |
1110
1152
  | `ToolJournalStart` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L13) |
@@ -1114,22 +1156,33 @@
1114
1156
  | `ToolOutput` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L43) |
1115
1157
  | `ToolProposal` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L18) |
1116
1158
  | `ToolProtocol` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L156) |
1117
- | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L90) |
1118
- | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L71) |
1159
+ | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L94) |
1160
+ | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L73) |
1119
1161
  | `ToolResult` | type | [声明](../../../dist/esm/structs/invocation.d.ts#L57) |
1120
1162
  | `ToolRuntime` | type | [声明](../../../dist/esm/structs/support/tools.d.ts#L53) |
1121
1163
  | `ToolRuntimeTypes` | type | [声明](../../../dist/esm/structs/kits/tools.d.ts#L20) |
1122
1164
  | `ValidationError` | value + type | [声明](../../../dist/esm/structs/errors.d.ts#L17) |
1123
1165
  | `WalkRule` | type | [声明](../../../dist/esm/structs/utils/rules.d.ts#L22) |
1124
- | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L24) |
1166
+ | `WorkflowChain` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L62) |
1167
+ | `WorkflowChainCoverage` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L46) |
1168
+ | `WorkflowChainNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L78) |
1169
+ | `WorkflowChainNodeEvent` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L98) |
1170
+ | `WorkflowChainSource` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L57) |
1171
+ | `WorkflowChainTransition` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L111) |
1172
+ | `WorkflowContext` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L25) |
1125
1173
  | `WorkflowContractError` | value + type | [声明](../../../dist/esm/structs/errors.d.ts#L38) |
1126
- | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L115) |
1127
- | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L157) |
1128
- | `WorkflowFailure` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L152) |
1129
- | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L171) |
1130
- | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L73) |
1131
- | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L64) |
1132
- | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L48) |
1174
+ | `WorkflowEvent` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L116) |
1175
+ | `WorkflowExtension` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L158) |
1176
+ | `WorkflowFailure` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L153) |
1177
+ | `WorkflowGraph` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L6) |
1178
+ | `WorkflowGraphEdge` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L37) |
1179
+ | `WorkflowGraphNode` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L15) |
1180
+ | `WorkflowGraphRoute` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L28) |
1181
+ | `WorkflowModel` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L172) |
1182
+ | `WorkflowNode` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L72) |
1183
+ | `WorkflowNodeReport` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L65) |
1184
+ | `WorkflowRoute` | type | [声明](../../../dist/esm/structs/execution/workflow.d.ts#L49) |
1185
+ | `WorkflowSubflowRecord` | type | [声明](../../../dist/esm/structs/execution/workflow-views.d.ts#L71) |
1133
1186
 
1134
1187
  ## @jangts/agent-core/context
1135
1188
 
@@ -1200,19 +1253,19 @@
1200
1253
 
1201
1254
  | 符号 | 类型/值 | 声明与说明 |
1202
1255
  | --- | --- | --- |
1203
- | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L47) |
1256
+ | `ExecutableTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L49) |
1204
1257
  | `executeInvocation` | value | [声明](../../../dist/esm/capabilities/invocation.d.ts#L17) |
1205
1258
  | `InvocationHandler` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L38) |
1206
- | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L58) |
1259
+ | `RegisteredTool` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
1207
1260
  | `ToolDefinition` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L17) |
1208
1261
  | `ToolExecutionContext` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L36) |
1209
- | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L60) |
1262
+ | `ToolExecutionEvent` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L62) |
1210
1263
  | `ToolInvocationPorts` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L51) |
1211
- | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L81) |
1264
+ | `ToolInvocationRequest` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L83) |
1212
1265
  | `ToolJournal` | type | [声明](../../../dist/esm/structs/capabilities/invocation.d.ts#L31) |
1213
1266
  | `ToolRegistry` | value + type | [声明](../../../dist/esm/capabilities/tools.d.ts#L7) |
1214
- | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L90) |
1215
- | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L71) |
1267
+ | `ToolRegistryOptions` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L94) |
1268
+ | `ToolRegistryPorts` | type | [声明](../../../dist/esm/structs/capabilities/tools.d.ts#L73) |
1216
1269
 
1217
1270
  ## @jangts/agent-core/protocols
1218
1271
 
@@ -1250,7 +1303,7 @@
1250
1303
 
1251
1304
  ## @jangts/agent-core/diagnostics
1252
1305
 
1253
- [合同与行为](observability.md) · 26 个导出符号
1306
+ [合同与行为](observability.md) · 29 个导出符号
1254
1307
 
1255
1308
  | 符号 | 类型/值 | 声明与说明 |
1256
1309
  | --- | --- | --- |
@@ -1261,25 +1314,28 @@
1261
1314
  | `CoreEventName` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L119) |
1262
1315
  | `CoreEventPayloads` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L17) |
1263
1316
  | `CoreLogOutput` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L213) |
1264
- | `createDiagnostics` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L15) |
1317
+ | `createDiagnostics` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L16) |
1265
1318
  | `CreateDiagnosticsOptions` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L247) |
1266
- | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L151) |
1319
+ | `DebugStepsOutput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L168) |
1267
1320
  | `DiagnosticContext` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L224) |
1268
- | `diagnosticError` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L24) |
1321
+ | `diagnosticError` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L25) |
1269
1322
  | `DiagnosticIdentity` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L131) |
1270
1323
  | `DiagnosticSpanFields` | type | [声明](../../../dist/esm/structs/diagnostics.d.ts#L180) |
1271
- | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L128) |
1272
- | `normalizeDiagnosticEvent` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L38) |
1273
- | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L88) |
1324
+ | `NodeReportingContext` | type | [声明](../../../dist/esm/structs/debug.d.ts#L140) |
1325
+ | `normalizeDiagnosticEvent` | value | [声明](../../../dist/esm/diagnostics/index.d.ts#L39) |
1326
+ | `RecordedSubStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L94) |
1274
1327
  | `ReportedStep` | type | [声明](../../../dist/esm/structs/debug.d.ts#L57) |
1275
1328
  | `ReportedStepStatus` | type | [声明](../../../dist/esm/structs/debug.d.ts#L55) |
1276
1329
  | `reportedStepStatusCatalog` | value | [声明](../../../dist/esm/structs/debug.d.ts#L19) |
1277
1330
  | `reportedStepStatuses` | value | [声明](../../../dist/esm/structs/debug.d.ts#L53) |
1278
- | `SubFlowLogger` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
1279
- | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L105) |
1280
- | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L101) |
1281
- | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L84) |
1282
- | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L135) |
1331
+ | `ScopedSubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L55) |
1332
+ | `ScopedSubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L117) |
1333
+ | `SubFlowLog` | type | [声明](../../../dist/esm/structs/debug.d.ts#L130) |
1334
+ | `SubFlowLogger` | value + type | [声明](../../../dist/esm/diagnostics/sub-flow.d.ts#L45) |
1335
+ | `SubFlowStepFix` | type | [声明](../../../dist/esm/structs/debug.d.ts#L119) |
1336
+ | `SubFlowStepInput` | type | [声明](../../../dist/esm/structs/debug.d.ts#L111) |
1337
+ | `SubFlowValue` | type | [声明](../../../dist/esm/structs/debug.d.ts#L90) |
1338
+ | `SubStepProgress` | type | [声明](../../../dist/esm/structs/debug.d.ts#L147) |
1283
1339
 
1284
1340
  ## @jangts/agent-core/kits/knowledge
1285
1341
 
@@ -1552,8 +1608,8 @@
1552
1608
 
1553
1609
  | 符号 | 类型/值 | 声明与说明 |
1554
1610
  | --- | --- | --- |
1555
- | `defineDelivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L25) |
1556
- | `Delivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L44) |
1611
+ | `defineDelivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L16) |
1612
+ | `Delivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L35) |
1557
1613
  | `DeliveryOptions` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L25) |
1558
1614
  | `DeliveryStage` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L13) |
1559
1615
 
@@ -1917,7 +1973,7 @@
1917
1973
  | `defineCommand` | value | [声明](../../../dist/esm/kits/interaction/command.d.ts#L15) |
1918
1974
  | `defineCommandCatalog` | value | [声明](../../../dist/esm/kits/interaction/commands.d.ts#L89) |
1919
1975
  | `defineContentProjection` | value | [声明](../../../dist/esm/kits/projection.d.ts#L15) |
1920
- | `defineDelivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L25) |
1976
+ | `defineDelivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L16) |
1921
1977
  | `defineDurableTask` | value | [声明](../../../dist/esm/kits/durable.d.ts#L19) |
1922
1978
  | `defineEvidenceChecklist` | value | [声明](../../../dist/esm/kits/evidence.d.ts#L14) |
1923
1979
  | `defineEvidenceProjection` | value | [声明](../../../dist/esm/kits/evidence.d.ts#L40) |
@@ -1936,7 +1992,7 @@
1936
1992
  | `defineTextSkillLoader` | value | [声明](../../../dist/esm/kits/text-skills.d.ts#L16) |
1937
1993
  | `defineTextTemplate` | value | [声明](../../../dist/esm/kits/presentation/templates.d.ts#L21) |
1938
1994
  | `defineTreeProjection` | value | [声明](../../../dist/esm/kits/projection.d.ts#L48) |
1939
- | `Delivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L44) |
1995
+ | `Delivery` | value | [声明](../../../dist/esm/kits/delivery.d.ts#L35) |
1940
1996
  | `DeliveryOptions` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L25) |
1941
1997
  | `DeliveryStage` | type | [声明](../../../dist/esm/structs/kits/delivery.d.ts#L13) |
1942
1998
  | `DescribedTool` | type | [声明](../../../dist/esm/structs/kits/intents/catalog.d.ts#L40) |