Skip to content

Added chat and chat/health handler registration, dispatch, and testing - #9

Merged
m-messer merged 1 commit into
mainfrom
feature/chat
Aug 5, 2026
Merged

Added chat and chat/health handler registration, dispatch, and testing#9
m-messer merged 1 commit into
mainfrom
feature/chat

Conversation

@m-messer

@m-messer m-messer commented Aug 5, 2026

Copy link
Copy Markdown
Member

Request

Implement chat functionality into Shimmy.

Solution
This is one aspect of the multi-part solution for implementing chat in Shimmy.
This PR handles the shared toolkit updates:

  • Added chat health aspects
  • Updates the base server and handlers to work with chat
  • Added tests

@neagualexa neagualexa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to have the tests, I presume a next step is to add similar test for evaluate too (in the new test files from tests/io)?

self._methods = {
name: jsonrpc_handler(self, name) for name in ["eval", "preview", "healthcheck"]
name: jsonrpc_handler(self, name)
for name in ["eval", "preview", "healthcheck", "chat", "chat/health"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this was for legacy evaluate?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also for muEd, shimmy works as a protocol facade, it converts muEd into what the evaluation function expects.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so then would it be worth using the mued naming for consistency?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching the term here would most likely break the legacy implementation. Currently, the shimmy facade takes muEd and basically converts to legacy, as this was a simpler implementation and no additional muEd functionality is currently required.

@m-messer
m-messer merged commit ea7ab09 into main Aug 5, 2026
2 checks passed
@m-messer
m-messer deleted the feature/chat branch August 5, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants