Skip to content

Commit

Permalink
Merge pull request #7 from yashpokar/first-demo
Browse files Browse the repository at this point in the history
added first demo in the README.md
  • Loading branch information
yashpokar authored Apr 6, 2024
2 parents b6be154 + df67097 commit 7a4b410
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 26 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
indent_size = 4
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.PHONY: setup
setup: setup-docker
@pnpm install
@echo Makefile target: $@ completed

.PHONY: setup-docker
setup-docker:
@docker-compose up -d
@echo Makefile target: $@ completed

.PHONY: dev
dev:
@pnpm run dev
@echo Makefile target: $@ completed

.PHONY: build
build:
@pnpm run build
@echo Makefile target: $@ completed

.PHONY: lint
lint:
@pnpm run lint
@echo Makefile target: $@ completed

.PHONY: run
run: build
@pnpm run start
@echo Makefile target: $@ completed
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,48 @@

ManasAI, inspired by the groundbreaking [Devin AI](https://www.cognition-labs.com/introducing-devin) by Cognition Labs, is an open-source venture aiming to redefine software engineering through AI. This project harnesses advanced technologies for automating development tasks, enhancing code quality, and streamlining the software lifecycle. Ideal for developers and engineers seeking AI-augmented tools to boost productivity and innovation. Join us in pioneering the next wave of AI in software engineering with ManasAI.

<div align="center">
<img src=".assets/ManasAIFirstLook.png" alt="ManasAI" height="500" />
</div>
[Demo](https://github.com/yashpokar/ManasAI/assets/7402810/a53817c6-3071-4c19-9ebe-98ffdaebd7d2)

> [!IMPORTANT]
> Currently, The project is in its infancy and can be considered experimental. Many features are either not yet implemented or are not working as intended. We warmly welcome contributions to assist in its development and progress!
## Requirements

To ensure a smooth setup and operation of this project, please ensure your environment meets the following requirements:

### Node.js

- Node.js 16 or newer is required.
- You can download the latest version of Node.js from [the official Node.js website](https://nodejs.org/).

### Docker

- Docker and Docker Compose are required for containerization and orchestration.
- Follow the installation guides for Docker and Docker Compose on [the official Docker website](https://docs.docker.com/get-docker/) to set up on your system.

### pnpm

- pnpm is required as the package manager for this project.
- To install pnpm, ensure you have Node.js installed, then run `npm install -g pnpm` in your terminal.

## Installation

To install ManasAI, clone the repository and run the following command:

```shell
pnpm install
make setup
```

Create a `.env` file in the root directory and add the following environment variables:

```shell
cp .env.example .env
```

## Usage

To run ManasAI, execute the following command:

```shell
make run
```
3 changes: 2 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "nodemon",
"build": "rm -rf ./dist && tsc",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"test": "echo \"Yet to be implemented\""
"test": "echo \"Yet to be implemented\"",
"start": "node dist/index.js --trace-deprecation"
},
"keywords": [
"API",
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/core/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ The operating system is Ubuntu 20.04`
])

const model = new ChatOpenAI({
modelName: 'gpt-4-0125-preview',
temperature: 0
modelName: 'gpt-3.5-turbo',
temperature: 0.7
})

const modelWithFunctions = model.bind({
Expand All @@ -71,6 +71,6 @@ export const createAgentExecutor = (): AgentExecutor => {
return AgentExecutor.fromAgentAndTools({
agent: runnableAgent,
tools,
maxIterations: 20
maxIterations: 10
})
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "The Manas AI",
"scripts": {
"dev": "concurrently \"pnpm run ui:dev\" \"pnpm run api:dev\"",
"start": "concurrently \"nx run ui:preview --port 6288\" \"nx run api:dev\"",
"ui:dev": "nx run ui:dev",
"ui:build": "nx run ui:build",
"ui:lint": "nx run ui:lint",
Expand Down
18 changes: 0 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a4b410

Please sign in to comment.