MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_from_dict

Method test_from_dict

tests/chat/test_models.py:189–194  ·  view source on GitHub ↗

Test creating from dict.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected