Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "draive"
description = "Framework designed to simplify and accelerate the development of LLM-based applications."
version = "0.71.2"
version = "0.71.3"
readme = "README.md"
maintainers = [
{ name = "Kacper Kaliński", email = "kacper.kalinski@miquido.com" },
Expand All @@ -21,7 +21,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
license = { file = "LICENSE" }
dependencies = ["numpy~=2.2", "haiway~=0.22"]
dependencies = ["numpy~=2.2", "haiway~=0.23"]

[project.urls]
Homepage = "https://miquido.com"
Expand Down
9 changes: 5 additions & 4 deletions src/draive/tools/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ def __init__(
object.__setattr__(
self,
"_check_availability",
availability_check
or (
lambda _: True # available by default
),
availability_check or _available, # available by default
)
self.format_result: ToolResultFormatting[Result]
object.__setattr__(
Expand Down Expand Up @@ -215,6 +212,10 @@ async def __call__(
)


def _available(meta: Meta) -> bool:
return True


class ToolWrapper(Protocol):
def __call__[**Args, Result](
self,
Expand Down
Loading