Parse arguments JSON string to dict.
(self)
| 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": |
no outgoing calls