task property

TaskMetadata? get task

If specified, the caller is requesting task-augmented execution for this request. The request will return a CreateTaskResult immediately, and the actual result can be retrieved later via tasks/result.

Task augmentation is subject to capability negotiation - receivers MUST declare support for task augmentation of specific request types in their capabilities.

Implementation

TaskMetadata? get task => $optional('task', $model(TaskMetadata.fromJson));