vision-agent
vision-agent copied to clipboard
feat(chat): add list_siblings endpoint and service method for sibling…
… messages
- Implemented the
list_siblingsendpoint in the router to retrieve all sibling messages for a specified message, including the message itself, sorted by ID. - Added the
list_siblingsmethod in theMessageServiceclass to handle the logic for fetching sibling messages based on theparent_id. - Enhanced error handling to raise a
NotFoundErrorif the specified message does not exist, improving robustness in message retrieval. - Updated docstrings for both the endpoint and service method to provide clear documentation on parameters, return values, and exceptions.