Description
Feature Description
Currently, experimental_activeTools can only be set during the initialization of generateText or streamText, and cannot be dynamically updated during multi-step execution. In complex AI application scenarios, we often need to decide the available tool set for the next step based on the results of the current step. This limitation makes it difficult for developers to implement more flexible tool control flows.
Use Cases
For example, in a multi-step workflow, the first step might require database query tools, while the second step might need different tools (such as file operation tools or notification tools) depending on the query results. Currently, we cannot dynamically adjust the available tool list after the first step completes.
Or is there any way to achieve the above effect
Additional context
No response