List tools in a consistent order. (#12615)

This commit is contained in:
Tommaso Sciortino
2025-11-05 15:38:44 -08:00
committed by GitHub
parent d2dbb34ac2
commit 9ab24d397c
7 changed files with 92 additions and 0 deletions
+1
View File
@@ -128,6 +128,7 @@ export class AgentExecutor<TOutput extends z.ZodTypeAny> {
// registered; their schemas are passed directly to the model later.
}
agentToolRegistry.sortTools();
// Validate that all registered tools are safe for non-interactive
// execution.
await AgentExecutor.validateTools(agentToolRegistry, definition.name);