Coverage for bot/byte_semantics.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-02-25 12:28 -0300

1from bot.byte_semantics_base import ( 

2 build_intro_reply, 

3 compact_message, 

4 format_chat_reply, 

5 is_current_events_prompt, 

6 is_follow_up_prompt, 

7 is_high_risk_current_events_prompt, 

8 is_intro_prompt, 

9 is_movie_fact_sheet_prompt, 

10 is_serious_technical_prompt, 

11 normalize_text_for_scene, 

12 parse_byte_prompt, 

13) 

14from bot.byte_semantics_constants import ( 

15 BYTE_HELP_MESSAGE, 

16 BYTE_INTRO_TEMPLATES, 

17 MAX_CHAT_MESSAGE_LENGTH, 

18 MULTIPART_SEPARATOR, 

19 QUALITY_SAFE_FALLBACK, 

20 SERIOUS_REPLY_MAX_LENGTH, 

21 SERIOUS_REPLY_MAX_LINES, 

22) 

23from bot.byte_semantics_current_events import ( 

24 build_current_events_safe_fallback_reply, 

25 build_server_time_anchor_instruction, 

26 build_verifiable_prompt, 

27 normalize_current_events_reply_contract, 

28) 

29from bot.byte_semantics_quality import ( 

30 build_adaptive_ai_instruction, 

31 build_anti_generic_contract_instruction, 

32 build_direct_answer_instruction, 

33 build_llm_enhanced_prompt, 

34 build_quality_prompt_script, 

35 build_quality_rewrite_prompt, 

36 build_research_priority_instruction, 

37 is_low_quality_answer, 

38) 

39from bot.byte_semantics_reply import ( 

40 build_movie_fact_sheet_query, 

41 extract_movie_title, 

42 extract_multi_reply_parts, 

43 split_text_for_chat, 

44) 

45 

46__all__ = [ 

47 "BYTE_HELP_MESSAGE", 

48 "BYTE_INTRO_TEMPLATES", 

49 "MAX_CHAT_MESSAGE_LENGTH", 

50 "MULTIPART_SEPARATOR", 

51 "QUALITY_SAFE_FALLBACK", 

52 "SERIOUS_REPLY_MAX_LENGTH", 

53 "SERIOUS_REPLY_MAX_LINES", 

54 "build_adaptive_ai_instruction", 

55 "build_anti_generic_contract_instruction", 

56 "build_current_events_safe_fallback_reply", 

57 "build_direct_answer_instruction", 

58 "build_intro_reply", 

59 "build_llm_enhanced_prompt", 

60 "build_movie_fact_sheet_query", 

61 "build_quality_prompt_script", 

62 "build_quality_rewrite_prompt", 

63 "build_research_priority_instruction", 

64 "build_server_time_anchor_instruction", 

65 "build_verifiable_prompt", 

66 "compact_message", 

67 "extract_movie_title", 

68 "extract_multi_reply_parts", 

69 "format_chat_reply", 

70 "is_current_events_prompt", 

71 "is_follow_up_prompt", 

72 "is_high_risk_current_events_prompt", 

73 "is_intro_prompt", 

74 "is_low_quality_answer", 

75 "is_movie_fact_sheet_prompt", 

76 "is_serious_technical_prompt", 

77 "normalize_current_events_reply_contract", 

78 "normalize_text_for_scene", 

79 "parse_byte_prompt", 

80 "split_text_for_chat", 

81]