Skip to content

Commit 8dfac7f

Browse files
authored
fix: update chat samples (#437)
1 parent abd24ef commit 8dfac7f

28 files changed

Lines changed: 1287 additions & 662 deletions

samples/chat-agent/.agent/CLI_REFERENCE.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ uv run uipath init --infer-bindings
5959
| `--input-file` | value | `Sentinel.UNSET` | Alias for '-f/--file' arguments |
6060
| `--output-file` | value | `Sentinel.UNSET` | File path where the output will be written |
6161
| `--trace-file` | value | `Sentinel.UNSET` | File path where the trace spans will be written (JSON Lines format) |
62+
| `--state-file` | value | `Sentinel.UNSET` | File path where the state file is stored for persisting execution state. If not provided, a temporary file will be used. |
6263
| `--debug` | flag | false | Enable debugging with debugpy. The process will wait for a debugger to attach. |
6364
| `--debug-port` | value | `5678` | Port for the debug server (default: 5678) |
65+
| `--keep-state-file` | flag | false | Keep the temporary state file even when not resuming and no job id is provided |
6466

6567
**Usage Examples:**
6668

@@ -98,6 +100,11 @@ uv run uipath run --resume
98100
no_report: Do not report the evaluation results
99101
enable_mocker_cache: Enable caching for LLM mocker responses
100102
report_coverage: Report evaluation coverage
103+
model_settings_id: Model settings ID to override agent settings
104+
trace_file: File path where traces will be written in JSONL format
105+
max_llm_concurrency: Maximum concurrent LLM requests
106+
input_overrides: Input field overrides mapping (direct field override with deep merge)
107+
resume: Resume execution from a previous suspended state
101108

102109

103110
**Arguments:**
@@ -117,6 +124,10 @@ uv run uipath run --resume
117124
| `--output-file` | value | `Sentinel.UNSET` | File path where the output will be written |
118125
| `--enable-mocker-cache` | flag | false | Enable caching for LLM mocker responses |
119126
| `--report-coverage` | flag | false | Report evaluation coverage |
127+
| `--model-settings-id` | value | `"default"` | Model settings ID from evaluation set to override agent settings (default: 'default') |
128+
| `--trace-file` | value | `Sentinel.UNSET` | File path where traces will be written in JSONL format |
129+
| `--max-llm-concurrency` | value | `20` | Maximum concurrent LLM requests (default: 20) |
130+
| `--resume` | flag | false | Resume execution from a previous suspended state |
120131

121132
**Usage Examples:**
122133

@@ -223,6 +234,53 @@ The `uipath.json` file is automatically generated by `uipath init` and defines y
223234

224235
The UiPath CLI provides commands for interacting with UiPath platform services. These commands allow you to manage buckets, assets, jobs, and other resources.
225236

237+
### `uipath assets`
238+
239+
Manage UiPath assets.
240+
241+
Assets are key-value pairs that store configuration data, credentials,
242+
and settings used by automation processes.
243+
244+
\b
245+
Examples:
246+
# List all assets in a folder
247+
uipath assets list --folder-path "Shared"
248+
249+
# List with filter
250+
uipath assets list --filter "ValueType eq 'Text'"
251+
252+
# List with ordering
253+
uipath assets list --orderby "Name asc"
254+
255+
256+
**Subcommands:**
257+
258+
**`uipath assets list`**
259+
260+
List assets in a folder.
261+
262+
\b
263+
Examples:
264+
uipath assets list
265+
uipath assets list --folder-path "Shared"
266+
uipath assets list --filter "ValueType eq 'Text'"
267+
uipath assets list --filter "Name eq 'MyAsset'"
268+
uipath assets list --orderby "Name asc"
269+
uipath assets list --top 50 --skip 100
270+
271+
272+
Options:
273+
- `--filter`: OData $filter expression (default: `Sentinel.UNSET`)
274+
- `--orderby`: OData $orderby expression (default: `Sentinel.UNSET`)
275+
- `--top`: Maximum number of items to return (default: 100, max: 1000) (default: `100`)
276+
- `--skip`: Number of items to skip (default: `0`)
277+
- `--folder-path`: Folder path (e.g., "Shared"). Can also be set via UIPATH_FOLDER_PATH environment variable. (default: `Sentinel.UNSET`)
278+
- `--folder-key`: Folder key (UUID) (default: `Sentinel.UNSET`)
279+
- `--format`: Output format (overrides global) (default: `Sentinel.UNSET`)
280+
- `--output`, `-o`: Output file (overrides global) (default: `Sentinel.UNSET`)
281+
282+
---
283+
226284
### `uipath buckets`
227285

228286
Manage UiPath storage buckets and files.

samples/chat-agent/.agent/REQUIRED_STRUCTURE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Unless the user explicitly requests a different LLM provider, always use `UiPath
3232
```python
3333
from uipath_langchain.chat import UiPathChat
3434

35-
llm = UiPathChat(model="gpt-4o-2024-08-06", temperature=0.7)
35+
llm = UiPathChat(model="gpt-4.1-mini-2025-04-14", temperature=0.7)
3636
```
3737

3838
**Alternative LLMs** (only use if explicitly requested):
@@ -62,7 +62,7 @@ class Output(BaseModel):
6262
result: str
6363

6464
# 2. Initialize UiPathChat LLM
65-
llm = UiPathChat(model="gpt-4o-2024-08-06", temperature=0.7)
65+
llm = UiPathChat(model="gpt-4.1-mini-2025-04-14", temperature=0.7)
6666

6767
# 3. Define agent nodes (async functions)
6868
async def process_node(state: State) -> State:

0 commit comments

Comments
 (0)