File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed
Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 33
44agent = 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
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ class CityInfo(BaseModel):
1313
1414result = agent .run_sync ("Tell me about Tokyo" )
1515print (result .output )
16-
17-
1816print (f"{ result .output .name } , { result .output .country } " )
1917print (f"Population: { result .output .population :,} " )
2018print (f"Fun fact: { result .output .fun_fact } " )
Original file line number Diff line number Diff line change 22
33agent = 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
88result = agent .run_sync ("What is Pydantic AI?" )
Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments