mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-31 12:54:29 +01:00
Implement create task (#11)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -13,7 +13,8 @@ class AutoGPT:
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user