Class DebugLoggingPlugin.Builder

java.lang.Object
com.google.adk.plugins.DebugLoggingPlugin.Builder
Enclosing class:
DebugLoggingPlugin

public static final class DebugLoggingPlugin.Builder extends Object
“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。 DebugLoggingPlugin.
  • 方法详细信息(Method Details)

    • outputPath

      @CanIgnoreReturnValue public DebugLoggingPlugin.Builder outputPath(Path outputPath)
      指定 YAML 文档将被追加到的文件路径;如果缺少相应的父目录,系统会自动创建这些目录。
    • includeSessionState

      @CanIgnoreReturnValue public DebugLoggingPlugin.Builder includeSessionState(boolean includeSessionState)
      该设置用于决定是否在每次函数调用结束时记录会话状态的快照。
    • includeSystemInstruction

      @CanIgnoreReturnValue public DebugLoggingPlugin.Builder includeSystemInstruction(boolean includeSystemInstruction)
      该设置用于决定系统指令是会被完整记录下来,还是仅记录其被执行的事实(即指令的存在)。
    • name

      @CanIgnoreReturnValue public DebugLoggingPlugin.Builder name(String name)
      用于设置插件实例的名称。
    • build

      public DebugLoggingPlugin build()