Tool call in stream mode within (my) current version (1.0.0-M6) of spring AI is not possible for what I know. This is due to contract of Tool, more specific current ToolCallback has a blocking signature:
/**
* Execute tool with the given input and return the result to send back to the AI
* model.
*/
String call(String toolInput);
One can try different ways to do tool calls within spring AI and some do support reactive mode (as I heard but never used) but using raw ToolCallback does not and unfortunately I am in same situation while I need ToolCallback since I have runtime declared tools.