django-spire 0.20.4__py3-none-any.whl → 0.21.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.
- django_spire/ai/chat/intelligence/decoders/intent_decoder.py +49 -0
- django_spire/ai/chat/intelligence/workflows/chat_workflow.py +19 -53
- django_spire/ai/chat/message_intel.py +15 -7
- django_spire/ai/chat/models.py +6 -5
- django_spire/ai/chat/router.py +105 -0
- django_spire/ai/chat/templates/django_spire/ai/chat/element/recent_chat_select_element.html +1 -1
- django_spire/ai/chat/templates/django_spire/ai/chat/message/message.html +2 -2
- django_spire/ai/chat/templates/django_spire/ai/chat/widget/selection_widget.html +1 -1
- django_spire/ai/chat/tests/test_router/test_base_chat_router.py +110 -0
- django_spire/ai/chat/tests/test_router/test_chat_workflow.py +113 -0
- django_spire/ai/chat/tests/test_router/test_integration.py +147 -0
- django_spire/ai/chat/tests/test_router/test_intent_decoder.py +141 -0
- django_spire/ai/chat/tests/test_router/test_message_intel.py +67 -0
- django_spire/ai/chat/tests/test_router/test_spire_chat_router.py +92 -0
- django_spire/ai/chat/tests/test_urls/test_json_urls.py +1 -1
- django_spire/ai/chat/views/message_request_views.py +5 -3
- django_spire/ai/chat/views/message_response_views.py +2 -2
- django_spire/ai/sms/intelligence/workflows/sms_conversation_workflow.py +8 -8
- django_spire/ai/sms/models.py +1 -1
- django_spire/ai/tests/test_ai.py +1 -1
- django_spire/consts.py +1 -1
- django_spire/core/static/django_spire/css/app-navigation.css +4 -4
- django_spire/core/static/django_spire/css/app-side-panel.css +0 -45
- django_spire/core/templates/django_spire/navigation/top_navigation.html +42 -38
- django_spire/core/templates/django_spire/page/full_page.html +69 -47
- django_spire/knowledge/collection/seeding/seeder.py +2 -2
- django_spire/knowledge/entry/seeding/seeder.py +10 -5
- django_spire/knowledge/intelligence/decoders/entry_decoder.py +4 -1
- django_spire/knowledge/intelligence/intel/message_intel.py +1 -1
- django_spire/knowledge/intelligence/router.py +26 -0
- django_spire/knowledge/intelligence/workflows/knowledge_workflow.py +4 -3
- django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/entry_sub_navigation_item.html +1 -0
- django_spire/settings.py +13 -6
- {django_spire-0.20.4.dist-info → django_spire-0.21.1.dist-info}/METADATA +1 -1
- {django_spire-0.20.4.dist-info → django_spire-0.21.1.dist-info}/RECORD +38 -30
- django_spire/ai/chat/intelligence/decoders/tools.py +0 -34
- {django_spire-0.20.4.dist-info → django_spire-0.21.1.dist-info}/WHEEL +0 -0
- {django_spire-0.20.4.dist-info → django_spire-0.21.1.dist-info}/licenses/LICENSE.md +0 -0
- {django_spire-0.20.4.dist-info → django_spire-0.21.1.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
django_spire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
django_spire/conf.py,sha256=c5Hs-7lk9T15254tOasiQ2ZTFLQIVJof9_QJDfm1PAI,933
|
|
3
|
-
django_spire/consts.py,sha256=
|
|
3
|
+
django_spire/consts.py,sha256=8Fe05Utjk0aOGITBGS1hnpxPylEe0jr6D-RLI-y7jPw,171
|
|
4
4
|
django_spire/exceptions.py,sha256=L5ndRO5ftMmh0pHkO2z_NG3LSGZviJ-dDHNT73SzTNw,48
|
|
5
|
-
django_spire/settings.py,sha256=
|
|
5
|
+
django_spire/settings.py,sha256=g6GVznY_k9vuBnOdJfcI0yDEMBzg9FKiSllSwXrgGM4,972
|
|
6
6
|
django_spire/urls.py,sha256=mKeZszb5U4iIGqddMb5Tt5fRC72U2wABEOi6mvOfEBU,656
|
|
7
7
|
django_spire/utils.py,sha256=kW0HP1xWj8Oz0h1GWs4NflnD8Jq8_F4hABwKTiT-Iyk,1006
|
|
8
8
|
django_spire/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -16,18 +16,19 @@ django_spire/ai/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
16
16
|
django_spire/ai/chat/admin.py,sha256=PGTQFFH5Fc9tBdKXNFITO4Ca9S7z7ma8vzWSTEKDwxM,1533
|
|
17
17
|
django_spire/ai/chat/apps.py,sha256=UQIVzvw8Ax21_SPkeqRmXvLLd0gv6n9IWiygeyrcelw,646
|
|
18
18
|
django_spire/ai/chat/choices.py,sha256=_ogoONrHdDmeJWBSnlDJL2Dwhh7b0skWHTHE5TDktzA,203
|
|
19
|
-
django_spire/ai/chat/message_intel.py,sha256=
|
|
20
|
-
django_spire/ai/chat/models.py,sha256=
|
|
19
|
+
django_spire/ai/chat/message_intel.py,sha256=CF7czj8gpwiaDrkoijLbkoWU9TzD3xtq_Znm0scDeug,1345
|
|
20
|
+
django_spire/ai/chat/models.py,sha256=ib8SrsBKV0BeTb0sK3HyNiwJhrOZXDThKc8kcKWdw6I,4821
|
|
21
21
|
django_spire/ai/chat/querysets.py,sha256=MZW9FHGRsriX1jmhOK5ZwOUmu4Xr-sONLTOXQF_tAFI,965
|
|
22
22
|
django_spire/ai/chat/responses.py,sha256=Hmb2xLdcuqJi4BK19fE1ZPIJu0vJjgqg-KQKQng5aW8,2460
|
|
23
|
+
django_spire/ai/chat/router.py,sha256=uK6L3RDNqDPuO7ZOkjBcS6jlZEHPZSOOhs2tGFz_yGY,3397
|
|
23
24
|
django_spire/ai/chat/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
25
|
django_spire/ai/chat/auth/controller.py,sha256=l4xHQxSlPgS_QPvofsARUOMcXzVo3cTMs2twXb9hlRk,273
|
|
25
26
|
django_spire/ai/chat/intelligence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
27
|
django_spire/ai/chat/intelligence/prompts.py,sha256=jnFaN7EUUQM-wxloWJZ2UAGw1RDXIOKkX4JfvT6ukxw,686
|
|
27
28
|
django_spire/ai/chat/intelligence/decoders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
django_spire/ai/chat/intelligence/decoders/
|
|
29
|
+
django_spire/ai/chat/intelligence/decoders/intent_decoder.py,sha256=eW5QJ3pU6JL_pVcWni-_8UjcBqgH76ZsStxEhMlZS-w,1611
|
|
29
30
|
django_spire/ai/chat/intelligence/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
django_spire/ai/chat/intelligence/workflows/chat_workflow.py,sha256=
|
|
31
|
+
django_spire/ai/chat/intelligence/workflows/chat_workflow.py,sha256=6dahRe-5wGe6ARno0Su4q2VEc-3BZeE3M-ULaf_QuQU,1198
|
|
31
32
|
django_spire/ai/chat/migrations/0001_initial.py,sha256=1cbREhX3_fNsbfumJoKAZ8w91Kq5NeXUn_iI45B7oGE,2632
|
|
32
33
|
django_spire/ai/chat/migrations/0002_remove_chatmessage_content_chatmessage__content_and_more.py,sha256=KeNT7VRFmwA74odh9wxIE1Cr4KAO4Tmtqu0FuI2AmK0,752
|
|
33
34
|
django_spire/ai/chat/migrations/0003_rename__content_chatmessage__intel_data_and_more.py,sha256=wAcJ6Ia3fWrGbqnVrqD2C3-3ijAot0LK-B3KZavoY_A,754
|
|
@@ -35,21 +36,27 @@ django_spire/ai/chat/migrations/0004_chatmessage_response_type_chatmessage_sende
|
|
|
35
36
|
django_spire/ai/chat/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
37
|
django_spire/ai/chat/templates/django_spire/ai/chat/card/chat_card.html,sha256=65wbyinYxqOlAqISkgLoykcwv_dD2X4z0K-r9RQnP0g,309
|
|
37
38
|
django_spire/ai/chat/templates/django_spire/ai/chat/dropdown/ellipsis_dropdown.html,sha256=fiWuRkqcf8_oOVt5mRvsyKHhevAKM0hzbjhCdrZHZUU,736
|
|
38
|
-
django_spire/ai/chat/templates/django_spire/ai/chat/element/recent_chat_select_element.html,sha256=
|
|
39
|
+
django_spire/ai/chat/templates/django_spire/ai/chat/element/recent_chat_select_element.html,sha256=7P6rYxkTsiOv9y409Up62Ct3ab8nwycckMkXR_sKDKM,4854
|
|
39
40
|
django_spire/ai/chat/templates/django_spire/ai/chat/message/default_message.html,sha256=6MT6O9jpkl8DCNKywZYa3YpRvxgQWhlmVJAu4NO70aU,143
|
|
40
41
|
django_spire/ai/chat/templates/django_spire/ai/chat/message/loading_response_message.html,sha256=m3vcYC_tl7OYzbsguJWs8C6jPiJBKVsojginN4cSBkc,1845
|
|
41
|
-
django_spire/ai/chat/templates/django_spire/ai/chat/message/message.html,sha256=
|
|
42
|
+
django_spire/ai/chat/templates/django_spire/ai/chat/message/message.html,sha256=vgl3DykmUHzwDaRt18qhuLHP0X_AIRd5n0Dc5T0FQP0,1936
|
|
42
43
|
django_spire/ai/chat/templates/django_spire/ai/chat/message/request_message.html,sha256=NwGYA_SgJEzAqhW8CgnXP9yEbOHEdonbJ_GIEI2s4c8,526
|
|
43
44
|
django_spire/ai/chat/templates/django_spire/ai/chat/message/response_message.html,sha256=NZDDVY1nYxvyplQobO3gW6i-sevPZd8pXSIsNacF9Yw,525
|
|
44
45
|
django_spire/ai/chat/templates/django_spire/ai/chat/page/chat_page.html,sha256=atgCFgXIAIVKnD6oEFzIF7MiUFTrS7GwN8klKRdB7LE,957
|
|
45
46
|
django_spire/ai/chat/templates/django_spire/ai/chat/section/confirm_delete_section.html,sha256=yJr-zmu4CV7REGnHa2uA_MqgqiftSz-r2bb7U0_5CIY,720
|
|
46
47
|
django_spire/ai/chat/templates/django_spire/ai/chat/widget/dialog_widget.html,sha256=-TwiNUfwh81JHjSLPmE-WLM8FR0FxPM9jeL0IZwztlI,5306
|
|
47
48
|
django_spire/ai/chat/templates/django_spire/ai/chat/widget/recent_chat_list_widget.html,sha256=pbn8yyVL2i0ugyS84cmNX-nrr1K-oOAQiHnsjlQ_wYc,132
|
|
48
|
-
django_spire/ai/chat/templates/django_spire/ai/chat/widget/selection_widget.html,sha256=
|
|
49
|
+
django_spire/ai/chat/templates/django_spire/ai/chat/widget/selection_widget.html,sha256=TTYHwPpa6gyZA7zNAwrzpUd5JdSOOH76L3GpEes9UQA,1633
|
|
49
50
|
django_spire/ai/chat/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
|
+
django_spire/ai/chat/tests/test_router/test_base_chat_router.py,sha256=SgC4S7Ijm_1Mq2lb8r6gO3BUssc1V7mE6wCGuVxrFYQ,3624
|
|
52
|
+
django_spire/ai/chat/tests/test_router/test_chat_workflow.py,sha256=DWKcNhoWMYZ3vrsOcOfS_KjCTXbTxBQmuJ0jRggQCGU,4297
|
|
53
|
+
django_spire/ai/chat/tests/test_router/test_integration.py,sha256=C8yCr5bNvN4mRtwkyXlhQaeMUpZ7XZwwcmkIUWL5u1g,5753
|
|
54
|
+
django_spire/ai/chat/tests/test_router/test_intent_decoder.py,sha256=bC7CjY0UXnd-UZ1K-jlcnmMOBUK35LCytVOvP6sa96w,4935
|
|
55
|
+
django_spire/ai/chat/tests/test_router/test_message_intel.py,sha256=1oH0PTEjvnEzZkwrqb6uBoQvfSkPF1XzAxJNY-KytfA,2276
|
|
56
|
+
django_spire/ai/chat/tests/test_router/test_spire_chat_router.py,sha256=08P_-maBxV6zbRFZoiruvpp7xvfqRlrx3jec9tcLK2s,3518
|
|
50
57
|
django_spire/ai/chat/tests/test_urls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
58
|
django_spire/ai/chat/tests/test_urls/factories.py,sha256=HgZAzsNtFPF1twA6PCP8btRL3-ib6GfE2dr8Mktoy5c,327
|
|
52
|
-
django_spire/ai/chat/tests/test_urls/test_json_urls.py,sha256=
|
|
59
|
+
django_spire/ai/chat/tests/test_urls/test_json_urls.py,sha256=SJEQdx4eOeLjRc4dYr4AIPRVQ4-1AbubKW_ozkdBDo8,684
|
|
53
60
|
django_spire/ai/chat/urls/__init__.py,sha256=TXgZcobB7VRHtMJFismwsIkXH1iRBOjsA0JXzCXs37w,446
|
|
54
61
|
django_spire/ai/chat/urls/json_urls.py,sha256=atO7QOJxSIS6If65G2md6ZhUqsOYkMyTp2aG9ZLG9VE,351
|
|
55
62
|
django_spire/ai/chat/urls/message_request_urls.py,sha256=0nmG2lMSUK0TGJPAfq6tKEih8yet8lPRt6zD8fOQGGU,214
|
|
@@ -60,8 +67,8 @@ django_spire/ai/chat/urls/template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
|
60
67
|
django_spire/ai/chat/urls/template/template_urls.py,sha256=gq44AmAgYcxdzSM_ilIqgCVAKs9lwysDX51lEwkZprc,461
|
|
61
68
|
django_spire/ai/chat/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
69
|
django_spire/ai/chat/views/json_views.py,sha256=G6YojdOhzWbJhetgAxTflFfj9MGnqHqwA-SGktqNFNw,1569
|
|
63
|
-
django_spire/ai/chat/views/message_request_views.py,sha256=
|
|
64
|
-
django_spire/ai/chat/views/message_response_views.py,sha256=
|
|
70
|
+
django_spire/ai/chat/views/message_request_views.py,sha256=SM009kmLrzmdCi2txMP5jqQebEuUL8dYW9ZS8mmMZ0U,2346
|
|
71
|
+
django_spire/ai/chat/views/message_response_views.py,sha256=566mmznpSzfs2mYW-8L2PhrrqgnYdDVTbrRSR_FUweE,1421
|
|
65
72
|
django_spire/ai/chat/views/message_views.py,sha256=8_valLgpJVKdN3LTSTdKRh3PbU_4H18yVWB1xveHJLw,872
|
|
66
73
|
django_spire/ai/chat/views/page_views.py,sha256=hbNLKWDiAvHQ2JP__RB9fvxrL0NSGK7OZttEfxWskz8,831
|
|
67
74
|
django_spire/ai/chat/views/template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -106,20 +113,20 @@ django_spire/ai/sms/admin.py,sha256=mdB4HSqD_pNWVuVEktdGCr9poHhpwPeU6H2qMG1N0kk,
|
|
|
106
113
|
django_spire/ai/sms/apps.py,sha256=sRi4UI1reoWPlFtvrpkkhprgafNl-DptWWH5iPsmdEM,414
|
|
107
114
|
django_spire/ai/sms/decorators.py,sha256=ZnhfaHd2XkdOHFmt9RPl4dcBznNJmR4er8NqH7ESRNM,836
|
|
108
115
|
django_spire/ai/sms/intel.py,sha256=VM_YbXjNx6XPM1hqoejzD73iO6fDm62D-su-i_Biy_Q,107
|
|
109
|
-
django_spire/ai/sms/models.py,sha256=
|
|
116
|
+
django_spire/ai/sms/models.py,sha256=Ve6sNb7MVKuxQTpkNL06xnkN5v5cFPbjNEZeMErwbMQ,3376
|
|
110
117
|
django_spire/ai/sms/querysets.py,sha256=VLFtHQtybwVuGCDT_AXrCQtiwnYyBNnDsZMfqJWbFV8,545
|
|
111
118
|
django_spire/ai/sms/urls.py,sha256=v_ePAgj0GzqFpWUBq1UV4jYxIfWVgohqw-gcJ1WhO9U,200
|
|
112
119
|
django_spire/ai/sms/views.py,sha256=o4sH1Qq4iMuWfTmWZblrGvh_j3328cqSaTi9wy7xin0,1631
|
|
113
120
|
django_spire/ai/sms/intelligence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
114
121
|
django_spire/ai/sms/intelligence/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
115
|
-
django_spire/ai/sms/intelligence/workflows/sms_conversation_workflow.py,sha256=
|
|
122
|
+
django_spire/ai/sms/intelligence/workflows/sms_conversation_workflow.py,sha256=MzkXRqvM5q01S6DjcltSomdIFQFU26xSqykvL0MUV4w,806
|
|
116
123
|
django_spire/ai/sms/migrations/0001_initial.py,sha256=G1sverIO5VeYGX1gXGd7adsN1IMotkKL3Qo_qbO4Wdo,2780
|
|
117
124
|
django_spire/ai/sms/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
118
125
|
django_spire/ai/sms/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
119
126
|
django_spire/ai/sms/tests/test_sms.py,sha256=l1-sT6rfiagX_nSycNf3QSwd6s1kIC8jc4UcAzRqJj8,1070
|
|
120
127
|
django_spire/ai/sms/tests/test_webhook.py,sha256=EV9OO8DGHjzmHRv3C2P7m7ca6bKz3TsvDHh29kCqrzs,1284
|
|
121
128
|
django_spire/ai/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
122
|
-
django_spire/ai/tests/test_ai.py,sha256=
|
|
129
|
+
django_spire/ai/tests/test_ai.py,sha256=Jr38wExt2ccf4Dh-7nZ1bHLTf2awxhzU5fMG9W_5sV4,923
|
|
123
130
|
django_spire/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
124
131
|
django_spire/auth/apps.py,sha256=lyDwlwNe-_i2073kkPHGNiHpOF1n91BK43dpOBijs88,441
|
|
125
132
|
django_spire/auth/controller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -505,11 +512,11 @@ django_spire/core/static/django_spire/css/app-button.css,sha256=iUPOFgXp2v_gsNBe
|
|
|
505
512
|
django_spire/core/static/django_spire/css/app-default.css,sha256=RLVP_vLlkNx_UpNmMmgO73R3UUB_h3sVHt8I2z_iPVk,315
|
|
506
513
|
django_spire/core/static/django_spire/css/app-import.css,sha256=HMoCBzxpPXvOqxj_BOo_yqtYvODFouRbKqs4Wgg_rOU,418
|
|
507
514
|
django_spire/core/static/django_spire/css/app-layout.css,sha256=Wwnbf3tJ3khvTAC2DgzXPtgfR3rWyfMzQ1wljCNsOLo,458
|
|
508
|
-
django_spire/core/static/django_spire/css/app-navigation.css,sha256=
|
|
515
|
+
django_spire/core/static/django_spire/css/app-navigation.css,sha256=G4P2FR2PU3DDI4oEtvS7TQPbDwRAJdCevwPEvoyVx3c,2504
|
|
509
516
|
django_spire/core/static/django_spire/css/app-offcanvas.css,sha256=SxDsONE1eqERJ1gDAP8chjoJ0aD0Q1VHBPqRWJi8-Mw,178
|
|
510
517
|
django_spire/core/static/django_spire/css/app-override.css,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
511
518
|
django_spire/core/static/django_spire/css/app-page.css,sha256=pB-sSZc9NEUkkMcCfzzrCfeiggGmhONn8Eid5HLs8c0,363
|
|
512
|
-
django_spire/core/static/django_spire/css/app-side-panel.css,sha256=
|
|
519
|
+
django_spire/core/static/django_spire/css/app-side-panel.css,sha256=tZUwmC_yK9ZNnoF-I1y6Nx-EtL445K8-CqBbWUcAi1M,1083
|
|
513
520
|
django_spire/core/static/django_spire/css/app-template.css,sha256=D5ORspwfokNqRW0HwyCbzjBp2Kf_2XtWKa6FSQuSXOg,485
|
|
514
521
|
django_spire/core/static/django_spire/css/app-text.css,sha256=YQYhTsXux7vVuZhzsyHV5TuPCpKam8F14GiOnMcGOyk,10141
|
|
515
522
|
django_spire/core/static/django_spire/css/app-theme.css,sha256=6vxu-tNDS4i1wWwLxdkCuiucN_ZKzGqwZmqZ8Vcwzk0,421
|
|
@@ -665,7 +672,7 @@ django_spire/core/templates/django_spire/modal/element/model_close_element.html,
|
|
|
665
672
|
django_spire/core/templates/django_spire/navigation/mobile_navigation.html,sha256=btXoeLihu3jd_7XzKrZiwaBgffDiLoDorMSxhYrnhc4,997
|
|
666
673
|
django_spire/core/templates/django_spire/navigation/navigation_links.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
667
674
|
django_spire/core/templates/django_spire/navigation/side_navigation.html,sha256=qiI4LMRx45JhCco22jYdXAvDy4L8BQcaXj56FgeRYOk,2285
|
|
668
|
-
django_spire/core/templates/django_spire/navigation/top_navigation.html,sha256=
|
|
675
|
+
django_spire/core/templates/django_spire/navigation/top_navigation.html,sha256=TzIBqa-1McH2HWIi7Yp8hEvT8MmznnbWZoEigXVUBwQ,4116
|
|
669
676
|
django_spire/core/templates/django_spire/navigation/accordion/nav_accordion.html,sha256=etJNDg2Hal_16A7qBrqRjuQ3KKtfeGY_KpjFOyUubcQ,1246
|
|
670
677
|
django_spire/core/templates/django_spire/navigation/accordion/settings_nav_accordion.html,sha256=5jy4VBU199bG_-WPmWVhe5bZYWsm03bzZC6XqGK2XFM,794
|
|
671
678
|
django_spire/core/templates/django_spire/navigation/elements/nav_link.html,sha256=HwDO3oTgsW1W9w0l0LWgIbT1ulPd96croKpLEvrGPpA,153
|
|
@@ -677,7 +684,7 @@ django_spire/core/templates/django_spire/page/center_card_page.html,sha256=CqUtX
|
|
|
677
684
|
django_spire/core/templates/django_spire/page/delete_confirmation_form_page.html,sha256=kmAA2eeD-5s3oAdS-HdFwbqHnzPlqihqh5JwxMJIP_o,168
|
|
678
685
|
django_spire/core/templates/django_spire/page/delete_form_page.html,sha256=0ZYlWgl3eVq2OTbu_C0UiHVfSIbj2gg_iJ7xeafHVu4,240
|
|
679
686
|
django_spire/core/templates/django_spire/page/form_full_page.html,sha256=5yp3EfOC2LlcTc0PYQ5MLuQvuw1QFPsMtnPvRdP0A2g,299
|
|
680
|
-
django_spire/core/templates/django_spire/page/full_page.html,sha256=
|
|
687
|
+
django_spire/core/templates/django_spire/page/full_page.html,sha256=HijZKeAlEwXVA2andd8A6RMpSTvaZ3aC6FVGDwSTJyc,12182
|
|
681
688
|
django_spire/core/templates/django_spire/page/page.html,sha256=D6qoyoo3E0_Qu8qov6c2YaYbJQ-LnZnCLKHb5bN0sOs,397
|
|
682
689
|
django_spire/core/templates/django_spire/speech/speech_recognition.html,sha256=0SiRq9L4wFPFl_c8WnwflsYFfQ2wVUPi7aklEPdZPjQ,805
|
|
683
690
|
django_spire/core/templates/django_spire/speech/speech_synthesis.html,sha256=25HetXDLzVWxC8hBnIuVbNXfvGxfaYvtZUPPtN0fkQY,805
|
|
@@ -814,7 +821,7 @@ django_spire/knowledge/collection/models.py,sha256=_wqLIzOHwvsVxdc-GjEZeXWKo_MOH
|
|
|
814
821
|
django_spire/knowledge/collection/querysets.py,sha256=8DWTGvo4WovXQ9n7XRLoxtyDdBUka2N-kcPUnJVOhOo,2479
|
|
815
822
|
django_spire/knowledge/collection/seeding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
816
823
|
django_spire/knowledge/collection/seeding/seed.py,sha256=i4VEvScJvZ1SUV9ukKZp0qdh_owyLyVSHGgl8vIzhwQ,303
|
|
817
|
-
django_spire/knowledge/collection/seeding/seeder.py,sha256=
|
|
824
|
+
django_spire/knowledge/collection/seeding/seeder.py,sha256=Zgrl-S0iAwK6LU2pMmRIdr87kAvrPtQ7GLJlONUSBlM,1523
|
|
818
825
|
django_spire/knowledge/collection/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
819
826
|
django_spire/knowledge/collection/services/factory_service.py,sha256=92DLZODSRPF-iA9r3Jgys2GzbC39KssGEk9eOJ5wZjs,1298
|
|
820
827
|
django_spire/knowledge/collection/services/ordering_service.py,sha256=vTkSdt1lVT4VxSK3GhZibj8FPDDy5butwPkVzqmm07g,1243
|
|
@@ -845,7 +852,7 @@ django_spire/knowledge/entry/models.py,sha256=RSWXFLWAPZ43klgZvqXEzYl39g4hNIUPmX
|
|
|
845
852
|
django_spire/knowledge/entry/querysets.py,sha256=oVTylFT_Zx0elT5IVbYZRa0FwyGd9YaRz0vdcumfrsU,1121
|
|
846
853
|
django_spire/knowledge/entry/seeding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
847
854
|
django_spire/knowledge/entry/seeding/seed.py,sha256=n7ereq118GuqV1luNih7nuVpkrZpkBgPWt0FuE4Bl88,105
|
|
848
|
-
django_spire/knowledge/entry/seeding/seeder.py,sha256=
|
|
855
|
+
django_spire/knowledge/entry/seeding/seeder.py,sha256=AqClwSzrFYWU59VsbUMJiN1Dh4P6Dvax-M3gqhoZoQM,2069
|
|
849
856
|
django_spire/knowledge/entry/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
850
857
|
django_spire/knowledge/entry/services/automation_service.py,sha256=0_Ypk5cXhGvkQLkmKBArFTrE_sZhXCnBencmuJeLxMI,1826
|
|
851
858
|
django_spire/knowledge/entry/services/factory_service.py,sha256=bgUEHjdc9u2mxUJFy26qYOxUiJRHmhtcoH6AG3xzU0I,1379
|
|
@@ -930,17 +937,18 @@ django_spire/knowledge/entry/views/json_views.py,sha256=UqfKcJZ908y2UmKBBF0PoQj1
|
|
|
930
937
|
django_spire/knowledge/entry/views/page_views.py,sha256=piqmMm7WXuaiy-shGXfcP3bAcJN8oh3Y4MxfBzFiK70,819
|
|
931
938
|
django_spire/knowledge/entry/views/template_views.py,sha256=Y-3JnslI_hj4WesN8dJbpImhUZSSjxpWErqV5aL9ecI,1188
|
|
932
939
|
django_spire/knowledge/intelligence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
940
|
+
django_spire/knowledge/intelligence/router.py,sha256=4nPcIJJPHtwGgBXrLZiZaSNrfHDADrE5wCznvQOOm2s,802
|
|
933
941
|
django_spire/knowledge/intelligence/bots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
934
942
|
django_spire/knowledge/intelligence/bots/entry_search_llm_bot.py,sha256=02fRELEyRjqRc1o_McQPWucQOTQtpIO6_v8-3OO7mLs,1689
|
|
935
943
|
django_spire/knowledge/intelligence/decoders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
936
944
|
django_spire/knowledge/intelligence/decoders/collection_decoder.py,sha256=Vqh-JQukPatbxvV3NMWKvl8Np3bgRtDxQZjd2T3E0Rc,599
|
|
937
|
-
django_spire/knowledge/intelligence/decoders/entry_decoder.py,sha256=
|
|
945
|
+
django_spire/knowledge/intelligence/decoders/entry_decoder.py,sha256=cyywWGDlXmEeq050AEcAc4II0ItwBp8HFM1aQXfGAl4,572
|
|
938
946
|
django_spire/knowledge/intelligence/intel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
939
947
|
django_spire/knowledge/intelligence/intel/collection_intel.py,sha256=4ci6_bVUimj_33FZgQ7wCpESXrKBMxHGF0yyfrstmvI,144
|
|
940
948
|
django_spire/knowledge/intelligence/intel/entry_intel.py,sha256=lGlGqeruV5oOu0aArGA_Bxa1pqAI7lr1MD7UATAy2Sg,445
|
|
941
|
-
django_spire/knowledge/intelligence/intel/message_intel.py,sha256=
|
|
949
|
+
django_spire/knowledge/intelligence/intel/message_intel.py,sha256=iYXdOkS1KfP3QH3-KsTSJ_BspRh1vPw-zG7uJMNOWf8,419
|
|
942
950
|
django_spire/knowledge/intelligence/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
943
|
-
django_spire/knowledge/intelligence/workflows/knowledge_workflow.py,sha256=
|
|
951
|
+
django_spire/knowledge/intelligence/workflows/knowledge_workflow.py,sha256=6NjF9-ErMaEqa69C2GUAmv2h7IdbHTTLoiza-Wewgd4,1897
|
|
944
952
|
django_spire/knowledge/migrations/0001_initial.py,sha256=0oAx4e0Tu1wbcMwQZ4I_B2X_EGdEA9Qz_UBdVNGc3yE,5487
|
|
945
953
|
django_spire/knowledge/migrations/0002_alter_entryversionblock_type.py,sha256=Eg8tLjDO0nJ3go_jgVvoqwYKFOpYUUyNtZtLI2V3IQQ,527
|
|
946
954
|
django_spire/knowledge/migrations/0003_alter_collection_order_alter_entry_order_and_more.py,sha256=nIIUg1lHQ1iLbPlOulwZgzHrP1erGMYVXDaEdDXv4ik,749
|
|
@@ -990,7 +998,7 @@ django_spire/knowledge/templates/django_spire/knowledge/page/home_page.html,sha2
|
|
|
990
998
|
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/element/collection_sub_navigation_ellipsis_dropdown.html,sha256=DeM7yRcjRN25eRvdOK-3Ae0kbYaMWvk7Ufbc8AZphgk,1023
|
|
991
999
|
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/element/entry_sub_navigation_ellipsis_dropdown.html,sha256=SiwlFdvIbmcWyexxNMBO4b-mbOwqAAtPHLv8Fqr8UIs,757
|
|
992
1000
|
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/collection_sub_navigation_item.html,sha256=zfuT2vx5kTEDqIAN4QroBR7BWL5ifc4KRQU7dmAQmKc,1181
|
|
993
|
-
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/entry_sub_navigation_item.html,sha256=
|
|
1001
|
+
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/item/entry_sub_navigation_item.html,sha256=piZwe5YmWQMn9675YSzTfXEdkWdqNwTvGTvdSsIdpVE,880
|
|
994
1002
|
django_spire/knowledge/templates/django_spire/knowledge/sub_navigation/widget/collection_entry_sub_navigation_widget.html,sha256=m9dzz9rxVCb_T5dKeo1spYWKRGogTZ07snKIfau0njA,6121
|
|
995
1003
|
django_spire/knowledge/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
996
1004
|
django_spire/knowledge/templatetags/spire_knowledge_tags.py,sha256=n3eHc8QZplOi9ovD8qbfzp66F91tdm6q8z1YPcnmVOM,622
|
|
@@ -1143,8 +1151,8 @@ django_spire/theme/urls/page_urls.py,sha256=S8nkKkgbhG3XHI3uMUL-piOjXIrRkuY2UlM_
|
|
|
1143
1151
|
django_spire/theme/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1144
1152
|
django_spire/theme/views/json_views.py,sha256=W1khC2K_EMbEzAFmMxC_P76_MFnkRH4-eVdodrRfAhw,1904
|
|
1145
1153
|
django_spire/theme/views/page_views.py,sha256=pHr8iekjtR99xs7w1taj35HEo133Svq1dvDD0y0VL1c,3933
|
|
1146
|
-
django_spire-0.
|
|
1147
|
-
django_spire-0.
|
|
1148
|
-
django_spire-0.
|
|
1149
|
-
django_spire-0.
|
|
1150
|
-
django_spire-0.
|
|
1154
|
+
django_spire-0.21.1.dist-info/licenses/LICENSE.md,sha256=tlTbOtgKoy-xAQpUk9gPeh9O4oRXCOzoWdW3jJz0wnA,1091
|
|
1155
|
+
django_spire-0.21.1.dist-info/METADATA,sha256=-_tFjGSVFeNqfse3Q_9dP4vkDsWPxZo3OLXF84qf-Aw,4967
|
|
1156
|
+
django_spire-0.21.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1157
|
+
django_spire-0.21.1.dist-info/top_level.txt,sha256=xf3QV1e--ONkVpgMDQE9iqjQ1Vg4--_6C8wmO-KxPHQ,13
|
|
1158
|
+
django_spire-0.21.1.dist-info/RECORD,,
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import Callable, TYPE_CHECKING
|
|
4
|
-
|
|
5
|
-
from dandy import Decoder
|
|
6
|
-
|
|
7
|
-
from django_spire.auth.controller.controller import AppAuthController
|
|
8
|
-
from django_spire.conf import settings
|
|
9
|
-
from django_spire.core.utils import get_callable_from_module_string_and_validate_arguments
|
|
10
|
-
from django_spire.knowledge.intelligence.workflows.knowledge_workflow import knowledge_search_workflow
|
|
11
|
-
|
|
12
|
-
if TYPE_CHECKING:
|
|
13
|
-
from django.core.handlers.wsgi import WSGIRequest
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def generate_intent_decoder(
|
|
17
|
-
request: WSGIRequest,
|
|
18
|
-
default_callable: Callable | None = None
|
|
19
|
-
) -> Decoder:
|
|
20
|
-
intent_dict = {}
|
|
21
|
-
|
|
22
|
-
if AppAuthController(app_name='knowledge', request=request).can_view():
|
|
23
|
-
intent_dict['The user is looking for information or knowledge on something.'] = knowledge_search_workflow
|
|
24
|
-
|
|
25
|
-
if settings.AI_CHAT_DEFAULT_CALLABLE is not None:
|
|
26
|
-
intent_dict['None of the above choices match the user\'s intent'] = get_callable_from_module_string_and_validate_arguments(
|
|
27
|
-
settings.AI_CHAT_DEFAULT_CALLABLE,
|
|
28
|
-
['request', 'user_input', 'message_history']
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
return Decoder(
|
|
32
|
-
mapping_keys_description='Intent of the User\'s Request',
|
|
33
|
-
mapping=intent_dict
|
|
34
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|