mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
da7b51455c
I think the logic of https://github.com/hwchase17/langchain/pull/3684#pullrequestreview-1405358565 is too confusing. I prefer this alternative because: - All `Tool()` implementations by default will be treated the same as before. No breaking changes. - Less reliance on pydantic magic - The decorator (which only is typed as returning a callable) can infer schema and generate a structured tool - Either way, the recommended way to create a custom tool is through inheriting from the base tool |
||
---|---|---|
.. | ||
__init__.py | ||
test_agent.py | ||
test_mrkl.py | ||
test_react.py | ||
test_sql.py | ||
test_tools.py |