Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code execution tool #137

Open
sahanxdissanayake opened this issue Oct 13, 2023 · 6 comments
Open

Code execution tool #137

sahanxdissanayake opened this issue Oct 13, 2023 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sahanxdissanayake
Copy link

sahanxdissanayake commented Oct 13, 2023

Hi there,

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

@lgrammel
Copy link
Collaborator

great idea!

@lgrammel lgrammel changed the title equivalent to PythonREPLTool in langchain Code execution tool Oct 23, 2023
@lgrammel lgrammel added the enhancement New feature or request label Nov 3, 2023
@bigrig2212
Copy link

+1

@mattapperson
Copy link

Perhaps one using @e2b-dev ?

@lgrammel
Copy link
Collaborator

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 lgrammel assigned lgrammel and unassigned lgrammel Dec 10, 2023
@lgrammel lgrammel added the help wanted Extra attention is needed label Dec 10, 2023
@mattapperson
Copy link

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

@lgrammel
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants