Class ExampleTool

java.lang.Object
com.google.adk.tools.BaseTool
com.google.adk.tools.ExampleTool

public final class ExampleTool extends BaseTool
这是一个工具,它将(少量的)示例数据作为系统指令插入到发送给大型语言模型(LLM)的请求中。

YAML 文件的配置(参数)选项:

  • 示例:要么是一个完全限定(fully-qualified)的引用;要么是…… BaseExampleProvider 实例(例如: com.example.MyExamples.INSTANCE)或一个包含示例的列表,这些示例中包含了相应的字段。 input 和 output (消息数组)。