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 @@ -1878,8 +1878,9 @@ async def run_mcp_servers(
1878
1878
1879
1879
def to_ag_ui (
1880
1880
self ,
1881
- * ,
1882
1881
# Adapter parameters.
1882
+ path : str = '/' ,
1883
+ * ,
1883
1884
tool_prefix : str = '' ,
1884
1885
logger : logging .Logger | None = None ,
1885
1886
# Agent.iter parameters
@@ -1900,6 +1901,7 @@ def to_ag_ui(
1900
1901
1901
1902
Args:
1902
1903
logger: Optional logger to use for the adapter.
1904
+ path: Path to expose the agent at, defaults to the root path.
1903
1905
tool_prefix: Optional prefix to add to tool names in the AG-UI.
1904
1906
1905
1907
output_type: Custom output type to use for this run, `output_type` may only be used if the agent has no
@@ -1925,6 +1927,7 @@ def to_ag_ui(
1925
1927
1926
1928
return agent_to_ag_ui (
1927
1929
agent = self ,
1930
+ path = path ,
1928
1931
tool_prefix = tool_prefix ,
1929
1932
logger = logger ,
1930
1933
# Agent.iter parameters
You can’t perform that action at this time.
0 commit comments