chore: add unit test for router and implement command router
ref: N25B-205
This commit is contained in:
@@ -32,9 +32,9 @@ class RICommandAgent(Agent):
|
||||
|
||||
# Try to get body
|
||||
try:
|
||||
message_json = json.loads(body.decode("utf-8"))
|
||||
message = SpeechCommand.model_validate(message_json)
|
||||
|
||||
message = SpeechCommand.model_validate(body)
|
||||
|
||||
|
||||
# Send to the robot.
|
||||
await self.agent.pubsocket.send_json(message)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user