modelfusion
modelfusion copied to clipboard
Code execution tool
Hi there,
Is it possible to build something similar to PythonREPLTool() (Langchain) to JS/Nodejs ecosystem?
great idea!
+1
Perhaps one using @e2b-dev ?
Reopening for tracking. @sahanxdissanayake please unsubscribe if you don't want to follow.
@mattapperson yes - e2b is one of the options. Ideally there would be multiple tools that could be extensions. In core, I'd only implement a JS execution tool - and even for that I'm not sure if it should be in core bc of security, reliability, prompts, etc.
I agree with that thinking. Even just for package bloat. it would be nice imho to have a convention for tool naming / tags in npm as people make and share their own tools rather then perpetuating the practice of all tools needing to be in the same repo as perpetuated by some other popular llm libraries
@mattapperson 💯
Tools are pretty easy (TM) to implement, at east from the ModelFusion interface side, see e.g. https://github.com/lgrammel/modelfusion/tree/main/extensions/google-custom-search-tool
A naming convention would be nice. Maybe I need to write up more on how to create and publish a custom tool to make it easier.