(taskID string)
| 287 | return record |
| 288 | } |
| 289 | |
| 290 | func (rt *AgentTaskRuntime) CompleteForegroundTask(record *AgentTaskRecord, terminationReason string) { |
| 291 | rt.setForegroundTaskTerminal(record, "completed", terminationReason) |
| 292 | } |
| 293 | |
| 294 | func (rt *AgentTaskRuntime) FailForegroundTask(record *AgentTaskRecord, terminationReason string) { |
| 295 | rt.setForegroundTaskTerminal(record, "failed", terminationReason) |
| 296 | } |
| 297 |