test(workflow): register real-engine route
This commit is contained in:
@@ -230,6 +230,12 @@ describe('dsh-tool-workflow', () => {
|
|||||||
await ctx.plugin(SystemPrompt)
|
await ctx.plugin(SystemPrompt)
|
||||||
await ctx.plugin(ToolRegistry)
|
await ctx.plugin(ToolRegistry)
|
||||||
await ctx.plugin(SubagentService)
|
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(WorkerWorkflowEngine, { disposeGraceMs: 30 })
|
||||||
await ctx.plugin(toolWorkflow, {})
|
await ctx.plugin(toolWorkflow, {})
|
||||||
const parent = { id: SessionId('caller'), options: {} } as unknown as Agent
|
const parent = { id: SessionId('caller'), options: {} } as unknown as Agent
|
||||||
|
|||||||
Reference in New Issue
Block a user