Mirzamehdi
11/21/2025, 2:44 PMtoolSelectionStrategy = ToolSelectionStrategy.ALL,
Will it have access to all tools that the AiAgent has, or only the tools available in the outer subgraph?
val prepareGuidelinesSubGraph by subgraph<Unit, Unit>(
llmModel = OpenAIModels.Chat.GPT4o,
tools = listOf(ToolNames.EDIT_FILE, ToolNames.READ_FILE, ToolNames.LIST_DIRECTORY).map { toolRegistry.getTool(it)}
) {
val writeToFile by subgraph<Unit, Unit>(toolSelectionStrategy = ToolSelectionStrategy.ALL) {}
}Antonii Belyshev
11/22/2025, 12:32 PM