tools library
Contains core abstractions related to tools.
Classes
- FakeTool
- Fake tool for testing. It just returns the input string as is.
-
StringTool<
Options extends ToolOptions> - Base class for tools that accept a single string input and returns a string output.
-
Tool<
Input extends Object, Options extends ToolOptions, Output extends Object> - A LangChain tool.
- ToolOptions
- Generation options to pass into the Tool.
- ToolSpec
- The specification of a LangChain tool without the actual implementation.
Exceptions / Errors
- ToolException
- An exception that a tool throws when execution error occurs.