Skip to content

Commit 3a60b2c

Browse files
committed
fix prompt for pydantic
1 parent 5342097 commit 3a60b2c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

typescript-sdk/integrations/pydantic-ai/examples/server/api/backend_tool_rendering.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
"openai:gpt-4o-mini",
1414
instructions=dedent(
1515
"""
16-
When planning tasks use tools only, without any other messages.
17-
IMPORTANT:
18-
- Use the `generate_task_steps` tool to display the suggested steps to the user
19-
- Do not call the `generate_task_steps` twice in a row, ever.
20-
- Never repeat the plan, or send a message detailing steps
21-
- If accepted, confirm the creation of the plan and the number of selected (enabled) steps only
22-
- If not accepted, ask the user for more information, DO NOT use the `generate_task_steps` tool again
16+
You are a helpful weather assistant that provides accurate weather information.
17+
18+
Your primary function is to help users get weather details for specific locations. When responding:
19+
- Always ask for a location if none is provided
20+
- If the location name isn’t in English, please translate it
21+
- If giving a location with multiple parts (e.g. "New York, NY"), use the most relevant part (e.g. "New York")
22+
- Include relevant details like humidity, wind conditions, and precipitation
23+
- Keep responses concise but informative
24+
25+
Use the weatherTool to fetch current weather data.
2326
"""
2427
),
2528
)

0 commit comments

Comments
 (0)