类名:ExitLoopTool

java.lang.Object
com.google.adk.tools.ExitLoopTool

public final class ExitLoopTool extends Object
用于终止程序执行的工具 LoopAgent.
  • 字段详情

  • 方法详细信息(Method Details)

    • exitLoop

      public static void exitLoop(ToolContext toolContext)
      退出…… LoopAgent execution.

      在 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