pub type TaskInfo = TaskObject;👎Deprecated:
Use TaskObject instead
Expand description
Backwards-compatible alias for TaskObject
Aliased Type§
pub struct TaskInfo {
pub task_id: String,
pub status: TaskStatus,
pub status_message: Option<String>,
pub created_at: String,
pub last_updated_at: String,
pub ttl: Option<u64>,
pub poll_interval: Option<u64>,
pub result: Option<CallToolResult>,
pub error: Option<JsonRpcError>,
pub meta: Option<Value>,
}Fields§
§task_id: StringUnique task identifier
status: TaskStatusCurrent task status
status_message: Option<String>Human-readable status message
created_at: StringISO 8601 timestamp when the task was created
last_updated_at: StringISO 8601 timestamp when the task was last updated
ttl: Option<u64>Time-to-live in milliseconds, null for unlimited
poll_interval: Option<u64>Suggested polling interval in milliseconds
result: Option<CallToolResult>SEP-2663 DetailedTask payload for completed tasks: exactly the
result the synchronous request would have returned. Absent for
non-terminal and non-completed statuses.
error: Option<JsonRpcError>SEP-2663 DetailedTask payload for failed tasks: the JSON-RPC error
object describing the execution failure. Absent otherwise.
meta: Option<Value>Optional protocol-level metadata