Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Cleanup

Tomas Valentae0d04bea280f
diff --git a/api-service/codegen/callbacks/logs.py b/api-service/codegen/callbacks/logs.py
index 5b0a88031..64df0da9a 100644
--- a/api-service/codegen/callbacks/logs.py
+++ b/api-service/codegen/callbacks/logs.py
@@ -142,49 +142,7 @@ class LogsCallbackHandler(BaseCallbackHandler):
def on_agent_action(self, action: AgentAction, **kwargs: Any) -> Any:
"""Run on agent action."""
-
- # First parse the thought
- # The `action.log` should look like this:
- #
- # Thought: Lorem ipsum ...
- # Action:
- # ```
- # <action tool="$TOOL_NAME">
- # $INPUT
- # </action>
- # ```
pass
- # thought, _ = action.log.split("Action:")
- # thought = thought.removeprefix("Thought:")
- # thought = thought.strip()
- # self._logs.append(
- # {
- # "id": str(uuid.uuid4()),
- # "type": "thought",
- # "content": thought,
- # "created_at": str(datetime.datetime.now()),
- # }
- # )
-
- # # We save the UUID for this action so we can later
- # # update this action with its output.
- # self._current_action_id = str(uuid.uuid4())
- # self._logs.append(
- # {
- # "id": self._current_action_id,
- # "type": "tool",
- # "name": action.tool,
- # "input": action.tool_input,
- # "start_at": str(datetime.datetime.now()),
- # "finish_at": "",
- # "output": "",
- # }
- # )
-
- # self._database.push_logs(
- # run_id=self._run_id,
- # logs=self._logs,
- # )
def on_tool_error(
self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any
diff --git a/api-service/poetry.lock b/api-service/poetry.lock
index 1baaa8171..9ee655613 100644
--- a/api-service/poetry.lock
+++ b/api-service/poetry.lock
@@ -204,25 +204,6 @@ docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-
tests = ["attrs[tests-no-zope]", "zope.interface"]
tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990)", "mypy (>=0.971,<0.990)", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-mypy-plugins", "pytest-xdist[psutil]", "pytest-xdist[psutil]"]
-[[package]]
-name = "beautifulsoup4"
-version = "4.12.0"
-description = "Screen-scraping library"
-category = "main"
-optional = false
-python-versions = ">=3.6.0"
-files = [
- {file = "beautifulsoup4-4.12.0-py3-none-any.whl", hash = "sha256:2130a5ad7f513200fae61a17abb5e338ca980fa28c439c0571014bc0217e9591"},
- {file = "beautifulsoup4-4.12.0.tar.gz", hash = "sha256:c5fceeaec29d09c84970e47c65f2f0efe57872f7cff494c9691a26ec0ff13234"},
-]
-
-[package.dependencies]
-soupsieve = ">1.2"
-
-[package.extras]
-html5lib = ["html5lib"]
-lxml = ["lxml"]
-
[[package]]
name = "bleach"
version = "6.0.0"
@@ -1904,18 +1885,6 @@ files = [
{file = "sniffio-1.3.0.tar.gz", hash = "sha256:e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"},
]
-[[package]]
-name = "soupsieve"
-version = "2.4"
-description = "A modern CSS selector implementation for Beautiful Soup."
-category = "main"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "soupsieve-2.4-py3-none-any.whl", hash = "sha256:49e5368c2cda80ee7e84da9dbe3e110b70a4575f196efb74e51b94549d921955"},
- {file = "soupsieve-2.4.tar.gz", hash = "sha256:e28dba9ca6c7c00173e34e4ba57448f0688bb681b7c5e8bf4971daafc093d69a"},
-]
-
[[package]]
name = "sqlalchemy"
version = "1.4.46"
@@ -2409,4 +2378,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more
[metadata]
lock-version = "2.0"
python-versions = ">=3.8.1,<4.0"
-content-hash = "614cd15bcf0371ad5925b4f597a294007cef31dcf22d58bb8b06a07ddadf829c"
+content-hash = "acf08976f3aed6785e6ee41379c3593ef63272fa1afdb5139fed67049ba4c433"
diff --git a/api-service/pyproject.toml b/api-service/pyproject.toml
index ae26d3576..2fe8a987c 100644
--- a/api-service/pyproject.toml
+++ b/api-service/pyproject.toml
@@ -18,7 +18,6 @@ aenum = "^3.1.11"
python-dotenv = "^1.0.0"
openai = "^0.27.0"
realtime = "^1.0.0"
-beautifulsoup4 = "^4.12.0"
lxml = "^4.9.2"
cchardet = "^2.1.7"