Expected Behavior
Advisor can only change the behavior around the ChatModel, framework has no way to control ChatModel`s (actually AbstractToolCallSupport) behavior to support these scene: 1. In reason of the ToolContext is unmodified, we can not deliver tool context to next tool, unless passing it to LLM via response string, but some information is sensitive. 2. We cannot carry tool context out to ChatModel or Advisor, that means we cannot customize reply, modify parameter or some special behaviors like stop or change the invoking process according to tool result.
Maybe like Advisor, create some kind of chain of responsibility to intervene in the ToolCall behavior?
Comment From: DEG-7
+1
Comment From: aRookieMan
using FunctionCallingHelper can do this