smart-bot-factory 1.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. smart_bot_factory/__init__.py +3 -0
  2. smart_bot_factory/admin/__init__.py +18 -0
  3. smart_bot_factory/admin/admin_events.py +1223 -0
  4. smart_bot_factory/admin/admin_logic.py +553 -0
  5. smart_bot_factory/admin/admin_manager.py +156 -0
  6. smart_bot_factory/admin/admin_tester.py +157 -0
  7. smart_bot_factory/admin/timeout_checker.py +547 -0
  8. smart_bot_factory/aiogram_calendar/__init__.py +14 -0
  9. smart_bot_factory/aiogram_calendar/common.py +64 -0
  10. smart_bot_factory/aiogram_calendar/dialog_calendar.py +259 -0
  11. smart_bot_factory/aiogram_calendar/schemas.py +99 -0
  12. smart_bot_factory/aiogram_calendar/simple_calendar.py +224 -0
  13. smart_bot_factory/analytics/analytics_manager.py +414 -0
  14. smart_bot_factory/cli.py +806 -0
  15. smart_bot_factory/config.py +258 -0
  16. smart_bot_factory/configs/growthmed-october-24/prompts/1sales_context.txt +16 -0
  17. smart_bot_factory/configs/growthmed-october-24/prompts/2product_info.txt +582 -0
  18. smart_bot_factory/configs/growthmed-october-24/prompts/3objection_handling.txt +66 -0
  19. smart_bot_factory/configs/growthmed-october-24/prompts/final_instructions.txt +212 -0
  20. smart_bot_factory/configs/growthmed-october-24/prompts/help_message.txt +28 -0
  21. smart_bot_factory/configs/growthmed-october-24/prompts/welcome_message.txt +8 -0
  22. smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064229.txt +818 -0
  23. smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064335.txt +32 -0
  24. smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064638.txt +35 -0
  25. smart_bot_factory/configs/growthmed-october-24/tests/quick_scenarios.yaml +133 -0
  26. smart_bot_factory/configs/growthmed-october-24/tests/realistic_scenarios.yaml +108 -0
  27. smart_bot_factory/configs/growthmed-october-24/tests/scenario_examples.yaml +46 -0
  28. smart_bot_factory/configs/growthmed-october-24/welcome_file/welcome_file_msg.txt +16 -0
  29. smart_bot_factory/configs/growthmed-october-24/welcome_file//342/225/250/320/267/342/225/250/342/225/241/342/225/250/342/225/221 /342/225/250/342/225/227/342/225/250/342/225/225/342/225/244/320/221/342/225/244/320/222 /342/225/250/342/224/220/342/225/250/342/225/233 152/342/225/250/320/264/342/225/250/320/247 /342/225/250/342/225/225 323/342/225/250/320/264/342/225/250/320/247 /342/225/250/342/224/244/342/225/250/342/225/227/342/225/244/320/237 /342/225/250/342/225/235/342/225/250/342/225/241/342/225/250/342/224/244/342/225/250/342/225/225/342/225/244/320/226/342/225/250/342/225/225/342/225/250/342/225/234/342/225/244/320/233.pdf +0 -0
  30. smart_bot_factory/core/bot_utils.py +1108 -0
  31. smart_bot_factory/core/conversation_manager.py +653 -0
  32. smart_bot_factory/core/decorators.py +2464 -0
  33. smart_bot_factory/core/message_sender.py +729 -0
  34. smart_bot_factory/core/router.py +347 -0
  35. smart_bot_factory/core/router_manager.py +218 -0
  36. smart_bot_factory/core/states.py +27 -0
  37. smart_bot_factory/creation/__init__.py +7 -0
  38. smart_bot_factory/creation/bot_builder.py +1093 -0
  39. smart_bot_factory/creation/bot_testing.py +1122 -0
  40. smart_bot_factory/dashboard/__init__.py +3 -0
  41. smart_bot_factory/event/__init__.py +7 -0
  42. smart_bot_factory/handlers/handlers.py +2013 -0
  43. smart_bot_factory/integrations/langchain_openai.py +542 -0
  44. smart_bot_factory/integrations/openai_client.py +513 -0
  45. smart_bot_factory/integrations/supabase_client.py +1678 -0
  46. smart_bot_factory/memory/__init__.py +8 -0
  47. smart_bot_factory/memory/memory_manager.py +299 -0
  48. smart_bot_factory/memory/static_memory.py +214 -0
  49. smart_bot_factory/message/__init__.py +56 -0
  50. smart_bot_factory/rag/__init__.py +5 -0
  51. smart_bot_factory/rag/decorators.py +29 -0
  52. smart_bot_factory/rag/router.py +54 -0
  53. smart_bot_factory/rag/templates/__init__.py +3 -0
  54. smart_bot_factory/rag/templates/create_table.sql +7 -0
  55. smart_bot_factory/rag/templates/create_table_and_function_template.py +94 -0
  56. smart_bot_factory/rag/templates/match_function.sql +61 -0
  57. smart_bot_factory/rag/templates/match_services_template.py +82 -0
  58. smart_bot_factory/rag/vectorstore.py +449 -0
  59. smart_bot_factory/router/__init__.py +10 -0
  60. smart_bot_factory/setup_checker.py +512 -0
  61. smart_bot_factory/supabase/__init__.py +7 -0
  62. smart_bot_factory/supabase/client.py +631 -0
  63. smart_bot_factory/utils/__init__.py +11 -0
  64. smart_bot_factory/utils/debug_routing.py +114 -0
  65. smart_bot_factory/utils/prompt_loader.py +529 -0
  66. smart_bot_factory/utils/tool_router.py +68 -0
  67. smart_bot_factory/utils/user_prompt_loader.py +55 -0
  68. smart_bot_factory/utm_link_generator.py +123 -0
  69. smart_bot_factory-1.1.1.dist-info/METADATA +1135 -0
  70. smart_bot_factory-1.1.1.dist-info/RECORD +73 -0
  71. smart_bot_factory-1.1.1.dist-info/WHEEL +4 -0
  72. smart_bot_factory-1.1.1.dist-info/entry_points.txt +2 -0
  73. smart_bot_factory-1.1.1.dist-info/licenses/LICENSE +24 -0
@@ -0,0 +1,73 @@
1
+ smart_bot_factory/__init__.py,sha256=W5k9awLVi0R_N3fSul7VNkKRdSfExZjNb_M2yNzepg8,102
2
+ smart_bot_factory/cli.py,sha256=UM2pZqRnoAekEe_UE0xP3iGFkHI5lBkHcizyqP-QA3Y,32859
3
+ smart_bot_factory/config.py,sha256=dPO7n6JWXnv9nU_uC_29zC8fXujP8AbVAJCUZK9AUHA,11772
4
+ smart_bot_factory/setup_checker.py,sha256=MSTMvLrUwgkjCbZBy-vKJcFMeADf2qTnaZClp7TBxWY,19833
5
+ smart_bot_factory/utm_link_generator.py,sha256=eA3Eic4Wvs0QpMdAFPJgYJyzv-_pSQWZ5ySdFHjyJkg,4327
6
+ smart_bot_factory/admin/__init__.py,sha256=xHUtMLeQDDQEXZrg4WAGpt-TWp8adjCC0-mYUBuino4,489
7
+ smart_bot_factory/admin/admin_events.py,sha256=ASPA7imgza-Pi5Fq2BPWoUz5bCMa9mHFJdLL1urYUdY,52569
8
+ smart_bot_factory/admin/admin_logic.py,sha256=TiXhZIXiXK1YQkrueY_zPFYL3_sJzoAvd100AP-ZCWU,23136
9
+ smart_bot_factory/admin/admin_manager.py,sha256=u22j1xy2zLTw0kejgzWF5m657_IyMDKnDlM9kBzbjh4,6359
10
+ smart_bot_factory/admin/admin_tester.py,sha256=YwovS51chPJoQ33pIiug-vS3augQzc1hHfbma48HtDk,6352
11
+ smart_bot_factory/admin/timeout_checker.py,sha256=afWsg39X6M5SaRKMk7ptNod8Z0StIa2o8H5Lx8y1ZE0,24438
12
+ smart_bot_factory/aiogram_calendar/__init__.py,sha256=UCoae3mXXDgYqqSQPotEpUxzAsZ_e62FuW9MWl1sG34,410
13
+ smart_bot_factory/aiogram_calendar/common.py,sha256=T6gTJxy__QllBV9TTyXzLnP1U3enmbMHPKGJelMDfOg,2327
14
+ smart_bot_factory/aiogram_calendar/dialog_calendar.py,sha256=f588JaQMrsBunH7HKsAYxbVPm5v5rBmpfDEvA53ER8k,9526
15
+ smart_bot_factory/aiogram_calendar/schemas.py,sha256=fsIbBFBV22rMh-3AczTgRNjbM3mMjLv3Uo8WbBJ7RQQ,2773
16
+ smart_bot_factory/aiogram_calendar/simple_calendar.py,sha256=Ed7oon2suJxvsy3u4UcAYeyCx-ocbq8fW_AM__MzCek,8731
17
+ smart_bot_factory/analytics/analytics_manager.py,sha256=JPV3YgMiqL-u_fpR8a-AwmQw6ZKYX90L-fmteHTvcCI,16979
18
+ smart_bot_factory/configs/growthmed-october-24/prompts/1sales_context.txt,sha256=uJ4WviYIr9xJaFdu-APrrmBgIWVwdJymcN04upIviLY,1614
19
+ smart_bot_factory/configs/growthmed-october-24/prompts/2product_info.txt,sha256=tWP9gdn58vu9BhYpDx1lGuPNT24j5p1XPiCSD-CdXiU,24191
20
+ smart_bot_factory/configs/growthmed-october-24/prompts/3objection_handling.txt,sha256=zwUGKp3mp1dAQUPjLQsCsczwRJJOqn9GGvVzVBCpvfY,6985
21
+ smart_bot_factory/configs/growthmed-october-24/prompts/final_instructions.txt,sha256=Y-lIyL9U0DJFY-CC-6LCVohJqZT9uNEJWikuTBJ81Ik,15410
22
+ smart_bot_factory/configs/growthmed-october-24/prompts/help_message.txt,sha256=q_vNNWsq5rU0xbjKWeyD_lKAy7Q9ABpDZfgpgQNHoyo,1914
23
+ smart_bot_factory/configs/growthmed-october-24/prompts/welcome_message.txt,sha256=sGgaYqxYqQYiyfaA-BgUgjbt5Yxx56ZEQEPYTAy7h60,572
24
+ smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064229.txt,sha256=v24DY1_dL7wvDQzY3JVwc4I_5t5rgSe8IOGuUDzQkH0,58752
25
+ smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064335.txt,sha256=qLcF79mUuzlpSGlLrYTm2HVYsTym7wqF7ky4tYlU24s,1707
26
+ smart_bot_factory/configs/growthmed-october-24/reports/test_20250924_064638.txt,sha256=dA_svJJXVf2c0KDkeS4BLhg4UVIfzhC1Jba9da-KayM,2055
27
+ smart_bot_factory/configs/growthmed-october-24/tests/quick_scenarios.yaml,sha256=DXGFTPNv22QluZsqkbbKv0SmJlDezKUuWwoDnewqpPI,9716
28
+ smart_bot_factory/configs/growthmed-october-24/tests/realistic_scenarios.yaml,sha256=Z1V540aHgWamPWzzMKfRlSFfUwFQpfF_IKrxnYayJ0M,6897
29
+ smart_bot_factory/configs/growthmed-october-24/tests/scenario_examples.yaml,sha256=bzDulOU4a2LyWlcHzlQU8GYhOky2WTfyizGfjX4ioMY,2436
30
+ smart_bot_factory/configs/growthmed-october-24/welcome_file/welcome_file_msg.txt,sha256=Db21Mm0r8SBWFdX9EeIF2FZtLQ2cvuwVlSRJd2KEYCg,922
31
+ smart_bot_factory/configs/growthmed-october-24/welcome_file/Чек лист по 152ФЗ и 323ФЗ для медицины.pdf,sha256=BiAiQHNnQXJPMsks9AeL6s0beEjRFkRMJLMlAn4WorA,5284954
32
+ smart_bot_factory/core/bot_utils.py,sha256=vbWb4wUkG-FlQIGTQ6RLoSSVg_LRVTzpnX3tyowsbqY,52032
33
+ smart_bot_factory/core/conversation_manager.py,sha256=ga0ThoDpvov97x5KLcHpL8aRlEZB1XRw3JPrexIb-jk,29506
34
+ smart_bot_factory/core/decorators.py,sha256=9TjB9mTp2fvopSgFOJOsQ326K220QHK87ZPoNa5BV_g,108733
35
+ smart_bot_factory/core/message_sender.py,sha256=iboiSRTatlBbyM54zdWOp33zFuP_FsZWLTK3gzkV4Z0,33225
36
+ smart_bot_factory/core/router.py,sha256=66sCp7Okyu1ceIQPpxFF88-NizTD1N7rR4ZAdwDYmi8,16285
37
+ smart_bot_factory/core/router_manager.py,sha256=x-cc4zhZUVPCTUH980GdlE_-JjHRtYnPdEBiWnf3ka8,10156
38
+ smart_bot_factory/core/states.py,sha256=mFyQ-oxIjTX03Wy5NHZUgYgh8fsJ5YmQU09_PhPAB04,889
39
+ smart_bot_factory/creation/__init__.py,sha256=lHFgYIjOLvdsDAW8eLMp8zfFUCd-6wepvUaUMeJ7feU,128
40
+ smart_bot_factory/creation/bot_builder.py,sha256=aDdhJ4b_J3-3_M4r3iK0syh3_Ji_se6p3OgF4l6LySo,52155
41
+ smart_bot_factory/creation/bot_testing.py,sha256=aMPSgj2o2zl6yWiV1a6RMmSJfiwMYp-_0ZkmJ6aFZVs,54561
42
+ smart_bot_factory/dashboard/__init__.py,sha256=Qie1pJgzprBlCPrZVQLhVs1JR5-YrpzfcBvHHD3OLJk,94
43
+ smart_bot_factory/event/__init__.py,sha256=eWKoiZ_DD-jTL9Tjv11ucQat8P8AhP3xWmQs29pd4ZA,190
44
+ smart_bot_factory/handlers/handlers.py,sha256=6X-ps84IoIHj-ApfvL3RW299dFb1vOF7pk-vQvMmKac,95748
45
+ smart_bot_factory/integrations/langchain_openai.py,sha256=6j2aPbs4TvR_SQYTD_jbBRHsbyl5CyjurhcMi_Fskhc,24078
46
+ smart_bot_factory/integrations/openai_client.py,sha256=R04qglOWNu3yQ32QRMRMzO01T6luWTp83H3OJMvD-uM,24316
47
+ smart_bot_factory/integrations/supabase_client.py,sha256=pY5v5DhiUdluCIFmS3cJJRD70wNyEykIYPoFhfhoqDU,69652
48
+ smart_bot_factory/memory/__init__.py,sha256=auwuaIU0ZXSRuupXwiUQxRmpArXZRXgnCfNvJDF-8pQ,161
49
+ smart_bot_factory/memory/memory_manager.py,sha256=A1JcT_4_KKSS3slGMgfFTHc5aoLaqa8qgZHmE8dC8Dw,19262
50
+ smart_bot_factory/memory/static_memory.py,sha256=ZnafEJzyCxEQnEp85hamW0eUdsNcfhu38Ly1FhNmVHs,9674
51
+ smart_bot_factory/message/__init__.py,sha256=neUUYAs8ITz3cV1B_T0P9_3XZvvn8cZ2VDpDqrf6lrc,1940
52
+ smart_bot_factory/rag/__init__.py,sha256=FtgPL-hJ-HWiPFhqjIl9oQ1OdFTzo_Ozbu4JK50f-bM,145
53
+ smart_bot_factory/rag/decorators.py,sha256=iQ4Zsq0ZNJpshqAdb3n0LHNQ0tj94oqYL0YMkMf4ea0,714
54
+ smart_bot_factory/rag/router.py,sha256=6JPmM0btudzI0iZ_N_zIjaivWGzZIWsCBxrvLMUSQKI,1819
55
+ smart_bot_factory/rag/vectorstore.py,sha256=wzJTfMkE1eQosJIFQrjOT72uk_Uaffperq3Nud9zs9Y,22642
56
+ smart_bot_factory/rag/templates/__init__.py,sha256=sZkNt4VPv0DIU_NkopMh-5dBdi6FQwnl_jVfew0JZkg,31
57
+ smart_bot_factory/rag/templates/create_table.sql,sha256=xEm0u7kcu_1Snk8PUc-PxnRbWXPDrtODElVigKub6h0,159
58
+ smart_bot_factory/rag/templates/create_table_and_function_template.py,sha256=cx_w9nSDAqUu39kzKQDOKBu7Z4cCEhYodlA5ZIjH78w,3192
59
+ smart_bot_factory/rag/templates/match_function.sql,sha256=kDnhVG95LZz4jiMex8RBsITiGR4mOuiGHy4b-wLBCyI,2003
60
+ smart_bot_factory/rag/templates/match_services_template.py,sha256=UelgqAK4qoUIcspQe7m2N9uNfnzgXw8RTr6u-xmve0c,2717
61
+ smart_bot_factory/router/__init__.py,sha256=ywywG6iFBLLkBvtZ-huPVetqjXGN4UiUzoK6lw46bMg,272
62
+ smart_bot_factory/supabase/__init__.py,sha256=xa1xmHLaQVoghjD5cqguiL4yd25VYMvGd6_e87uc0tQ,181
63
+ smart_bot_factory/supabase/client.py,sha256=xey3It4TtRq0rnXyu1Crtv0JwCX5Xap2Sb_2jsYWq-U,26271
64
+ smart_bot_factory/utils/__init__.py,sha256=PfMj5oH5jjzFekLp2GtW6MK15zHbwyIWutJnR77bO5M,317
65
+ smart_bot_factory/utils/debug_routing.py,sha256=wV9BFwNmjBbF3rNI7UBdGsTf1bIT5XVQIGnxwIxhNYA,4707
66
+ smart_bot_factory/utils/prompt_loader.py,sha256=p1WFiGL_svMZBCuZzxwqBrC9MjudqSugKI1WSTwAiZU,24666
67
+ smart_bot_factory/utils/tool_router.py,sha256=Jutj-ip0ZWrgjzcpQThk1bdAWSwpAOma6bt--ZI6KKI,2085
68
+ smart_bot_factory/utils/user_prompt_loader.py,sha256=lq1eQ4Hb2qN22osOjaFtkGdEc4OgpFPrzPNpPhsm5kA,2353
69
+ smart_bot_factory-1.1.1.dist-info/METADATA,sha256=cFg82Oa08RRbiXZVrkMTa4CsqF-xa-Wk4srBsWyyD0Y,41002
70
+ smart_bot_factory-1.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
71
+ smart_bot_factory-1.1.1.dist-info/entry_points.txt,sha256=ybKEAI0WSb7WoRiey7QE-HHfn88UGV7nxLDxXq7b7SU,50
72
+ smart_bot_factory-1.1.1.dist-info/licenses/LICENSE,sha256=OrK3cwdUTzNzIhJvSPtJaVMoYIyC_sSx5EFE_FDMvGs,1092
73
+ smart_bot_factory-1.1.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sbf = smart_bot_factory.cli:cli
@@ -0,0 +1,24 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Kopatych
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+
24
+