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

Method get_arguments_dict

src/mcp_cli/chat/models.py:58–64  ·  view source on GitHub ↗

Parse arguments JSON string to dict.

(self)

Source from the content-addressed store, hash-verified

56 model_config = {"frozen": False}
57
58 def get_arguments_dict(self) -> dict[str, Any]:
59 """Parse arguments JSON string to dict."""
60 try:
61 result = json.loads(self.arguments)
62 return dict(result) if isinstance(result, dict) else {}
63 except json.JSONDecodeError:
64 return {}
65
66 @classmethod
67 def from_dict_args(cls, name: str, arguments: dict[str, Any]) -> "FunctionCallData":

Calls

no outgoing calls