feat: Introduce a "Skills" framework for ADK agents#1055
Open
copybara-service[bot] wants to merge 1 commit intomainfrom
Open
feat: Introduce a "Skills" framework for ADK agents#1055copybara-service[bot] wants to merge 1 commit intomainfrom
copybara-service[bot] wants to merge 1 commit intomainfrom
Conversation
d61449c to
8d710bb
Compare
This change adds a new "Skills" framework to the ADK, enabling agents to discover, load, and execute modular skills. Skills are defined by a `SKILL.md` file containing frontmatter and instructions, and can include additional resources like references, assets, and scripts.
Key components include:
- `SkillLoader`: An interface with implementations for loading skills from local files (`LocalSkillLoader`) and Google Cloud Storage (`GcsSkillLoader`).
- `Frontmatter`, `Resources`, `Script`, and `Skill`: Data models representing the structure of a skill.
- `SkillToolset`: A new `BaseToolset` that provides tools for interacting with skills:
- `list_skills`: Lists available skills.
- `load_skill`: Loads the main instructions of a skill.
- `load_skill_resource`: Loads files from a skill's `references/`, `assets/`, or `scripts/` directories.
- `run_skill_script`: Executes scripts within a skill's `scripts/` directory using a provided `BaseCodeExecutor`.
- The `SkillToolset` also adds default system instructions to guide the LLM on how to use skills.
- The `LlmAgent` and `BaseLlmFlow` are updated to properly integrate the `SkillToolset`'s request processing.
PiperOrigin-RevId: 885332438
8d710bb to
6216247
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Introduce a "Skills" framework for ADK agents
This change adds a new "Skills" framework to the ADK, enabling agents to discover, load, and execute modular skills. Skills are defined by a
SKILL.mdfile containing frontmatter and instructions, and can include additional resources like references, assets, and scripts.Key components include:
SkillLoader: An interface with implementations for loading skills from local files (LocalSkillLoader) and Google Cloud Storage (GcsSkillLoader).Frontmatter,Resources,Script, andSkill: Data models representing the structure of a skill.SkillToolset: A newBaseToolsetthat provides tools for interacting with skills:list_skills: Lists available skills.load_skill: Loads the main instructions of a skill.load_skill_resource: Loads files from a skill'sreferences/,assets/, orscripts/directories.run_skill_script: Executes scripts within a skill'sscripts/directory using a providedBaseCodeExecutor.SkillToolsetalso adds default system instructions to guide the LLM on how to use skills.LlmAgentandBaseLlmFloware updated to properly integrate theSkillToolset's request processing.