Package-level declarations
Types
Request body for cancelling a task.
Response from a task cancellation request.
Status of a cancellation request.
Interface for task events with a known TaskEventType.
Response from a long-polling event request.
Raw JSON envelope for events as received from the server.
Response from an action submission request.
Status of an action submission.
Details about a task suspension waiting for user interaction.
Emitted when a user action has been successfully processed.
Request to submit a user action for a suspended task.
Represents a file attachment for a multipart task creation request.
Emitted when the task is cancelled.
Emitted when the task completes successfully.
Response from the server after a task is created.
Request body for starting a new task with JSON input.
Types of events that can be emitted during a task lifecycle.
Emitted when the task fails with an error.
Structured payload for TASK_FAILED events.
Emitted for general information or logging.
Emitted to provide updates on task progress.
Structured payload for TASK_PROGRESS events.
Emitted when the task starts execution.
Overall status of a task.
Emitted when the task enters a suspended state.
Categories of task suspensions as defined in the protocol.
Functions
Tries to parse the payload as TaskFailedPayload if the event type matches.
Tries to parse the payload as TaskProgressPayload if the event type matches.
Returns true if this event indicates the final state of the task.
Converts a RawTaskEventEnvelope to a typed TaskEvent.