# Class ExampleUtils

java.lang.Object
com.google.adk.examples.ExampleUtils

public final class ExampleUtils extends Object
Utility class for examples.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `buildExampleSi(BaseExampleProvider exampleProvider, String query)`
  Builds a formatted few-shot example string for the given query.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### buildExampleSi

    public static String buildExampleSi(BaseExampleProvider exampleProvider, String query)
    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.