griptape icon indicating copy to clipboard operation
griptape copied to clipboard

Add support for custom dependencies in tools

Open vasinov opened this issue 1 year ago • 1 comments

BaseTool should have a dependencies property that can be used to add custom dependencies to tools. This is useful for tools like SqlClient.

vasinov avatar May 20 '23 05:05 vasinov

@vasinov In the case of SqlClient, we cannot install dependencies on tool instantiation because it requires a SqlDriver to create the tool. And the SqlDriver will throw an error if the necessary dependencies are not already installed i.e. psycopg2.

collindutter avatar Sep 12 '23 20:09 collindutter