Giter Site home page Giter Site logo

e2b-dev / e2b-cookbook Goto Github PK

View Code? Open in Web Editor NEW
193.0 2.0 32.0 125.33 MB

Examples and guides for using the E2B API

Home Page: https://e2b.dev/docs

JavaScript 4.45% TypeScript 81.81% CSS 13.75%
cookbook e2b guides javascript openai python python3 sdk typescript example

e2b-cookbook's Introduction

✴️ E2B Cookbook

Example code and guides for building with E2B's Code Interpreter.

Examples

Hello World

LLM Providers

AI Frameworks

Getting started with E2B

1. Get API key

Sign up and get your E2B API key.

2. Install code interpreter SDK

We have built a dedicated SDK for adding code interpreting to your AI apps.

3. Check out Hello World example

Check out the TypeScript and Python hello world examples.

4. Explore documentation

Visit our docs at e2b.dev/docs.

e2b-cookbook's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

e2b-cookbook's Issues

ai-developer: Git not detected

MacOS X Catalina 10.15.7
Not detecting git

Output:
🤖 AI developer

✅ GitHub token loaded

Logging into GitHub...

✅ Logged in

What GitHub repo do you want to work in? Specify it like this: your_username/your_repo_name.

natzar/TshirtDesignerjs

🔄 Cloning the repo...

[Sandbox] Cloning into '/home/user/repo'...

🤖 The AI developer is working in the cloned repo

What do you want to do?

I want to add a new button

Assistant is currently in status: queued (waiting for OpenAI)
Assistant is currently in status: in_progress (waiting for OpenAI)
Assistant is currently in status: completed (waiting for OpenAI)

✅ Run completed
Thread finished: It seems that the environment currently available does not have Git installed, which is necessary
to clone the repository for review and modernization.

To proceed with the modernization process, I will require an environment with Git installed. Once the environment
is ready, please provide the access, and I can continue with the next steps.

🤖 The AI developer is working in the cloned repo

What do you want to do?

No access to '/home/user/repo'

MACOSX Catalina

$ poetry run start

🤖 AI developer

✅ GitHub token loaded

Logging into GitHub...

✅ Logged in

What GitHub repo do you want to work in? Specify it like this: your_username/your_repo_name.

natzar/European-Neighborhoods-Json-Coords

🔄 Cloning the repo...

[Sandbox] Cloning into '/home/user/repo'...

🤖 The AI developer is working in the cloned repo

What do you want to do?

add more neighborhood geo boundaries. Can we add bilbao.json containing neighborhoods and their coordinates like the other cities and files?

Assistant is currently in status: queued (waiting for OpenAI)
Assistant is currently in status: in_progress (waiting for OpenAI)
Assistant is currently in status: completed (waiting for OpenAI)

✅ Run completed
Thread finished: It seems that the specified directory '/home/user/repo' does not exist in this environment. In
order to proceed, I need to have access to the codebase repository
. Could you please provide me with the necessary
access or share the codebase with me so that I can begin working on adding the Bilbao geo boundary file?

🤖 The AI developer is working in the cloned repo

What do you want to do?

Any workaround?

AI developer failing on GitHub integration

A user reported this issue in an email with the following logs

> Assistant is currently in status: requires_action (waiting for OpenAI)
⠴ [Sandbox Action] Making a pull request: from 'ai-developer-FjuYC' to 'main'
[Sandbox] Switched to a new branch 'ai-developer-FjuYC'
[Sandbox] remote:
[Sandbox] remote: Create a pull request for 'ai-developer-FjuYC' on GitHub by visiting:
[Sandbox] remote:      https://github.com/dubnest/groupsync/pull/new/ai-developer-FjuYC
[Sandbox] remote:
[Sandbox] To https://github.com/dubnest/groupsync.git
[Sandbox]  *       ai-developer-FjuYC -> ai-developer-FjuYC
[Sandbox] branch 'ai-developer-FjuYC' set up to track 'origin/ai-developer-FjuYC'.
[Sandbox] pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between main and ai-developer-FjuYC, Base ref must be a branch (createPullRequest)
⠧        Error: Error creating pull request:
        pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between main and ai-developer-FjuYC, Base ref must be a branch (createPullRequest)
> Assistant is currently in status: in_progress (waiting for OpenAI)
> Assistant is currently in status: requires_action (waiting for OpenAI)
⠼ [Sandbox Action] Committing with the message: Create a branch for handling zero-member Slack groups changes
[Sandbox] On branch ai-developer-FjuYC
[Sandbox] Your branch is up to date with 'origin/ai-developer-FjuYC'.
[Sandbox]
[Sandbox] nothing to commit, working tree clean
⠸        Error: Error committing changes: On branch ai-developer-FjuYC
Your branch is up to date with 'origin/ai-developer-FjuYC'.

nothing to commit, working tree clean

> Assistant is currently in status: in_progress (waiting for OpenAI)
> Assistant is currently in status: requires_action (waiting for OpenAI)
⠴ [Sandbox Action] Saving content to: /[home/user/repo/src/groupsync/integrations/slack/groups.py](http://home/user/repo/src/groupsync/integrations/slack/groups.py)
⠦ [Sandbox Action] Committing with the message: Add handle_empty_group function to manage zero-member Slack groups
[Sandbox]  Add handle_empty_group function to manage zero-member Slack groups
[Sandbox]  1 file changed, 9 insertions(+), 427 deletions(-)
> Assistant is currently in status: in_progress (waiting for OpenAI)
> Assistant is currently in status: requires_action (waiting for OpenAI)
⠧ [Sandbox Action] Making a pull request: from 'ai-developer-UrTBP' to 'main'
[Sandbox] Switched to a new branch 'ai-developer-UrTBP'
[Sandbox] remote:
[Sandbox] remote: Create a pull request for 'ai-developer-UrTBP' on GitHub by visiting:
[Sandbox] remote:      https://github.com/dubnest/groupsync/pull/new/ai-developer-UrTBP
[Sandbox] remote:
[Sandbox] To https://github.com/dubnest/groupsync.git
[Sandbox]  *       ai-developer-UrTBP -> ai-developer-UrTBP
[Sandbox] branch 'ai-developer-UrTBP' set up to track 'origin/ai-developer-UrTBP'.
[Sandbox] pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between main and ai-developer-UrTBP, Base ref must be a branch (createPullRequest)
⠏        Error: Error creating pull request:
        pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between main and ai-developer-UrTBP, Base ref must be a branch (createPullRequest)
> Assistant is currently in status: in_progress (waiting for OpenAI)
> Assistant is currently in status: requires_action (waiting for OpenAI)
⠹ [Sandbox Action] Committing with the message: Implement handling of zero-member Slack groups
[Sandbox] On branch ai-developer-UrTBP
[Sandbox] Your branch is up to date with 'origin/ai-developer-UrTBP'.
[Sandbox]
[Sandbox] nothing to commit, working tree clean
⠙        Error: Error committing changes: On branch ai-developer-UrTBP
Your branch is up to date with 'origin/ai-developer-UrTBP'.

nothing to commit, working tree clean

> Assistant is currently in status: in_progress (waiting for OpenAI)
> Assistant is currently in status: completed (waiting for OpenAI)

✅ Run completed
Thread finished: It appears there is still an issue with creating a new branch and committing the changes I've added to the `[groups.py](http://groups.py/)` file. This is certainly not the expected behavior, and I apologize for the
repeated inconvenience.

Given the complications with branch creation and pull requests, I would proceed by manually creating a feature branch, commit the changes, and then create a pull request for the same. However, I must inform you
that due to the limitations of my current environment, I cannot manually intervene in the repository setup or git commands.

As an alternative, could you please check if the branch permissions or settings in the repository could be preventing the automatic creation of a new branch and subsequent pull request? Once any potential issues
with the repository configuration have been resolved, we can retry the commit and pull request creation process.

If you could verify the repository settings or provide updated instructions that consider these limitations, I will make another attempt at submitting the changes for review.


🤖 The AI developer is working in the cloned repo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.