flowfuse
flowfuse copied to clipboard
Cleanup expert store module
Parent issue: #6254
Description
Cleanup expert store module
Tasks
- [ ] Re-naming the received payload from the website into something more appropriate, current confusion between context received from website and context passed to rag agent
- [ ] Extract HYDRATE_MESSAGES mutator transformation into distinct and extensible transformer using the decorator/transformer pattern
- [ ] Remove expert api initSession from the module, only the chat method should be used moving forward, artefact of website implementation
- [ ] Cleanup unused actions
- [ ] Revisit async/sync state of actions based on return values
- [ ] Parametrize the ADD_MESSAGE mutation with a destructured object so we're aware of what properties it can support
- [ ] The handle message method initiates a new session id which it shouldn't that's handled by the backend. the only thing it should be doing is to start the session timer if no session id is present
- [ ] The backend will initiate the session id if one is not given to it
- [ ] Setting the session id should be done in the case one is not present when receiving a chat response
Related Issues
- Parent: #6254