()
| 51 | } |
| 52 | |
| 53 | func (r AgentTaskRecord) ToMap() map[string]any { |
| 54 | b, _ := json.Marshal(r) |
| 55 | out := map[string]any{} |
| 56 | _ = json.Unmarshal(b, &out) |
| 57 | if r.ParentTaskID == "" { |
| 58 | out["parent_task_id"] = nil |
| 59 | } |
| 60 | return out |
| 61 | } |
| 62 | |
| 63 | type TaskNotification struct { |
| 64 | NotificationID string |
no outgoing calls
no test coverage detected