Class DefaultToolExecutionEligibilityPredicate
java.lang.Object
org.springframework.ai.model.tool.DefaultToolExecutionEligibilityPredicate
- All Implemented Interfaces:
BiPredicate<ChatOptions,
,ChatResponse> ToolExecutionEligibilityPredicate
public class DefaultToolExecutionEligibilityPredicate
extends Object
implements ToolExecutionEligibilityPredicate
Default implementation of
ToolExecutionEligibilityPredicate
that checks whether
tool execution is enabled in the prompt options and if the chat response contains tool
calls.- Author:
- Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(ChatOptions promptOptions, ChatResponse chatResponse) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
Methods inherited from interface org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate
isToolExecutionRequired
-
Constructor Details
-
DefaultToolExecutionEligibilityPredicate
public DefaultToolExecutionEligibilityPredicate()
-
-
Method Details
-
test
- Specified by:
test
in interfaceBiPredicate<ChatOptions,
ChatResponse>
-