Safe Run • AI Agent SDK
safe_run: Execute tool with error handling, returning ToolResult.
safe_run
Method
</div>
Execute tool with error handling, returning ToolResult.
Signature
def safe_run() -> ToolResultReturns
ResponseField
ToolResultThe result of the operation.
Uses
runToolResultlogging.error
Source
View on GitHubpraisonaiagents/tools/base.py at line 310