79595916

Date: 2025-04-28 06:47:25
Score: 0.5
Natty:
Report link

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.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kronoss