Skip to content

Commit 9a76310

Browse files
committed
TR updates, first round
1 parent 775e4b6 commit 9a76310

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pydantic-ai/cats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
agent = Agent(
55
"google-gla:gemini-2.5-flash",
6-
system_prompt="Help users with cat breeds. Be concise.",
6+
instructions="Help users with cat breeds. Be concise.",
77
)
88

99

pydantic-ai/city.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ class CityInfo(BaseModel):
1313

1414
result = agent.run_sync("Tell me about Tokyo")
1515
print(result.output)
16-
17-
1816
print(f"{result.output.name}, {result.output.country}")
1917
print(f"Population: {result.output.population:,}")
2018
print(f"Fun fact: {result.output.fun_fact}")

pydantic-ai/first_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
agent = Agent(
44
"google-gla:gemini-2.5-flash",
5-
system_prompt="You're a Python Expert. Reply in one sentence.",
5+
instructions="You're a Python Expert. Reply in one sentence.",
66
)
77

88
result = agent.run_sync("What is Pydantic AI?")

pydantic-ai/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class UserSummary(BaseModel):
2424
"google-gla:gemini-2.5-flash",
2525
output_type=UserSummary,
2626
deps_type=UserDatabase,
27-
system_prompt=(
27+
instructions=(
2828
"You retrieve user information from an external database. "
2929
"Use the available tools to gather user info, "
3030
"then return a structured summary."

0 commit comments

Comments
 (0)