Skip to content

feat(samples): add sample for skill activation via environment tools#5218

Open
Jacksunwei wants to merge 3 commits intomainfrom
samples/local_env_skill
Open

feat(samples): add sample for skill activation via environment tools#5218
Jacksunwei wants to merge 3 commits intomainfrom
samples/local_env_skill

Conversation

@Jacksunwei
Copy link
Copy Markdown
Collaborator

Link to Issue or Description of Change

1. Link to an existing issue (if applicable):
(None, this is a new sample)

2. Or, if no issue exists, describe the change:

Problem:
There was no sample demonstrating how to use LocalEnvironment with EnvironmentToolset for manual skill activation (discovering and loading skills by reading files) instead of using the pre-configured SkillToolset.

Solution:
Created a new sample local_environment_skill that demonstrates this pattern:

  • Agent is instructed to find skills in skills/ folder using the find command.
  • Agent loads skills by reading SKILL.md using the ReadFile tool.
  • Added a weather skill sample and reference data to demonstrate usage.

Testing Plan

Unit Tests:
(This is a sample/demonstration, so no new unit tests were added for the framework itself.)

Manual End-to-End (E2E) Tests:

  1. Ran adk web contributing/samples.
  2. Interacted with the agent in the Web UI.
  3. Prompt: "Can you check the weather in Sunnyvale?"
  4. Verified that the agent successfully used find to locate the skill, read SKILL.md, read weather_info.md, and answered correctly.

Checklist

  • I have read the CONTRIBUTING.md document.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have manually tested my changes end-to-end.

@adk-bot adk-bot added the tools [Component] This issue is related to tools label Apr 8, 2026
@adk-bot
Copy link
Copy Markdown
Collaborator

adk-bot commented Apr 8, 2026

Response from ADK Triaging Agent

Hello @Jacksunwei, thank you for creating this PR!

It seems like the pyink-check is failing. Could you please run ./autoformat.sh to fix the code formatting?

This will help to get your PR merged faster. Thanks!

@Jacksunwei Jacksunwei force-pushed the samples/local_env_skill branch from c6535c8 to 092609e Compare April 8, 2026 23:56
@Jacksunwei Jacksunwei requested review from wukath and wuliang229 April 9, 2026 00:00
@Jacksunwei Jacksunwei added the ready to pull [Status] This PR is ready to be imported back to Google label Apr 9, 2026
@rohityan rohityan assigned rohityan and unassigned rohityan Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull [Status] This PR is ready to be imported back to Google tools [Component] This issue is related to tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants