BackgroundTaskReport constructor

BackgroundTaskReport({
  1. required String taskId,
  2. String? agent,
  3. String? name,
  4. required String status,
  5. String? response,
  6. List<AgentDelegationArtifact>? artifacts,
  7. String? error,
})

Implementation

BackgroundTaskReport({
  required String taskId,
  String? agent,
  String? name,
  required String status,
  String? response,
  List<AgentDelegationArtifact>? artifacts,
  String? error,
}) {
  _json = {
    'taskId': taskId,
    'agent': ?agent,
    'name': ?name,
    'status': status,
    'response': ?response,
    'artifacts': ?artifacts?.map((e) => e.toJson()).toList(),
    'error': ?error,
  };
}