feat(core): refactor subagent tool to unified invoke_subagent tool (#24489)

This commit is contained in:
Abhi
2026-04-09 12:48:24 -04:00
committed by GitHub
parent 6686c8ee4c
commit b238a453e3
47 changed files with 1051 additions and 467 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ interface MockToolOptions {
description?: string;
canUpdateOutput?: boolean;
isOutputMarkdown?: boolean;
kind?: Kind;
shouldConfirmExecute?: (
params: { [key: string]: unknown },
signal: AbortSignal,
@@ -101,7 +102,7 @@ export class MockTool extends BaseDeclarativeTool<
options.name,
options.displayName ?? options.name,
options.description ?? options.name,
Kind.Other,
options.kind ?? Kind.Other,
options.params,
options.messageBus ?? createMockMessageBus(),
options.isOutputMarkdown ?? false,