You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 195fac3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): warn instead of erroring when several frameworks are installed
Environments with more than one agent framework package scaffolded fine
before `--type` existed — the first discovered integration claimed the
project. Turning that into an error would be a breaking change, so the
old outcome stays: `uipath new` warns, names all the installed
frameworks and the one it picked, and scaffolds with the first
discovered. `--agent-framework` remains the way to choose deliberately.
The pick is dispatched to that framework's middleware directly, so the
warning always names the integration that actually scaffolds.
Discovery order is the entry-point order (a filesystem accident, stable
per environment); listings shown to the user stay sorted.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| none | coded function project | error: install an agent framework |
85
85
| one | that framework's coded agent project | that framework's coded agent project |
86
-
| several |error: pick one with `--agent-framework`| error: pick one with `--agent-framework`|
86
+
| several |warns, scaffolds with the first discovered | warns, scaffolds with the first discovered|
87
87
88
-
With one framework installed there is nothing to choose, so `uipath new` uses it. With several, it cannot tell which you meant and asks you to name one:
88
+
With one framework installed there is nothing to choose, so `uipath new` uses it. With several, it warns and scaffolds with the first one discovered — pass `--agent-framework`to choose deliberately:
89
89
90
90
```shell
91
91
uipath new my-agent --type agent --agent-framework uipath-langchain
Copy file name to clipboardExpand all lines: packages/uipath/docs/core/agents.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The example below uses LangChain. Swap `uipath-langchain` for the framework of y
95
95
uipath new agent --type agent
96
96
```
97
97
98
-
With several framework integrations installed in the same environment, name the one to scaffold with:
98
+
With several framework integrations installed in the same environment, `uipath new` warns and uses the first one discovered; name the one you want instead with:
99
99
100
100
```shell
101
101
uipath new agent --type agent --agent-framework uipath-langchain
Copy file name to clipboardExpand all lines: packages/uipath/docs/core/studio_web.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ Selected tenant: Tenant1
224
224
That's it, your agent should now be visible in Studio Web.
225
225
226
226
/// info
227
-
`uipath new` defaults to `--type auto`, which lets the installed framework integration claim the scaffold. Pass `--type agent` to require an agent project — it fails rather than creating a function project when no framework is installed. With several integrations installed, name the one to scaffold with: `uipath new agent --type agent --agent-framework uipath-langchain`.
227
+
`uipath new` defaults to `--type auto`, which lets the installed framework integration claim the scaffold. Pass `--type agent` to require an agent project — it fails rather than creating a function project when no framework is installed. With several integrations installed, `uipath new` warns and uses the first one discovered; pick explicitly with `uipath new agent --type agent --agent-framework uipath-langchain`.
0 commit comments