langchain
027638af - Add validation on agent instantiation for multi-input tools (#3681)

Commit
3 years ago
Add validation on agent instantiation for multi-input tools (#3681) Tradeoffs here: - No lint-time checking for compatibility - Differs from JS package - The signature inference, etc. in the base tool isn't simple - The `args_schema` is optional Pros: - Forwards compatibility retained - Doesn't break backwards compatibility - User doesn't have to think about which class to subclass (single base tool or dynamic `Tool` interface regardless of input) - No need to change the load_tools, etc. interfaces Co-authored-by: Hasan Patel <mangafield@gmail.com>
Author
Committer
Parents
Loading