Giter Site home page Giter Site logo

oliveirabruno01 / babyagi-asi Goto Github PK

View Code? Open in Web Editor NEW
748.0 18.0 87.0 219 KB

BabyAGI: an Autonomous and Self-Improving agent, or BASI

License: MIT License

Python 99.30% Dockerfile 0.70%
agi ai autonomous-agents chain-of-thought program-of-thoughts

babyagi-asi's People

Contributors

amrrs avatar davidbyttow avatar eltociear avatar farhanahmad15 avatar francip avatar jdban avatar joedevon avatar malikmalna avatar mikekelly avatar oliveirabruno01 avatar peteoxenham avatar rellfy avatar sanity avatar tooktheredbean avatar yoheinakajima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

babyagi-asi's Issues

TypeError: string indices must be integers

heres an error that comes up (i want to make a trading bot)

codename ExecutionAgent:
Chain of thoughts: - I need to create tasks to keep following my objective;

  • I should start by researching the best trading strategies for the chosen assets and create a plan;
  • I need to collect historical and real-time data for the chosen assets;
  • I need to preprocess the data and train myself using this data;
  • I need to optimize my model, evaluate its performance, and make necessary improvements;
  • I need to integrate risk management features and deploy the trading bot on a suitable platform using provided APIs;
  • I must keep my progress and any decisions I make along the way informed to the user.

Answer:
def action(self):
self.task_list.append('Research and define winning trading strategy')
self.task_list.append('Collect historical and real-time data for the chosen assets')
self.task_list.append('Preprocess the data and train the model')
self.task_list.append('Optimize the model and evaluate its performance')
self.task_list.append('Integrate risk management features and deploy the trading bot')
self.task_list.append('Keep the user informed of progress and decisions')
return 'Tasks created successfully.'
Traceback (most recent call last):
File "C:\ai\babyagi-asi-main\main.py", line 43, in
+ "\n".join([f"{t['task_id']}: {t['task_name']}" for t in AI.task_list])
File "C:\ai\babyagi-asi-main\main.py", line 43, in
+ "\n".join([f"{t['task_id']}: {t['task_name']}" for t in AI.task_list])
TypeError: string indices must be integers

I can't get it to run

I have followed the setup steps, similar to babyagi. However, when I try to give an objective and task list(copied from the readme and fixed the typo TASK->TASKS) it doesn't produce anything and goes on to a new cmd line. Seems something is missing

Baby won't consistently save to file

Babyagi-asi will perform tasks as suggested. However, it has inconsistencies with saving a file.

4/17/ - Baby saved a CSV of it's results, as instructed, on it's first run. User opened it, read it, there was data. User closed it, opened it again, ran baby - and poof contents were gone.

Has anyone experienced similar inconsistencies or issues with baby?

Risks ⚠️

Hello @oliveirabruno01 ! I appreciate the effort and innovation behind this project. However, I'd like to express my concerns regarding the potential risks associated with allowing AI agents to run arbitrary code. This feature could lead to unintended consequences, such as security vulnerabilities, unauthorized access to sensitive data, or the creation of harmful applications. I encourage the developers to consider the ethical implications and potential dangers of this functionality, and to adopt best practices in AI safety and security to protect users and the wider community. Thank you for your attention to this matter.

It went a bit off the rails XD

1: Task 76000: Research and identify the best practices
2: Task 100000: Research and identify the best practices for securely storing API keys in mobile applications.
3: Task 104000: Research and identify the best practices for securely storing API keys in web applications.
4: Task 116000: Research and identify the best practices for securely storing API keys in server.
5: Task 132000: Research and identify the best practices for securely storing API keys in desktop application

Anyone got tips how to write the prompt so that it does not go off the rails?

pip install chromadb (Apple Mac Intel)

Screenshot 2023-05-31 at 8 24 57 PM

after preferring this step:
pip install -r requirements.txt

next step:
pip install chromadb

triggered the error in the screenshot or some of the output below:

`Collecting sniffio>=1.1 (from anyio<5,>=3.4.0->starlette<0.28.0,>=0.27.0->fastapi>=0.85.1->chromadb)
Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Building wheels for collected packages: hnswlib
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
creating var
creating var/folders
creating var/folders/74
creating var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn
creating var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/tmp2jdfgizr.cpp -o var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/tmp2jdfgizr.o -std=c++14
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/tmp1z1wcoh9.cpp -o var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/tmp1z1wcoh9.o -fvisibility=hidden
building 'hnswlib' extension
creating build
creating build/temp.macosx-10.9-universal2-cpython-311
creating build/temp.macosx-10.9-universal2-cpython-311/python_bindings
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/pip-build-env-7d_4mk1p/overlay/lib/python3.11/site-packages/pybind11/include -I/private/var/folders/74/yww65htx3dsg1jp0jd03gdvh0000gn/T/pip-build-env-7d_4mk1p/overlay/lib/python3.11/site-packages/numpy/core/include -I./hnswlib/ -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c ./python_bindings/bindings.cpp -o build/temp.macosx-10.9-universal2-cpython-311/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO="0.7.0" -std=c++14 -fvisibility=hidden
clang: error: the clang compiler does not support '-march=native'
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects`

Traceback (most recent call last): File "/Users/richardhuszar/babyagi-asi/babyagi.py", line 1, in <module> import openai, prompts, consts, pinecone, os, subprocess, tiktoken, json File "/Users/richardhuszar/babyagi-asi/prompts.py", line 2, in <module> import psutil ModuleNotFoundError: No module named 'psutil'

I got this error:

Traceback (most recent call last):
File "/Users/richardhuszar/babyagi-asi/babyagi.py", line 1, in
import openai, prompts, consts, pinecone, os, subprocess, tiktoken, json
File "/Users/richardhuszar/babyagi-asi/prompts.py", line 2, in
import psutil
ModuleNotFoundError: No module named 'psutil'

I tried these commands:
pip install psutil
pip3 install psutil
... and uninstall psutil and reinstall but same problem. Any recommandations? Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.