(obj: Any)
| 16006 | |
| 16007 | @staticmethod |
| 16008 | def from_dict(obj: Any) -> 'TaskAgentInfo': |
| 16009 | assert isinstance(obj, dict) |
| 16010 | agent_type = from_str(obj.get("agentType")) |
| 16011 | description = from_str(obj.get("description")) |
| 16012 | id = from_str(obj.get("id")) |
| 16013 | prompt = from_str(obj.get("prompt")) |
| 16014 | started_at = from_datetime(obj.get("startedAt")) |
| 16015 | status = TaskStatus(obj.get("status")) |
| 16016 | tool_call_id = from_str(obj.get("toolCallId")) |
| 16017 | active_started_at = from_union([from_datetime, from_none], obj.get("activeStartedAt")) |
| 16018 | active_time_ms = from_union([from_int, from_none], obj.get("activeTimeMs")) |
| 16019 | can_promote_to_background = from_union([from_bool, from_none], obj.get("canPromoteToBackground")) |
| 16020 | completed_at = from_union([from_datetime, from_none], obj.get("completedAt")) |
| 16021 | error = from_union([from_str, from_none], obj.get("error")) |
| 16022 | execution_mode = from_union([TaskExecutionMode, from_none], obj.get("executionMode")) |
| 16023 | idle_since = from_union([from_datetime, from_none], obj.get("idleSince")) |
| 16024 | latest_response = from_union([from_str, from_none], obj.get("latestResponse")) |
| 16025 | model = from_union([from_str, from_none], obj.get("model")) |
| 16026 | resolved_model = from_union([from_str, from_none], obj.get("resolvedModel")) |
| 16027 | result = from_union([from_str, from_none], obj.get("result")) |
| 16028 | return TaskAgentInfo(agent_type, description, id, prompt, started_at, status, tool_call_id, active_started_at, active_time_ms, can_promote_to_background, completed_at, error, execution_mode, idle_since, latest_response, model, resolved_model, result) |
| 16029 | |
| 16030 | def to_dict(self) -> dict: |
| 16031 | result: dict = {} |
nothing calls this directly
no test coverage detected