From c4764b00754c0562315f93a5010b4a4fa86cffa6 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Thu, 13 Nov 2025 12:30:07 +0530 Subject: [PATCH] feat(voice-call): send message with selected tool IDs --- lib/features/chat/services/voice_call_service.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/features/chat/services/voice_call_service.dart b/lib/features/chat/services/voice_call_service.dart index fa32b90..8222e27 100644 --- a/lib/features/chat/services/voice_call_service.dart +++ b/lib/features/chat/services/voice_call_service.dart @@ -14,6 +14,7 @@ import 'text_to_speech_service.dart'; import '../../../core/services/settings_service.dart'; import 'voice_input_service.dart'; import 'voice_call_notification_service.dart'; +import '../../tools/providers/tools_providers.dart'; part 'voice_call_service.g.dart'; @@ -293,8 +294,11 @@ class VoiceCallService { _updateState(VoiceCallState.processing); _accumulatedResponse = ''; // Reset response accumulator - // Send message using the existing chat infrastructure - sendMessageFromService(_ref, text, null); + // Get the user's selected tool IDs to pass to the API + final selectedToolIds = _ref.read(selectedToolIdsProvider); + + // Send message using the existing chat infrastructure with tool IDs + sendMessageFromService(_ref, text, null, selectedToolIds); } catch (e) { _updateState(VoiceCallState.error); rethrow;