Explorar el Código

test(workflow): register real-engine route

Tianyi Cui hace 2 meses
padre
commit
b2f08eac4f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      packages/workflow/tool-workflow/tests/tool-workflow.spec.ts

+ 6 - 0
packages/workflow/tool-workflow/tests/tool-workflow.spec.ts

@@ -230,6 +230,12 @@ describe('dsh-tool-workflow', () => {
       await ctx.plugin(SystemPrompt)
       await ctx.plugin(ToolRegistry)
       await ctx.plugin(SubagentService)
+      ctx.subagents.registerProvider({
+        name: 'spawn',
+        capabilities: { outputSchema: true, depthLimit: true, toolFilter: true, persona: true },
+        inheritsParentContext: false,
+        start: () => Promise.reject(new Error('the parked-script fixture must not start a child')),
+      })
       await ctx.plugin(WorkerWorkflowEngine, { disposeGraceMs: 30 })
       await ctx.plugin(toolWorkflow, {})
       const parent = { id: SessionId('caller'), options: {} } as unknown as Agent