Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update docs

Tomas Valenta2764922f539c
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f1698ab22..1ef7d7896 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ Here is an [example code for adding a new provider](./NEW_PROVIDER_EXAMPLE.md).
- Add provider name to `ModelProvider` enum in [state/model.ts](state/model.ts)
- Add provider and models template to `modelTemplates` object in [state/model.ts](state/model.ts)
- `creds` and `args` defined in the `modelTemplates` are accessible on backend in `get_model` under their exact names in `config["args"]` object.
-- Add provider's PNG icon image to `public/`
+- Add provider's PNG icon image to [`public/`](public/open-ai.png) in a resolution that is bigger than 30x30 px.
- Add provider's icon path to `iconPaths` object in [components/icons/ProviderIcon.tsx](components/icons/ProviderIcon.tsx)
## 2. Add provider to **backend** ([api-service/models/base.py](api-service/models/base.py))
@@ -22,7 +22,7 @@ Here is an [example code for adding a new provider](./NEW_PROVIDER_EXAMPLE.md).
The new provider integrations should be placed in `api-service/models/providers/`.
## Provider integrations
-We use [LangChain](https://github.com/hwchase17/langchain) under the hood, so if you are adding a new integration you have to implement the `BaseLanguageModel` class. That means implementing the `_acall` async method that calls the model with a prompt and returns the output. We then use this method for calling the model.
+We use [LangChain](https://github.com/hwchase17/langchain) under the hood, so if you are adding a new integration you have to implement the `BaseLanguageModel` class. That means implementing the `_acall` async method that calls the model with a prompt and returns the output and also calling `self.callback_manager.on_llm_new_token` from inside the `_acall` method to diggest the output.
### **Using [LangChain](https://python.langchain.com/en/latest/modules/models/llms/integrations.html) integration**
You can often use existing LangChain integrations to add new model providers to e2b with just a few modifications.
diff --git a/DEVELOPMENT_SETUP.md b/DEVELOPMENT_SETUP.md
new file mode 100644
index 000000000..439b6f09b
--- /dev/null
+++ b/DEVELOPMENT_SETUP.md
@@ -0,0 +1,45 @@
+# πŸ’» Development setup
+For developing with hot reloading and contributing to the project you may want to run the app locally without Docker (`npm start` command). Here are the steps for how to do it.
+
+You will need:
+- OpenAI API key (support for more and custom models coming soon)
+- Docker (For starting the Supabase DB locally)
+- Node.js *16+*
+- Python *3.10+*
+- Poetry *1.3.2+*
+- Free ports 3000, 49155, 49160, 54321, 54322
+
+## 1. Install dependencies
+```
+npm run install:all
+```
+
+## 2. Start local Supabase
+```
+npm run db:start
+```
+
+Local Supabase runs in the background - to stop it you have to run `npm run db:stop`.
+
+## 3. Add env vars
+Create `.env` file by copying the [`.env.example`](.env.example)
+```
+cp .env.example .env
+```
+and fill in the following variables:
+- `SUPABASE_SERVICE_ROLE_KEY` - Supabase service role key you got in the previous step as `service_role key: eyJh......`
+- `NEXT_PUBLIC_SUPABASE_ANON_KEY` - Supabase anonymous key you got in the previous step as `anon key: eyJh......`
+
+## 4. Start the app
+```
+npm run dev
+```
+Then open page on [http://localhost:3000](http://localhost:3000) and sign in with the testing credentials:
+
+**Email**
+
+
+**Password**
+
diff --git a/README.md b/README.md
index e38396a30..e8b42a28e 100644
--- a/README.md
+++ b/README.md
@@ -50,52 +50,10 @@ Then open page on [http://localhost:3000](http://localhost:3000).
`npm start` starts local Supabase in the background - to stop it you have to run `npm run stop`.
-## πŸ’» Or start in development setup
-For developing with hot reloading and contributing to the project you may want to run the app locally without Docker (`npm start` command). Here are the steps for how to do it.
-
-You will need:
-- OpenAI API key (support for more and custom models coming soon)
-- Docker (For starting the Supabase DB locally)
-- Node.js *16+*
-- Python *3.10+*
-- Poetry *1.3.2+*
-- Free ports 3000, 49155, 49160, 54321, 54322
-
-### 1. Install dependencies
-```
-npm run install:all
-```
-
-### 2. Start local Supabase
-```
-npm run db:start
-```
-
-Local Supabase runs in the background - to stop it you have to run `npm run db:stop`.
-
-### 3. Add env vars
-Create `.env` file by copying the [`.env.example`](.env.example)
-```
-cp .env.example .env
-```
-and fill in the following variables:
-- `SUPABASE_SERVICE_ROLE_KEY` - Supabase service role key you got in the previous step as `service_role key: eyJh......`
-- `NEXT_PUBLIC_SUPABASE_ANON_KEY` - Supabase anonymous key you got in the previous step as `anon key: eyJh......`
-
-### 4. Start the app
-```
-npm run dev
-```
-Then open page on [http://localhost:3000](http://localhost:3000) and sign in with the testing credentials:
-
-**Email**
-
-
-**Password**
-
+## πŸ’» Development setup
+For developing with hot reloading and contributing to the project you may want to run the app locally without Docker (`npm start` command).
+[Follow these steps](DEVELOPMENT_SETUP.md) to set it up.
# Features
## πŸ›  Bring your own X
@@ -132,6 +90,9 @@ We think the AI-powered IDE for the future should be open-sourced and allow anyb
- [GitHub issues](https://github.com/e2b-dev/e2b/issues) - for reporting bugs
- [Twitter](https://twitter.com/e2b_dev) - to stay up to date
+# 🀝 Contributing
+We welcome any contributions! If you want to contribute to the project check out the [contibution guide](CONTRIBUTING.md) and join our [Discord](https://discord.gg/dSBY3ms2Qr).
+
# πŸ“† Roadmap
1. Make sure people can run e2b locally without issues and the DX is smooth.
2. Add support for more models.