chatgraph 0.2.5__tar.gz → 0.2.6__tar.gz

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.

@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "chatgraph"
3
- version = "0.2.5"
3
+ version = "0.2.6"
4
4
  description = "A user-friendly chatbot library"
5
5
  authors = ["Irisson N. Lima <irisson.lima@verdecard.com.br>"]
6
6
  readme = "README.md"
File without changes
File without changes