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

Method to_dict

src/mcp_cli/tools/models.py:68–70  ·  view source on GitHub ↗

Convert to dictionary.

(self)

Source from the content-addressed store, hash-verified

66 return cls.model_validate(data) # type: ignore[no-any-return]
67
68 def to_dict(self) -> dict[str, Any]:
69 """Convert to dictionary."""
70 return self.model_dump(mode="json") # type: ignore[no-any-return]
71
72
73# ──────────────────────────────────────────────────────────────────────────────

Callers 1

Calls 1

model_dumpMethod · 0.45

Tested by 1