Fix tests

This commit is contained in:
Dickson Tsai 2025-07-30 23:56:21 -07:00
parent a63ccd31ec
commit a83f779c55
No known key found for this signature in database

View file

@ -69,7 +69,8 @@ def parse_message(data: dict[str, Any]) -> Message:
is_error=block.get("is_error"),
)
)
return UserMessage(content=user_content_blocks)
return UserMessage(content=user_content_blocks)
return UserMessage(content=data["message"]["content"])
except KeyError as e:
raise MessageParseError(
f"Missing required field in user message: {e}", data