Class NamedToolPredicate
java.lang.Object
com.google.adk.tools.NamedToolPredicate
- All Implemented Interfaces:
ToolPredicate
-
Constructor Summary
ConstructorsConstructorDescriptionNamedToolPredicate(String... toolNames) NamedToolPredicate(List<String> toolNames) -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(BaseTool tool, Optional<ReadonlyContext> readonlyContext) Decides if the given tool is selected.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ToolPredicate
testModifier and TypeMethodDescriptiondefault booleantest(BaseTool tool, @Nullable ReadonlyContext readonlyContext) Decides if the given tool is selected.
-
Constructor Details
-
NamedToolPredicate
-
NamedToolPredicate
-
-
Method Details
-
test
Description copied from interface:ToolPredicateDecides if the given tool is selected.- Specified by:
testin interfaceToolPredicate- Parameters:
tool- The tool to check.readonlyContext- The current context.- Returns:
- true if the tool should be selected, false otherwise.
-