Class ToolCallAdvisor

java.lang.Object
org.springframework.ai.chat.client.advisor.ToolCallAdvisor
All Implemented Interfaces:
Advisor, CallAdvisor, StreamAdvisor, org.springframework.core.Ordered

public final class ToolCallAdvisor extends Object implements CallAdvisor, StreamAdvisor
Recursive Advisor that disables the internal tool execution flow and instead implements the tool calling loop as part of the advisor chain.

It uses the CallAdvisorChainUtil to implement looping advisor chain calls.

This enables intercepting the tool calling loop by the rest of the advisors next in the chain.

Author:
Christian Tzolov