Class ExampleUtils
java.lang.Object
com.google.adk.examples.ExampleUtils
这是一个用于示例的实用类(utility class)。
-
方法概述
Modifier and TypeMethodDescriptionstatic StringbuildExampleSi(BaseExampleProvider exampleProvider, String query) 根据给定的查询,生成一个格式化的“few-shot”示例字符串。
-
方法详细信息(Method Details)
-
buildExampleSi
根据给定的查询生成一个格式化的示例字符串。该字符串可用于系统指令;例如,该方法名称的含义是“生成系统指令示例”。- Parameters:
exampleProvider- Source of examples.query- User query.- Returns:
- formatted string with few-shot examples.
-