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 @@ -1858,8 +1858,9 @@ async def run_mcp_servers(
1858
1858
1859
1859
def to_ag_ui (
1860
1860
self ,
1861
- * ,
1862
1861
# Adapter parameters.
1862
+ path : str = '/' ,
1863
+ * ,
1863
1864
tool_prefix : str = '' ,
1864
1865
logger : logging .Logger | None = None ,
1865
1866
# Agent.iter parameters
@@ -1880,6 +1881,7 @@ def to_ag_ui(
1880
1881
1881
1882
Args:
1882
1883
logger: Optional logger to use for the adapter.
1884
+ path: Path to expose the agent at, defaults to the root path.
1883
1885
tool_prefix: Optional prefix to add to tool names in the AG-UI.
1884
1886
1885
1887
output_type: Custom output type to use for this run, `output_type` may only be used if the agent has no
@@ -1905,6 +1907,7 @@ def to_ag_ui(
1905
1907
1906
1908
return agent_to_ag_ui (
1907
1909
agent = self ,
1910
+ path = path ,
1908
1911
tool_prefix = tool_prefix ,
1909
1912
logger = logger ,
1910
1913
# Agent.iter parameters
You can’t perform that action at this time.
0 commit comments