Skip to content

Commit d83caa5

Browse files
committed
add "web" group
1 parent 1cfa48e commit d83caa5

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

pydantic_ai_slim/pydantic_ai/agent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ def to_web(self) -> Any:
14881488
14891489
@agent.tool
14901490
def get_weather(city: str) -> str:
1491-
return f"The weather in {city} is sunny"
1491+
return f'The weather in {city} is sunny'
14921492
14931493
app = agent.to_web()
14941494

pydantic_ai_slim/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ ui = ["starlette>=0.45.3"]
103103
a2a = ["fasta2a>=0.4.1"]
104104
# AG-UI
105105
ag-ui = ["ag-ui-protocol>=0.1.8", "starlette>=0.45.3"]
106+
# Web
107+
web = ["fastapi>=0.115.0", "httpx>=0.27.0"]
106108
# Retries
107109
retries = ["tenacity>=8.2.3"]
108110
# Temporal

uv.lock

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)