Class ExampleTool

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

public final class ExampleTool extends BaseTool
A tool that injects (few-shot) examples into the outgoing LLM request as system instructions.

Configuration (args) options for YAML:

  • examples: Either a fully-qualified reference to a BaseExampleProvider instance (e.g., com.example.MyExamples.INSTANCE) or a list of examples with fields input and output (array of messages).