Skip to content

Commit 1af1b4a

Browse files
wuliang229copybara-github
authored andcommitted
chore: Remove adk_additional_tools and GetTimezone tool
These are not used in the example Co-authored-by: Liang Wu <wuliang@google.com> PiperOrigin-RevId: 900902777
1 parent e12b0af commit 1af1b4a

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

  • contributing/samples/local_environment_skill

contributing/samples/local_environment_skill/agent.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,7 @@
1515

1616
from google.adk import Agent
1717
from google.adk.environment import LocalEnvironment
18-
from google.adk.tools.base_tool import BaseTool
1918
from google.adk.tools.environment import EnvironmentToolset
20-
from google.genai import types
21-
22-
23-
class GetTimezoneTool(BaseTool):
24-
"""A tool to get the timezone for a given location."""
25-
26-
def __init__(self):
27-
super().__init__(
28-
name="get_timezone",
29-
description="Returns the timezone for a given location.",
30-
)
31-
32-
def _get_declaration(self) -> types.FunctionDeclaration | None:
33-
return types.FunctionDeclaration(
34-
name=self.name,
35-
description=self.description,
36-
parameters_json_schema={
37-
"type": "object",
38-
"properties": {
39-
"location": {
40-
"type": "string",
41-
"description": "The location to get the timezone for.",
42-
},
43-
},
44-
"required": ["location"],
45-
},
46-
)
47-
48-
async def run_async(self, *, args: dict, tool_context) -> str:
49-
return f"The timezone for {args['location']} is UTC+00:00."
5019

5120

5221
def get_wind_speed(location: str) -> str:
@@ -89,7 +58,6 @@ def get_wind_speed(location: str) -> str:
8958
working_dir=pathlib.Path(__file__).parent
9059
),
9160
),
92-
GetTimezoneTool(),
9361
get_wind_speed,
9462
],
9563
)

contributing/samples/local_environment_skill/skills/weather-skill/SKILL.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
22
name: weather-skill
33
description: A skill that provides weather information based on reference data.
4-
metadata:
5-
adk_additional_tools:
6-
- get_wind_speed
74
---
85

96
Step 1: Check 'references/weather_info.md' for the current weather.

0 commit comments

Comments
 (0)