Version 1.2.2. Added usage overview. Shows token used and cost in $.
This commit is contained in:
@@ -62,6 +62,14 @@ class BaseTool(ABC):
|
||||
"input_schema": self.input_schema,
|
||||
}
|
||||
|
||||
async def should_confirm(self, **kwargs) -> bool:
|
||||
"""
|
||||
Return True if this specific call requires confirmation.
|
||||
Override in subclasses for per-call logic (e.g. domain allow-lists).
|
||||
Default: return self.requires_confirmation.
|
||||
"""
|
||||
return self.requires_confirmation
|
||||
|
||||
def confirmation_description(self, **kwargs) -> str:
|
||||
"""
|
||||
Human-readable description of the action shown to the user
|
||||
|
||||
Reference in New Issue
Block a user