TaskInfo
Represents an immutable snapshot of task identity and status, commonly used in filter functions for get_active_tasks(filter=...).
Properties:
Property | Type | Description |
|---|---|---|
|
| Task instance trace identifier |
|
| Business identifier for tasks of the same type |
|
| Task type |
|
| Task group |
|
| Task status, see "Tasks and Subscriptions / TaskStatus" |
TaskInfo
Signature:
TaskInfo(
trace_id: str,
task_id: str,
type: str,
group: str,
status: TaskStatus,
)
Description:
Construct a TaskInfo instance. This type is an immutable dataclass, typically not constructed directly by application code.
Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
|
| Yes | Task instance trace identifier |
|
| Yes | Business identifier for tasks of the same type |
|
| Yes | Task type |
|
| Yes | Task group |
|
| Yes | Task status, see "Tasks and Subscriptions / TaskStatus" |
Returns:
TaskInfo instance.
Raises:
None.
The values for group and type are as follows:
|
| Description |
|---|---|---|
|
| Execute preset action |
|
| Get up |
|
| Replay hand-guided trajectory |
|
| Play local audio file |
|
| Play limited PCM audio data in memory |
|
| Play continuously writable PCM audio stream |
|
| Speech recognition stream |
|
| Speech chat |