File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pydantic_ai_slim/pydantic_ai Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1782,8 +1782,9 @@ async def run_mcp_servers(
1782
1782
1783
1783
def to_ag_ui (
1784
1784
self ,
1785
- * ,
1786
1785
# Adapter parameters.
1786
+ path : str = '/' ,
1787
+ * ,
1787
1788
tool_prefix : str = '' ,
1788
1789
logger : logging .Logger | None = None ,
1789
1790
# Agent.iter parameters
@@ -1804,6 +1805,7 @@ def to_ag_ui(
1804
1805
1805
1806
Args:
1806
1807
logger: Optional logger to use for the adapter.
1808
+ path: Path to expose the agent at, defaults to the root path.
1807
1809
tool_prefix: Optional prefix to add to tool names in the AG-UI.
1808
1810
1809
1811
output_type: Custom output type to use for this run, `output_type` may only be used if the agent has no
@@ -1829,6 +1831,7 @@ def to_ag_ui(
1829
1831
1830
1832
return agent_to_ag_ui (
1831
1833
agent = self ,
1834
+ path = path ,
1832
1835
tool_prefix = tool_prefix ,
1833
1836
logger = logger ,
1834
1837
# Agent.iter parameters
You can’t perform that action at this time.
0 commit comments