Hello, I have a question about tools inside a subg...
# koog-agentic-framework
m
Hello, I have a question about tools inside a subgraph. In the code below, if I give the outer subgraph access to, for example, 3 tools, what happens when I set the inner subgraph to:
Copy code
toolSelectionStrategy = ToolSelectionStrategy.ALL,
Will it have access to all tools that the
AiAgent
has
, or only the tools available in the outer subgraph?
Copy code
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) {}

}
a
The inner subgraph will have access only to the tools available in the outer subgraph
🙏 1