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