import { analyzeChatWebSearchIntent } from '../../../router/virtual-router/engine-selection/native-router-hotpath.js';
import { extractWebSearchSemanticsHintWithNative } from '../../../router/virtual-router/engine-selection/native-chat-process-web-search-intent-semantics.js';
export function extractWebSearchSemantics(semantics) {
    return extractWebSearchSemanticsHintWithNative(semantics);
}
export function detectWebSearchIntent(request) {
    const messages = Array.isArray(request.messages) ? request.messages : [];
    const analysis = analyzeChatWebSearchIntent(messages);
    return {
        hasIntent: analysis.hasIntent === true,
        googlePreferred: analysis.googlePreferred === true
    };
}
