名为 `NamedToolPredicate` 的类
java.lang.Object
com.google.adk.tools.NamedToolPredicate
- All Implemented Interfaces:
ToolPredicate
-
构造函数概述
ConstructorsConstructorDescriptionNamedToolPredicate(String... toolNames) NamedToolPredicate(List<String> toolNames) -
方法概述
Modifier and TypeMethodDescriptionbooleantest(BaseTool tool, Optional<ReadonlyContext> readonlyContext) 用于决定是否选中指定的工具。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) 用于决定是否选中指定的工具。
-
构造函数详细信息
-
NamedToolPredicate
-
NamedToolPredicate
-
-
方法详细信息(Method Details)
-
test
描述内容复制自接口文档:ToolPredicate用于决定是否选中指定的工具。- Specified by:
testin interfaceToolPredicate- Parameters:
tool- The tool to check.readonlyContext- The current context.- Returns:
- true if the tool should be selected, false otherwise.
-