类名:ExitLoopTool
java.lang.Object
com.google.adk.tools.ExitLoopTool
-
字段摘要
Fields -
方法概述
Modifier and TypeMethodDescriptionstatic voidexitLoop(ToolContext toolContext) 退出……LoopAgentexecution.
-
字段详情
-
INSTANCE
-
-
方法详细信息(Method Details)
-
exitLoop
退出……LoopAgentexecution.在 LLMAgent 中的使用示例:
LlmAgent subAgent = LlmAgent.builder() .addTool(ExitLoopTool.INSTANCE) .build();@Schema 的名称和描述与 Python 的版本是一致的。
请参考以下链接: https://github.com/google/adk-python/blob/main/src/google/adk/tools/exit_loop_tool.py
-