Skip to content

Commit 092609e

Browse files
committed
style(samples): format agent.py with pyink
1 parent 3f7d1e0 commit 092609e

File tree

1 file changed

+10
-3
lines changed
  • contributing/samples/local_environment_skill

1 file changed

+10
-3
lines changed

contributing/samples/local_environment_skill/agent.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def get_wind_speed(location: str) -> str:
5454
return f"The wind speed in {location} is 10 mph."
5555

5656

57-
BASE_INSTRUCTION = "You are a helpful AI assistant that can use the local environment to execute commands and file I/O."
57+
BASE_INSTRUCTION = (
58+
"You are a helpful AI assistant that can use the local environment to"
59+
" execute commands and file I/O."
60+
)
5861

5962
SKILL_USAGE_INSTRUCTION = """\
6063
[SKILLS ACCESS]
@@ -76,11 +79,15 @@ def get_wind_speed(location: str) -> str:
7679
root_agent = Agent(
7780
model="gemini-2.5-pro",
7881
name="local_environment_skill_agent",
79-
description="An agent that uses local environment tools to load and use skills.",
82+
description=(
83+
"An agent that uses local environment tools to load and use skills."
84+
),
8085
instruction=f"{BASE_INSTRUCTION}\n\n{SKILL_USAGE_INSTRUCTION}",
8186
tools=[
8287
EnvironmentToolset(
83-
environment=LocalEnvironment(working_dir=pathlib.Path(__file__).parent),
88+
environment=LocalEnvironment(
89+
working_dir=pathlib.Path(__file__).parent
90+
),
8491
),
8592
GetTimezoneTool(),
8693
get_wind_speed,

0 commit comments

Comments
 (0)