createIdleNotification function
Creates an idle notification message to send to the team leader.
Implementation
IdleNotificationMessage createIdleNotification(
String agentId, {
String? idleReason,
String? summary,
String? completedTaskId,
String? completedStatus,
String? failureReason,
}) {
return IdleNotificationMessage(
from: agentId,
timestamp: DateTime.now().toUtc().toIso8601String(),
idleReason: idleReason,
summary: summary,
completedTaskId: completedTaskId,
completedStatus: completedStatus,
failureReason: failureReason,
);
}