xworkmate-app/lib/app/app_controller_openclaw_task_queue.dart
2026-05-28 17:05:07 +08:00

50 lines
1.5 KiB
Dart

import '../runtime/go_task_service_client.dart';
import '../runtime/runtime_models.dart';
const int openClawGatewayMaxActiveTasksInternal = 5;
const int openClawGatewayMaxQueuedTasksInternal = 20;
class OpenClawGatewayQueuedTurnInternal {
OpenClawGatewayQueuedTurnInternal({
required this.queueId,
required this.sessionKey,
required this.target,
required this.provider,
required this.message,
required this.thinking,
required this.selectedSkillLabels,
required this.attachments,
required this.localAttachments,
required this.workingDirectory,
required this.localWorkingDirectory,
required this.remoteWorkingDirectoryHint,
required this.model,
required this.routing,
required this.agentId,
required this.metadata,
required this.resumeSessionHint,
this.appendUserTurn = true,
});
final String queueId;
final String sessionKey;
final AssistantExecutionTarget target;
final SingleAgentProvider provider;
final String message;
final String thinking;
final List<String> selectedSkillLabels;
final List<GatewayChatAttachmentPayload> attachments;
final List<CollaborationAttachment> localAttachments;
final String workingDirectory;
final String localWorkingDirectory;
final String remoteWorkingDirectoryHint;
final String model;
final ExternalCodeAgentAcpRoutingConfig routing;
final String agentId;
final Map<String, dynamic> metadata;
final bool resumeSessionHint;
final bool appendUserTurn;
bool cancelled = false;
}