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 @@ -1847,8 +1847,9 @@ async def run_mcp_servers(
1847
1847
1848
1848
def to_ag_ui (
1849
1849
self ,
1850
- * ,
1851
1850
# Adapter parameters.
1851
+ path : str = '/' ,
1852
+ * ,
1852
1853
tool_prefix : str = '' ,
1853
1854
logger : logging .Logger | None = None ,
1854
1855
# Agent.iter parameters
@@ -1869,6 +1870,7 @@ def to_ag_ui(
1869
1870
1870
1871
Args:
1871
1872
logger: Optional logger to use for the adapter.
1873
+ path: Path to expose the agent at, defaults to the root path.
1872
1874
tool_prefix: Optional prefix to add to tool names in the AG-UI.
1873
1875
1874
1876
output_type: Custom output type to use for this run, `output_type` may only be used if the agent has no
@@ -1894,6 +1896,7 @@ def to_ag_ui(
1894
1896
1895
1897
return agent_to_ag_ui (
1896
1898
agent = self ,
1899
+ path = path ,
1897
1900
tool_prefix = tool_prefix ,
1898
1901
logger = logger ,
1899
1902
# Agent.iter parameters
You can’t perform that action at this time.
0 commit comments