chatgraph 0.2.5__py3-none-any.whl → 0.2.6__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.

Potentially problematic release.


This version of chatgraph might be problematic. Click here for more details.

@@ -155,9 +155,13 @@ class ChatbotApp(ABC):
155
155
  'obs': user_state.obs,
156
156
  }
157
157
  return json.dumps(response)
158
- elif type(message_response) in (ChatbotResponse, EndChatResponse, TransferToHuman):
158
+ elif type(message_response) in (EndChatResponse, TransferToHuman):
159
159
  response = message_response.json()
160
- response['customer_id'] = customer_id
160
+ response['user_state'] = {
161
+ 'customer_id': customer_id,
162
+ 'menu': None,
163
+ 'obs': None,
164
+ }
161
165
  return json.dumps(response)
162
166
  elif type(message_response) == RedirectResponse:
163
167
  route = self.__adjust_route(message_response.route, menu)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chatgraph
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: A user-friendly chatbot library
5
5
  Home-page: https://github.com/irissonnlima/chatgraph
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  chatgraph/__init__.py,sha256=6pDNMUOLR8iFK_3mWula1IJQcIoE8io-65mS_QheXXE,642
2
2
  chatgraph/auth/credentials.py,sha256=xsMEpLQnc66novPjL6upocMcnUnvFJ7yxINzUenkxmc,2388
3
- chatgraph/bot/chatbot_model.py,sha256=NNsUM6GUvmf-d2DbGxsUCL26JtNscBdrQJcbXdv20_0,6850
3
+ chatgraph/bot/chatbot_model.py,sha256=4XTlAxFIpEeNp7hwxC3UjhnDeZMFD3QH3AD09GDxD78,6943
4
4
  chatgraph/bot/chatbot_router.py,sha256=kZ_4X5AhhE2mntx4tcHiapaSKC1T4K1jqIVjLp1Pjg0,2817
5
5
  chatgraph/error/chatbot_error.py,sha256=4sEcW8vz0eQk2QDmDygucVM4caHliZW5iH7XJvmLBuk,1897
6
6
  chatgraph/error/route_error.py,sha256=CY8m82ap7-Sr-DXPsolltRW50TqD__5RyXBmNNJCWr8,793
@@ -13,7 +13,7 @@ chatgraph/types/message_types.py,sha256=7eB45hrlbYKV1Lp9vysR6V7OXNsySpeKYbGBc2Ux
13
13
  chatgraph/types/output_state.py,sha256=_pbCssNM4ls7tFG1Wbdg8BJN6ih0q3x2onXZdvZcGDo,3025
14
14
  chatgraph/types/route.py,sha256=nKTqzwGl7d_Bu8G6Sr0EmmhuuiZWKEoSozITRrdyi1g,2587
15
15
  chatgraph/types/user_state.py,sha256=nliV-kC_yOmYoFh8CQSfT92DbOv4BLF0vvn8kotnDog,2884
16
- chatgraph-0.2.5.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
17
- chatgraph-0.2.5.dist-info/METADATA,sha256=PLM-QZCefEPaSuAKJq9qz7NYcBbCxw12gMlqt-aFHqQ,5868
18
- chatgraph-0.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
19
- chatgraph-0.2.5.dist-info/RECORD,,
16
+ chatgraph-0.2.6.dist-info/LICENSE,sha256=rVJozpRzDlplOpvI8A1GvmfVS0ReYdZvMWc1j2jV0v8,1090
17
+ chatgraph-0.2.6.dist-info/METADATA,sha256=lRvleQCJFEMf1tjGSNYaXQZ4n_tFzrVpSNp85sWX-1Y,5868
18
+ chatgraph-0.2.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
19
+ chatgraph-0.2.6.dist-info/RECORD,,