Open valentimarco opened 2 weeks ago
Can you please brief more about the issue.
What to do with websocket notifications? I fixed the /message endpoint with the following (mutuated from ws interface):
@router.post("/message", response_model=CatMessage)
async def message_with_cat(
payload: Dict = Body({"text": "hello!"}),
stray=Depends(HTTPAuth(AuthResource.CONVERSATION, AuthPermission.WRITE)),
) -> Dict:
"""Get a response from the Cat"""
payload["user_id"] = stray.user_id
return await stray.__call__(payload)
The problem is that stray cat try to send notification to websocket producing a lot of warnings. Is that ok if I'll remove the warnings and I'll leave the current behaviour that simply ignore the notifications if ws is None?
At the moment,
/message
is mostly bugged when trying to interact with the agent.The last dev meeting, we discuss how can be: