xworkmate-app/lib/app/app_controller_desktop_single_agent.dart
2026-04-06 16:01:27 +08:00

30 lines
984 B
Dart

import 'app_controller_desktop_core.dart';
import 'app_controller_desktop_single_agent_ai_gateway.dart';
import 'app_controller_desktop_single_agent_go_task_flow.dart';
import '../runtime/runtime_models.dart';
extension AppControllerDesktopSingleAgent on AppController {
Future<void> sendSingleAgentMessageInternal(
String message, {
required String thinking,
required List<GatewayChatAttachmentPayload> attachments,
required List<CollaborationAttachment> localAttachments,
}) {
return sendSingleAgentMessageDesktopGoTaskFlowInternal(
this,
message,
thinking: thinking,
attachments: attachments,
localAttachments: localAttachments,
);
}
Future<void> abortAiGatewayRunInternal(String sessionKey) {
return abortAiGatewaySingleAgentRunDesktopInternal(this, sessionKey);
}
GatewayChatMessage assistantErrorMessageInternal(String text) {
return assistantErrorMessageSingleAgentDesktopInternal(this, text);
}
}