(value: Any)
| 12 | |
| 13 | |
| 14 | def _to_api_object(value: Any) -> Any: |
| 15 | if isinstance(value, dict): |
| 16 | return APIObject({key: _to_api_object(item) for key, item in value.items()}) |
| 17 | if isinstance(value, list): |
| 18 | return [_to_api_object(item) for item in value] |
| 19 | return value |
| 20 | |
| 21 | |
| 22 | class AgentClientError(Exception): |