Class ExampleUtils
java.lang.Object
com.google.adk.examples.ExampleUtils
Utility class for examples.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildExampleSi(BaseExampleProvider exampleProvider, String query) Builds a formatted few-shot example string for the given query.
-
Method Details
-
buildExampleSi
Builds a formatted few-shot example string for the given query. The string can be used for system instructions (i.e., the method name means "Build Example System Instructions").- Parameters:
exampleProvider- Source of examples.query- User query.- Returns:
- formatted string with few-shot examples.
-