Giter VIP home page Giter VIP logo

ai-consultant's Introduction

AI Consultant

This is a software engineer consultant that given a description of an idea will create a plan and then attempt to implement and test it.

Installation

  1. Clone the repo
  2. poetry shell # activates virtual environment
  3. poetry install # install's dependencies
  4. cd isolation_env/python
  5. docker build -t python_isolation # create the docker image for the shell the assistant is allowed to use
  6. cd ../..
  7. echo ANTHROPIC_API_KEY=..." > .env # set the environment variable for the anthropic api key

Execution

python chat.py ${project_directory}

This will start the chatbot to work on the project in project_directory

Issues

The bot frequently forgets the rules for writing source files. It should emit a markdown block and then the write_file command but sometimes it emits the write_file command first. Usually it will figure out its mistake after a few surprises.

Code

  • agent/llm.py - Interacts with anthropic and provides the tool execution
  • agent/detector.py - Parsers that find the tool invocations in the LLM output
  • agent/shell.py - Provides the isolated execution environment to the agent (via docker)
  • consultant.prompt - The prompt that creates the consultant behavior and describes the tool use

ai-consultant's People

Contributors

eleanor-agent avatar

Watchers

Brian Taylor avatar

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.