"""
Backward-compatibility shim.

All logic has moved to ``app.services.talkback``.
Importing from this module still works exactly as before.
"""
from app.services.talkback import *  # noqa: F401, F403
from app.services.talkback import (  # noqa: F401
    # Public API consumed by app/routes/askme.py
    run_talkback_pipeline,
    _resolve_talkback_effective_session_key,
    talkback_client_session_key_is_empty,
    # Lazily imported by app/services/talkback_llm.py inside a function body
    _looks_like_clarification_reply,
    # Re-export everything else so any direct import still resolves
    NodeStatus,
    TalkbackTrace,
    TalkbackTraceStep,
    TalkbackState,
    ResolveAuthorizedAgentIds,
    GetAskmeService,
    RunInThreadpool,
    ExecuteTalkback,
    _coerce_route_handler_result_to_dict,
    _parse_sql_preview_for_meta,
    _df_row_count_and_columns,
    _infer_datasource_from_details,
    _collect_api_names,
    _ordinal_to_index,
    _safe_str,
    _extract_talkback_options,
    _parse_df_input_light,
    _clone_ask_request,
    _ensure_web_prefix_for_search_web_request,
    _dispatch_agents_for_talkback_meta,
    _agent_display_labels,
    build_talkback_answer_meta,
    _rewrite_context_should_omit_assistant_answer,
    _enriched_answer_for_context,
    _turn_for_llm_context,
    _history_last_turn_expected_agent_disambiguation_reply,
    OUT_OF_CONTEXT_CLEAR_CONFIRM_CONSENT_TYPE,
    _reply_means_out_of_context_proceed,
    _reply_means_use_current_context_agents,
    _merge_original_question_with_clarification_selection,
    _last_turn_is_clarification_response_matching_question,
    _derive_talkback_db_session_key,
    _agent_scope_list_from_session,
    _resolve_clarification_via_persisted_agent_scope,
    _filter_agent_ids_by_datasource,
    _infer_talkback_datasource_from_dispatch_and_intent,
    _resolve_talkback_file_agent_id,
    _state_snapshot,
    _print_node,
    _build_intent_routing_question,
    _derive_request_id,
    _derive_request_id_for_direct,
    BaseNode,
    _TalkbackStop,
    _UQL_CACHE_NODE_NAME,
    _PERSIST_TURN_NODE_NAME,
    _UserQuestionLogCacheHitNode,
    _ResolveAgentsNode,
    _NormalizeDatasourceNode,
    _FileCommandDetectNode,
    _LoadSessionNode,
    _ContextRelevanceNode,
    _PreparePriorQuestionsNode,
    _ContextRewriteForRoutingNode,
    _IntentRoutingNode,
    _DispatchDecisionNode,
    LLM_PRIOR_DF_CONSENT_MESSAGE,
    LLM_PRIOR_DF_MISSING_DATA_MESSAGE,
    _PriorDfConsentNode,
    _BroadScopeProcessingWarningNode,
    _ClarificationShortCircuitNode,
    _ExecuteNode,
    _merge_mixed_intent_results,
    _PersistTurnNode,
    TalkbackPipeline,
    _run_talkback_prior_df_search_web_direct,
)
