Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/draive/tools/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(
"_check_availability",
availability_check
or (
lambda: True # available by default
lambda meta: True # available by default
),
)
self._format_result: ToolResultFormatting[Result]
Expand Down Expand Up @@ -148,7 +148,11 @@ def available(self) -> bool:
try:
return self._check_availability(meta=self.meta)

except Exception:
except Exception as e:
ctx.log_error(
"Availability check exception",
exception=e,
)
return False

# call as a tool
Expand Down