ReadonlyconversationObservable of conversation IDs that have 1+ active tasks Use this for quick lookups in conversation lists
ReadonlytaskObservable of the count of active tasks
Readonlytasks$Observable of all active tasks as an array
ReadonlytasksObservable of tasks grouped by conversation ID Returns Map<conversationId, ActiveTask[]>
Set the metadata provider this service should use. When unset, falls back to Metadata.Provider.
Add a new active task
Task details (without id and startTime)
The generated task ID
Clear all active tasks
Get an active task by its agent run ID
The AIAgentRun ID
The task if found, undefined otherwise
Get an active task by its conversation detail ID
The conversation detail ID
The task if found, undefined otherwise
Remove an active task
The task ID to remove
Remove a task by its agent run ID
The AIAgentRun ID
true if task was found and removed, false otherwise
Restore active tasks from database by querying running agent runs. Call this on app initialization to restore state after browser refresh.
The current user to filter agent runs by
Update the status of an active task
The task ID
The new status text
Update the status of a task by its conversation detail ID
The conversation detail ID
The new status text
true if task was found and updated, false otherwise
Service for tracking active agent tasks across the application. Maintains a live list of running agents and their status.