Test creating from dict.
(self)
| 187 | assert d["reasoning_content"] == "I thought about this..." |
| 188 | |
| 189 | def test_from_dict(self): |
| 190 | """Test creating from dict.""" |
| 191 | data = {"role": "user", "content": "Hello"} |
| 192 | msg = Message.from_dict(data) |
| 193 | assert msg.role == MessageRole.USER |
| 194 | assert msg.content == "Hello" |
| 195 | |
| 196 | def test_get_tool_calls_typed(self): |
| 197 | """Test get_tool_calls_typed.""" |