-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor controllers to use DialogueKit platforms #181
Refactor controllers to use DialogueKit platforms #181
Conversation
…nts' into feature/178-Refactor-`Agent`-class-to-inherit-from-DialogueKit-`Agent`
…g-platform-from-DialogueKit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some minor comments and requests for clarification
…g-platform-from-DialogueKit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There are some minor inline comments.
self.socketio.on_namespace(ChatNamespace("/", self)) | ||
self.socketio.run(self.app, host=host, port=port) | ||
|
||
def display_agent_utterance( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this method is already defined in FlaskSocketPlatform
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct however here we use different classes Message
and Response
that are tailored for our use case.
What's changed
server_rest
andserver_socket
are removedController
inherits from DialogueKit'sPlatform
http_data_formatter
Fixes #180