feat: US-006 - Add AsyncCallback type and AsyncTool interface

- Define AsyncCallback function type for async tool completion notification
- Define AsyncTool interface with SetCallback method
- Add comprehensive godoc comments with usage examples
- This enables tools like SpawnTool to notify completion asynchronously

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yinwm
2026-02-12 19:35:41 +08:00
parent b573d61a58
commit 56ac18ab70
3 changed files with 73 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
"Typecheck passes"
],
"priority": 6,
"passes": false,
"passes": true,
"notes": ""
},
{