refactor(session): tighten cross-session access
This commit is contained in:
1 parent
f15ea84dd1
commit
62d34b5eb7
15 files changed
+792
-299
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user