From 8b44ecb6cca412b21f2c9293592dc8375eeea15a Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Wed, 16 Aug 2023 21:49:11 -0700 Subject: [PATCH] Implement create task (#11) Signed-off-by: Merwane Hamadi --- .github/workflows/ci.yml | 1 + autogpt/agent.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2e29f92378..30b7126987b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,7 @@ jobs: - name: Run regression tests run: | poetry run python -m autogpt & + cp .env.example .env newman run https://raw.githubusercontent.com/Significant-Gravitas/devtool-postman/master/Postman%20Collections/devtool_experience.json --env-var "url= http://127.0.0.1:8000" || echo "The backend is not ready yet, so the tests will fail" env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/autogpt/agent.py b/autogpt/agent.py index db79e5b5e74..63a9cf578a7 100644 --- a/autogpt/agent.py +++ b/autogpt/agent.py @@ -13,7 +13,8 @@ async def task_handler(self, task: Task) -> None: print(f"task: {task.input}") await Agent.db.create_step(task.task_id, task.input, is_last=True) time.sleep(2) - autogpt.utils.run(task.input) + + # autogpt.utils.run(task.input) the task_handler only creates the task, it doesn't execute it # print(f"Created Task id: {task.task_id}") return task