* Interface for provider methods needed by AttemptCompletionTool for delegation handling.
| 25 | * Interface for provider methods needed by AttemptCompletionTool for delegation handling. |
| 26 | */ |
| 27 | interface DelegationProvider { |
| 28 | getTaskWithId(id: string): Promise<{ historyItem: HistoryItem }> |
| 29 | reopenParentFromDelegation(params: { |
| 30 | parentTaskId: string |
| 31 | childTaskId: string |
| 32 | completionResultSummary: string |
| 33 | costrictWorkflowMode?: string |
| 34 | costrictWorkflowSpecScope?: string |
| 35 | }): Promise<void> |
| 36 | } |
| 37 | |
| 38 | export class AttemptCompletionTool extends BaseTool<"attempt_completion"> { |
| 39 | readonly name = "attempt_completion" as const |
no outgoing calls
no test coverage detected