Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
commit
Vasek Mlejnsky5b16fa8f0293
diff --git a/api-service/poetry.lock b/api-service/poetry.lockindex 8e4bd3115..ce4baf029 100644--- a/api-service/poetry.lock+++ b/api-service/poetry.lock@@ -1006,14 +1006,14 @@ testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-chec[[package]]name = "langchain"-version = "0.0.112"+version = "0.0.113"description = "Building applications with LLMs through composability"category = "main"optional = falsepython-versions = ">=3.8.1,<4.0"files = [- {file = "langchain-0.0.112-py3-none-any.whl", hash = "sha256:3e55e9e767ee22e1f7a3dd423a52e714c444bd2207932f88b80db75ba481ff1f"},- {file = "langchain-0.0.112.tar.gz", hash = "sha256:554fdb8544b8e6bed600c95f3ced58b3f51035ccd625d786b6445efd4171953b"},+ {file = "langchain-0.0.113-py3-none-any.whl", hash = "sha256:9e146d116fd3b9b2210c8c447cabfa20ef27c26ea3f2bc986eab97d1dad0aab6"},+ {file = "langchain-0.0.113.tar.gz", hash = "sha256:a494fe02bc63da4bcda7da8d7f4a346522fbc87f0a4955b72519ec2ed86bf906"},][package.dependencies]@@ -1027,7 +1027,7 @@ SQLAlchemy = ">=1,<2"tenacity = ">=8.1.0,<9.0.0"[package.extras]-all = ["aleph-alpha-client (>=2.15.0,<3.0.0)", "anthropic (>=0.2.2,<0.3.0)", "beautifulsoup4 (>=4,<5)", "cohere (>=3,<4)", "deeplake (>=3.2.9,<4.0.0)", "elasticsearch (>=8,<9)", "faiss-cpu (>=1,<2)", "google-api-python-client (==2.70.0)", "google-search-results (>=2,<3)", "huggingface_hub (>=0,<1)", "jinja2 (>=3,<4)", "manifest-ml (>=0.0.1,<0.0.2)", "networkx (>=2.6.3,<3.0.0)", "nlpcloud (>=1,<2)", "nltk (>=3,<4)", "nomic (>=1.0.43,<2.0.0)", "openai (>=0,<1)", "opensearch-py (>=2.0.0,<3.0.0)", "pinecone-client (>=2,<3)", "pypdf (>=3.4.0,<4.0.0)", "qdrant-client (>=1.0.4,<2.0.0)", "redis (>=4,<5)", "sentence-transformers (>=2,<3)", "spacy (>=3,<4)", "tensorflow-text (>=2.11.0,<3.0.0)", "tiktoken (>=0,<1)", "torch (>=1,<2)", "transformers (>=4,<5)", "weaviate-client (>=3,<4)", "wikipedia (>=1,<2)", "wolframalpha (==5.0.0)"]+all = ["aleph-alpha-client (>=2.15.0,<3.0.0)", "anthropic (>=0.2.2,<0.3.0)", "beautifulsoup4 (>=4,<5)", "cohere (>=3,<4)", "deeplake (>=3.2.9,<4.0.0)", "elasticsearch (>=8,<9)", "faiss-cpu (>=1,<2)", "google-api-python-client (==2.70.0)", "google-search-results (>=2,<3)", "huggingface_hub (>=0,<1)", "jinja2 (>=3,<4)", "manifest-ml (>=0.0.1,<0.0.2)", "networkx (>=2.6.3,<3.0.0)", "nlpcloud (>=1,<2)", "nltk (>=3,<4)", "nomic (>=1.0.43,<2.0.0)", "openai (>=0,<1)", "opensearch-py (>=2.0.0,<3.0.0)", "pgvector (>=0.1.6,<0.2.0)", "pinecone-client (>=2,<3)", "psycopg2-binary (>=2.9.5,<3.0.0)", "pypdf (>=3.4.0,<4.0.0)", "qdrant-client (>=1.0.4,<2.0.0)", "redis (>=4,<5)", "sentence-transformers (>=2,<3)", "spacy (>=3,<4)", "tensorflow-text (>=2.11.0,<3.0.0)", "tiktoken (>=0,<1)", "torch (>=1,<2)", "transformers (>=4,<5)", "weaviate-client (>=3,<4)", "wikipedia (>=1,<2)", "wolframalpha (==5.0.0)"]llms = ["anthropic (>=0.2.2,<0.3.0)", "cohere (>=3,<4)", "huggingface_hub (>=0,<1)", "manifest-ml (>=0.0.1,<0.0.2)", "nlpcloud (>=1,<2)", "openai (>=0,<1)", "torch (>=1,<2)", "transformers (>=4,<5)"][[package]]@@ -2230,4 +2230,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 = "140f35b6df2ed2cee0eed9eb3aceded6095ced61b5c5916a5a96a7d91010c8dd"+content-hash = "e4afc69d50e3cefb33c542b34c36d3db7ba3167b6c1aaa8d2e9a7b9ae9088eea"diff --git a/api-service/pyproject.toml b/api-service/pyproject.tomlindex 17d46e7aa..4670d69b0 100644--- a/api-service/pyproject.toml+++ b/api-service/pyproject.toml@@ -8,7 +8,7 @@ authors = ["Devbook <[email protected]>"]python = ">=3.8.1,<4.0"flask = "^2.2.3"gunicorn = "^20.1.0"-langchain = "^0.0.112"+langchain = "^0.0.113"supabase = "^1.0.1"flask-cors = "^3.0.10"python-dateutil = "^2.8.2"diff --git a/api-service/test.py b/api-service/test.pyindex 13d1880e2..e39b34217 100644--- a/api-service/test.py+++ b/api-service/test.py@@ -114,9 +114,12 @@ class CustomChatAgent(ChatAgent):return "Final Answer", text.split(FINAL_ANSWER_ACTION)[-1].strip()_, action, _ = text.split("```")try:+ # TODO: Here we can change the JSON formated `action` + `action_input` to something+ # more suited to our use-case so the model doesn't need to escape the generated code.response = json.loads(action.strip())return response["action"], response["action_input"]except Exception as e:+ # TODO: I think this is buggy. I haven't really had a chance to properly test it and debug the model's behavior.print(f"====== Got exception '{str(e)}' when parsing json:\n{action.strip()}")