Skip to content

Conversation

copybara-service[bot]
Copy link

feat: Introduce ExampleTool for few-shot examples in LlmAgent

This change adds a new ExampleTool to the ADK, allowing users to inject few-shot examples into the LLM request's system instructions. Examples can be provided inline within the agent's YAML configuration or by referencing a BaseExampleProvider instance. This tool enhances the ability to guide the LLM's behavior by providing contextual examples. The CL includes the tool implementation, updates to the configuration handling, new example agent configurations, and comprehensive unit tests for the new functionality.

@copybara-service copybara-service bot force-pushed the test_803739296 branch 8 times, most recently from 7d3c11c to ac59310 Compare September 9, 2025 19:06
This change adds a new ExampleTool to the ADK, allowing users to inject few-shot examples into the LLM request's system instructions. Examples can be provided inline within the agent's YAML configuration or by referencing a BaseExampleProvider instance. This tool enhances the ability to guide the LLM's behavior by providing contextual examples. The CL includes the tool implementation, updates to the configuration handling, new example agent configurations, and comprehensive unit tests for the new functionality.

PiperOrigin-RevId: 805017868
@copybara-service copybara-service bot merged commit 2162f89 into main Sep 9, 2025
@copybara-service copybara-service bot deleted the test_803739296 branch September 9, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant