-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2f3014
commit a8ba1c9
Showing
5 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from libertai_agents.interfaces.tools import Tool | ||
|
||
|
||
def test_function_example_tool(basic_function_for_tool): | ||
libertai_tool = Tool.from_function(basic_function_for_tool) | ||
assert libertai_tool.name == basic_function_for_tool.__name__ | ||
def test_function_example_tool(fake_get_temperature_tool): | ||
libertai_tool = Tool.from_function(fake_get_temperature_tool) | ||
assert libertai_tool.name == fake_get_temperature_tool.__name__ | ||
|
||
|
||
# TODO: add test with Python 3.10+ union style when https://github.com/huggingface/transformers/pull/35103 merged + new release |