mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
refac
This commit is contained in:
parent
b794d61626
commit
b1e8c7d2aa
1 changed files with 3 additions and 2 deletions
|
|
@ -2358,8 +2358,9 @@ async def tasks(
|
|||
Use this whenever a request involves multiple steps or could take
|
||||
significant effort. Call to set the full list, then call again
|
||||
with overwrite=false after completing each task to mark it
|
||||
completed. Each task has an id, content, and status (pending,
|
||||
in_progress, completed, cancelled).
|
||||
completed. Do not leave tasks in_progress when the work is done.
|
||||
Each task has an id, content, and status (pending, in_progress,
|
||||
completed, cancelled).
|
||||
|
||||
:param tasks: Optional list of task items. Each item: id (string), content (string, required for new tasks), status (pending|in_progress|completed|cancelled). Leave empty to fetch without modifying.
|
||||
:param overwrite: If true (default), replaces the entire task list. If false, updates/adds tasks by id while keeping existing ones.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue