refactor(session): tighten cross-session access

This commit is contained in:
Xubin Ren committed 2026-08-04 12:14:51 +08:00
1 parent f15ea84dd1
commit 62d34b5eb7
15 files changed
+792 -299

No files matched your search

+4
View File
@@ -216,6 +216,10 @@ class Tool(ABC):
def create(cls, ctx: ToolContext) -> Tool:
return cls()
def available(self) -> bool:
"""Return whether this tool is available in the current request."""
return True
def runtime_context_provider(self) -> RuntimeContextProvider | None:
"""Return optional per-turn prompt context owned by this tool."""
return None