AiRun constructor

AiRun({
  1. required String id,
  2. required String agentName,
  3. required AiGoal goal,
  4. String? userId,
  5. String? tenantId,
  6. String? threadId,
  7. AiRunStatus status = AiRunStatus.pending,
  8. Map<String, dynamic>? state,
  9. List<AiEvent>? events,
  10. Map<String, dynamic>? output,
})

Implementation

AiRun({
  required this.id,
  required this.agentName,
  required this.goal,
  this.userId,
  this.tenantId,
  this.threadId,
  this.status = AiRunStatus.pending,
  Map<String, dynamic>? state,
  List<AiEvent>? events,
  this.output,
})  : state = Map<String, dynamic>.from(state ?? const {}),
      events = List<AiEvent>.from(events ?? const []);