You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/exa/tests/integration_tests/test_find_similar_tool.py

14 lines
392 B
Python

from langchain_exa import ExaFindSimilarResults
def test_similarity_tool() -> None:
tool = ExaFindSimilarResults()
res = tool.invoke(
{
"url": "https://boutiquejapan.com/when-is-the-best-time-of-year-to-visit-japan/",
"num_results": 5,
}
)
print(res) # noqa: T201
assert not isinstance(res, str) # str means error for this tool