feat(agent): Introduce Foundational Subagent Architecture (#1805)

Co-authored-by: Colt McAnlis <colton@google.com>
This commit is contained in:
Abhi
2025-08-06 20:34:38 -04:00
committed by GitHub
parent d6a7334279
commit 36750ca49b
7 changed files with 1834 additions and 104 deletions

View File

@@ -365,6 +365,22 @@ export class ToolRegistry {
return declarations;
}
/**
* Retrieves a filtered list of tool schemas based on a list of tool names.
* @param toolNames - An array of tool names to include.
* @returns An array of FunctionDeclarations for the specified tools.
*/
getFunctionDeclarationsFiltered(toolNames: string[]): FunctionDeclaration[] {
const declarations: FunctionDeclaration[] = [];
for (const name of toolNames) {
const tool = this.tools.get(name);
if (tool) {
declarations.push(tool.schema);
}
}
return declarations;
}
/**
* Returns an array of all registered and discovered tool instances.
*/