refactor(agent): add turn hook factories

This commit is contained in:
chengyongru
2026-07-08 21:02:12 +08:00
committed by Xubin Ren
parent 04dbf17426
commit 8559458258
7 changed files with 248 additions and 32 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class MyTool(Tool, ContextAware):
"_session_locks", "_active_tasks", "_background_tasks",
# Security boundaries (inspect + modify both blocked)
"restrict_to_workspace", "channels_config",
"_concurrency_gate", "_unified_session", "_extra_hooks",
"_concurrency_gate", "_unified_session", "_extra_hooks", "_hook_factories",
})
READ_ONLY = frozenset({