modelfusion icon indicating copy to clipboard operation
modelfusion copied to clipboard

Code execution tool

Open sahanxdissanayake opened this issue 1 year ago • 6 comments

Hi there,

Is it possible to build something similar to PythonREPLTool() (Langchain) to JS/Nodejs ecosystem?

sahanxdissanayake avatar Oct 13 '23 23:10 sahanxdissanayake

great idea!

lgrammel avatar Oct 14 '23 01:10 lgrammel

+1

bigrig2212 avatar Nov 05 '23 16:11 bigrig2212

Perhaps one using @e2b-dev ?

mattapperson avatar Dec 09 '23 23:12 mattapperson

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.

lgrammel avatar Dec 10 '23 08:12 lgrammel

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 avatar Dec 10 '23 13:12 mattapperson

@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.

lgrammel avatar Dec 10 '23 13:12 lgrammel