Class DebugLoggingPlugin.Builder
java.lang.Object
com.google.adk.plugins.DebugLoggingPlugin.Builder
- Enclosing class:
DebugLoggingPlugin
“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。
DebugLoggingPlugin.-
方法概述
Modifier and TypeMethodDescriptionbuild()includeSessionState(boolean includeSessionState) 该设置用于决定是否在每次函数调用结束时记录会话状态的快照。includeSystemInstruction(boolean includeSystemInstruction) 该设置用于决定系统指令是会被完整记录下来,还是仅记录其被执行的事实(即指令的存在)。用于设置插件实例的名称。outputPath(Path outputPath) 指定 YAML 文档将被追加到的文件路径;如果缺少相应的父目录,系统会自动创建这些目录。
-
方法详细信息(Method Details)
-
outputPath
指定 YAML 文档将被追加到的文件路径;如果缺少相应的父目录,系统会自动创建这些目录。 -
includeSessionState
@CanIgnoreReturnValue public DebugLoggingPlugin.Builder includeSessionState(boolean includeSessionState) 该设置用于决定是否在每次函数调用结束时记录会话状态的快照。 -
includeSystemInstruction
@CanIgnoreReturnValue public DebugLoggingPlugin.Builder includeSystemInstruction(boolean includeSystemInstruction) 该设置用于决定系统指令是会被完整记录下来,还是仅记录其被执行的事实(即指令的存在)。 -
name
用于设置插件实例的名称。 -
build
-