-
Notifications
You must be signed in to change notification settings - Fork 254
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
tool: Implement E2B's code interpreter #44
base: main
Are you sure you want to change the base?
Conversation
Thanks for the contribution! Looking into it today. |
Hi mlejva - we're so excited for your contribution, we're going to create a package for community tools for users to browse and add. Thanks for taking the time to add this! Were you able to get it working in your env? |
Hi @elaineg!
I forgot to add it to Please let me know if you have any other issues with running my PR so I could fix them. I'd love to get rendering charts working before we merge because that's one of the most powerful features of our code interpreter:
|
Hi @elaineg @rodrigue-h, is there anything I can help with? We're demoing Cohere's toolkit with our code interpreter on our developer meetup that we're hosting with LangChain Here's one of the demos we have prepared. We kind of had to hack together the plot rendering as it wasn't very easy to send the non-message data on the frontend. |
Hey @mlejva! Sorry it took us so long to get back to you. We just added a new |
Hi @lusmoura super sorry for the late answer, I'll look into it probably Friday and latest over the weekend! |
Hi @mlejva, let us know if you have any further questions regarding the new |
Hi @tianjing-li , I'm sorry I got distracted by bunch of things around running the company. I'm aiming to get this done this week. |
Hello Cohere team!
Thank you for this great template! I'm following up with this PR based on the discussion I had with Nick on Twitter.
Description:
This PR adds E2B's code interpretes.
E2B is an open-source secure runtime for AI agents and AI apps. We have a dedicated SDK for code interpreting built on top of our sandboxes. Each sandbox is a micro VM that we can quickly spawn (usually around 900-1.5s). It's like a small computer for AI. The sandbox is made for running untrusted AI-generated code in isolation (it's built on top of Firecracker from AWS).
Dependencies:
Docs, lints, and test:
make lint
andmake test
Needed help from the Cohere team:
The E2B code interpreter supports generating and streaming charts. This is achieved byt the code interpreter running a full Jupyter server inside the E2B sandbox.
Here's an example notebook of Llama-3 using our code interpreter for generating charts
My questions:
MessageContent.tsx
component be the best place to implement displaying the charts and other rich content?Thank you!