Skip to main content

TaskInfo

Represents an immutable snapshot of task identity and status, commonly used in filter functions for get_active_tasks(filter=...).

Properties:

Property

Type

Description

trace_id

str

Task instance trace identifier

task_id

str

Business identifier for tasks of the same type

type

str

Task type

group

str

Task group

status

TaskStatus

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

trace_id

str

Yes

Task instance trace identifier

task_id

str

Yes

Business identifier for tasks of the same type

type

str

Yes

Task type

group

str

Yes

Task group

status

TaskStatus

Yes

Task status, see "Tasks and Subscriptions / TaskStatus"

Returns:

TaskInfo instance.

Raises:

None.

The values for group and type are as follows:

group

type

Description

"motion"

"action"

Execute preset action

"motion"

"get_up"

Get up

"motion"

"trajectory_replay"

Replay hand-guided trajectory

"audio"

"play_audio_file"

Play local audio file

"audio"

"play_audio_buffer"

Play limited PCM audio data in memory

"audio"

"play_audio_stream"

Play continuously writable PCM audio stream

"audio"

"speech_stream_recognize"

Speech recognition stream

"audio"

"speech_chat"

Speech chat