Create a task. Args: task_data: The task data. Returns: The task ID. Raises: TripoRequestError: If the request fails. TripoAPIError: If the API returns an error.
(self, task_data: Dict[str, Any])
| 198 | |
| 199 | |
| 200 | async def create_task(self, task_data: Dict[str, Any]) -> str: |
| 201 | """ |
| 202 | Create a task. |
| 203 | |
| 204 | Args: |
| 205 | task_data: The task data. |
| 206 | |
| 207 | Returns: |
| 208 | The task ID. |
| 209 | |
| 210 | Raises: |
| 211 | TripoRequestError: If the request fails. |
| 212 | TripoAPIError: If the API returns an error. |
| 213 | """ |
| 214 | response = await self._impl._request("POST", "/task", json_data=task_data) |
| 215 | return response["data"]["task_id"] |
| 216 | |
| 217 | async def get_balance(self) -> Balance: |
| 218 | """ |
no test coverage detected