Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation flow cr #50

Open
wants to merge 174 commits into
base: Code-Generation-Flow-CR
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
29c4a95
feat: code update
c-ravela Sep 11, 2024
8fccb07
feat: updated models
c-ravela Sep 11, 2024
a1a042c
feat: add new states
c-ravela Sep 11, 2024
be98e01
feat: fix linting
c-ravela Sep 11, 2024
1f3a557
feat: fix lint
c-ravela Sep 11, 2024
e0f99d0
feat: update code
c-ravela Sep 11, 2024
58049bc
feat: add new member
c-ravela Sep 11, 2024
57ed64e
feat: add member
c-ravela Sep 11, 2024
ef2d9ba
feat: update code
c-ravela Sep 11, 2024
0f3c568
feat: code fix
c-ravela Sep 12, 2024
9570260
feat: add new dependencies
c-ravela Sep 18, 2024
128a6c3
feat: code update
c-ravela Sep 18, 2024
0bc61e6
feat: code update
c-ravela Sep 18, 2024
f07def4
feat: code update
c-ravela Sep 18, 2024
0dfdd63
feat: update code
c-ravela Sep 18, 2024
4f0a762
feat: update code
c-ravela Sep 18, 2024
5245549
feat: update model
c-ravela Sep 18, 2024
6d93ef8
feat: add new models
c-ravela Sep 18, 2024
b2e6248
feat: prompts updated
c-ravela Sep 18, 2024
99b6e40
feat: add new prompts
c-ravela Sep 18, 2024
70ab32e
feat: add new tool
c-ravela Sep 18, 2024
4186292
feat: fix linting
c-ravela Sep 18, 2024
d143527
feat: update code
c-ravela Sep 20, 2024
2f0ad9f
feat: update code
c-ravela Sep 20, 2024
5dc3f3e
feat: add new tool
c-ravela Sep 20, 2024
d49b534
feat: add new prompt
c-ravela Sep 20, 2024
7914d6f
feat: update code
c-ravela Sep 20, 2024
83d2d33
feat: remove unwanted code
c-ravela Sep 20, 2024
bbcb4ae
feat: updated code
c-ravela Sep 20, 2024
978d274
feat: improvised error message
c-ravela Sep 20, 2024
5126146
feat: updated python version
c-ravela Oct 1, 2024
2862aea
feat: updated dependencies
c-ravela Oct 1, 2024
bc5f96d
feat: updated code
c-ravela Oct 1, 2024
a32065a
feat: updated state
c-ravela Oct 1, 2024
58680e6
feat: updated code
c-ravela Oct 1, 2024
054dd70
feat: updated code
c-ravela Oct 1, 2024
1037341
feat: updated code
c-ravela Oct 1, 2024
a0f5ac2
feat: updated code
c-ravela Oct 1, 2024
963c1cc
feat: updated state
c-ravela Oct 1, 2024
37054de
feat: updated code
c-ravela Oct 1, 2024
0f0300c
feat: updated code
c-ravela Oct 1, 2024
c7a8b01
feat: updated code
c-ravela Oct 1, 2024
a09d183
feat: added new models
c-ravela Oct 1, 2024
507ce6b
feat: add new models
c-ravela Oct 1, 2024
b602fb2
feat: updated prompts
c-ravela Oct 1, 2024
78d88d3
feat: updated prompts
c-ravela Oct 1, 2024
c4fc94d
feat: updated prompts
c-ravela Oct 1, 2024
59bf523
feat: initial commit
c-ravela Oct 9, 2024
b08e23f
feat: updated code
c-ravela Oct 9, 2024
ccbd61b
feat: add new dependency
c-ravela Oct 9, 2024
0ffc090
feat: fix linting
c-ravela Oct 9, 2024
cccb906
feat: updated configs
c-ravela Oct 9, 2024
c11062f
feat: update code
c-ravela Oct 9, 2024
3209dbc
feat: initial commit
c-ravela Oct 9, 2024
095cd15
feat: initial commit
c-ravela Oct 9, 2024
84f363e
feat: updated code
c-ravela Oct 9, 2024
f166049
feat: updated code
c-ravela Oct 9, 2024
4eab5b6
feat: added validation to model
c-ravela Oct 9, 2024
80c2525
feat: updated config
c-ravela Oct 9, 2024
c2e4baf
feat: refactored code
c-ravela Oct 9, 2024
cd4d354
feat: fix typo
c-ravela Oct 9, 2024
875ffad
feat: refactored code
c-ravela Oct 9, 2024
f093727
feat: updated code
c-ravela Oct 9, 2024
98e8d92
feat: updated model
c-ravela Oct 9, 2024
822b240
feat: config updated
c-ravela Oct 11, 2024
4dedb7c
feat: updated code
c-ravela Oct 11, 2024
a7753e5
feat: code fix
c-ravela Oct 11, 2024
b1d7702
Merge branch 'intelops:Code-Generation-Flow-CR' into Code-Generation-…
c-ravela Oct 14, 2024
028c04d
feat: prompt update
c-ravela Oct 16, 2024
bfd2d20
ci: add .deepsource.toml
deepsource-io[bot] Oct 24, 2024
8fb34c5
feat: updated versions
c-ravela Oct 25, 2024
a54695b
feat: updated config
c-ravela Oct 25, 2024
175edfe
Merge branch 'Code-Generation-Flow-CR' of github.com:c-ravela/genpod-…
c-ravela Oct 25, 2024
89dc09f
feat: updated code
c-ravela Oct 25, 2024
3c6e787
feat: updated state
c-ravela Oct 25, 2024
5f07d45
feat: added new models
c-ravela Oct 25, 2024
b8d7405
feat: updated validation
c-ravela Oct 25, 2024
5117101
feat: updated validation
c-ravela Oct 25, 2024
cd5f9e0
feat: updated prompt
c-ravela Oct 25, 2024
86160c0
feat: fix lint issues
c-ravela Oct 29, 2024
a452d4f
feat: update code
c-ravela Oct 29, 2024
c55e4ef
feat: updated config
c-ravela Oct 29, 2024
0a3f0ca
feat: code update
c-ravela Oct 29, 2024
663c287
feat: fix linting
c-ravela Oct 29, 2024
2809fcc
feat: update code
c-ravela Oct 29, 2024
29f8195
feat: update models
c-ravela Oct 29, 2024
b56b005
feat: fix lint issues and bug
c-ravela Oct 29, 2024
d97a97f
feat: fix lint issues
c-ravela Oct 29, 2024
ac0949d
feat: bug fix
c-ravela Oct 29, 2024
289dcf4
feat: updated tester state
c-ravela Oct 29, 2024
6b052ba
feat: fix linting issues
c-ravela Oct 29, 2024
ace5d78
feat: update tester
c-ravela Oct 29, 2024
be2079c
feat: update code
c-ravela Oct 29, 2024
fa44d67
feat: updated linting and prompts
c-ravela Oct 30, 2024
cfc74ab
feat: updated config
c-ravela Oct 30, 2024
ba3bb78
feat: fix linting
c-ravela Oct 30, 2024
57d8a87
feat: updated models
c-ravela Oct 30, 2024
cfb64dd
feat: fix linting
c-ravela Oct 30, 2024
7cfaf9d
feat: bug fix
c-ravela Oct 30, 2024
3b7b806
feat: fix linting
c-ravela Oct 30, 2024
1a4ae96
feat: updated prompt
c-ravela Nov 4, 2024
776bd61
feat: updated code
c-ravela Nov 4, 2024
c279f88
feat: updated code
c-ravela Nov 4, 2024
16e29ce
feat: updated config
c-ravela Nov 4, 2024
a12a344
feat: updated code
c-ravela Nov 4, 2024
93ba92d
feat: config updated
c-ravela Nov 5, 2024
e9a36b3
feat: updated config
c-ravela Nov 5, 2024
72e69b6
feat: updated code
c-ravela Nov 5, 2024
346a5ac
feat: updated code
c-ravela Nov 5, 2024
91dc1d8
feat: add new function
c-ravela Nov 5, 2024
2d978b8
feat: code update
c-ravela Nov 14, 2024
2ec5cf9
feat: updated prompts
c-ravela Nov 14, 2024
d3aee51
feat: updated prompts
c-ravela Nov 19, 2024
32ceab5
feat: add genpod installation and cli shell scripts
c-ravela Dec 3, 2024
67cbacb
feat: update config
c-ravela Dec 3, 2024
fbdbec7
feat: updated code
c-ravela Dec 3, 2024
fe6c506
feat: add installation steps
c-ravela Dec 3, 2024
b3a6cf6
feat: updated dependencies
c-ravela Dec 3, 2024
274c04c
feat: updated code
c-ravela Dec 3, 2024
ccefbba
feat: updated code
c-ravela Dec 3, 2024
a0be5f1
feat: updated state
c-ravela Dec 3, 2024
5f1a99d
feat: updated code
c-ravela Dec 3, 2024
0c6f16e
feat: updated code
c-ravela Dec 3, 2024
bd6a217
feat: updated code
c-ravela Dec 3, 2024
977f632
feat: updated schema
c-ravela Dec 3, 2024
eb3ff07
feat: updated code
c-ravela Dec 3, 2024
e575922
feat: updated code
c-ravela Dec 3, 2024
0595ef2
feat: updated config
c-ravela Dec 3, 2024
f7ee41d
feat: initial commit
c-ravela Dec 3, 2024
468d556
feat: initial commit
c-ravela Dec 3, 2024
28ea4bf
feat: initial commit
c-ravela Dec 3, 2024
e011815
feat: db logic updated with SQL Alchemy
c-ravela Dec 5, 2024
dadd538
feat: update driving logic
c-ravela Dec 5, 2024
987d60b
feat: updated logic
c-ravela Dec 5, 2024
a1902f8
feat: added logger statements
c-ravela Dec 5, 2024
c560155
feat: added logging statements
c-ravela Dec 5, 2024
e7b802b
feat: fix linting
c-ravela Dec 6, 2024
1f2dcfb
feat: add logging
c-ravela Dec 7, 2024
6d7e0d7
feat: renamed files
c-ravela Dec 7, 2024
2d6b355
feat: updated code
c-ravela Dec 7, 2024
33e02f9
feat: updated imports
c-ravela Dec 7, 2024
8eaac1a
feat: updated imports
c-ravela Dec 7, 2024
1e4058c
feat: updated imports
c-ravela Dec 7, 2024
d917cf6
feat: updated imports
c-ravela Dec 7, 2024
1dc784b
feat: updated imports
c-ravela Dec 7, 2024
7c62ae6
feat: updated imports
c-ravela Dec 7, 2024
e73619b
feat: updated imports
c-ravela Dec 7, 2024
8bcac36
feat: fixed linting
c-ravela Dec 7, 2024
ea863f1
feat: updated architect code
c-ravela Dec 9, 2024
aee8f83
feat: updated code
c-ravela Dec 9, 2024
bdcd510
feat: updated the code
c-ravela Dec 9, 2024
81334c7
feat: updated the code
c-ravela Dec 10, 2024
eaab49d
feat: updated code
c-ravela Dec 10, 2024
eeb2f40
feat: updated code
c-ravela Dec 10, 2024
8648f0c
feat: updated code
c-ravela Dec 10, 2024
8de8c75
feat: imports
c-ravela Dec 10, 2024
3ee4597
feat: updated dependencies
c-ravela Dec 10, 2024
7cfd0ca
feat: updated imports
c-ravela Dec 10, 2024
9a04b6a
feat: bug fix
c-ravela Dec 16, 2024
b1bfc89
feat: initial commit
c-ravela Dec 16, 2024
7accb18
feat: add new entity
c-ravela Dec 16, 2024
85d4be1
feat: added new relationships
c-ravela Dec 16, 2024
bc3433f
feat: fix bug
c-ravela Dec 16, 2024
202ec14
feat: updated logic
c-ravela Dec 16, 2024
c5cf117
feat: udpated logic
c-ravela Dec 16, 2024
60c6e73
feat: added new command
c-ravela Dec 16, 2024
4ea0f30
feat: added crud operations for analytics
c-ravela Dec 16, 2024
a65932e
feat: updated function signature
c-ravela Dec 17, 2024
1faff3f
feat: added new action
c-ravela Dec 17, 2024
f87b171
feat: add new action
c-ravela Dec 17, 2024
d4ebe41
feat: organized code and add new command
c-ravela Dec 17, 2024
5bb6d4e
feat: updated script
c-ravela Dec 17, 2024
369e659
feat: updated logic
c-ravela Dec 20, 2024
bc8b500
feat: updated create_tables logic
c-ravela Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version = 1

[[analyzers]]
name = "python"

[analyzers.meta]
runtime_version = "3.x.x"

[[analyzers]]
name = "shell"

[[analyzers]]
name = "docker"

[[transformers]]
name = "isort"
23 changes: 17 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# Base Image
FROM python:3.12.3
FROM python:3.12.7

# Working directory in the container
# Set the working directory in the container
WORKDIR /opt/genpod

# copy files to the container workspace
COPY . .
# Copy requirements file first to leverage Docker cache
COPY requirements.txt .

# Install system dependencies and Python packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
make \
less \
sqlite3 && \
rm -rf /var/lib/apt/lists/* && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir semgrep==1.93.0

# update and install necessary packages
RUN apt-get update && apt-get install -y make less sqlite3 && pip install -r requirements.txt
# Copy the rest of the application files
COPY . .

# Default command to keep the container running
CMD ["sleep", "infinity"]
119 changes: 113 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,114 @@
# GenPod's LLM and AI backend codebase repo

## **Installation**

Follow these steps to install GENPOD on your system:

### **Prerequisites**

Before installation, ensure the following dependencies are met:

- **Operating System:** Linux, macOS, or Windows (using [WSL](https://learn.microsoft.com/en-us/windows/wsl/) or [Git Bash](https://gitforwindows.org/)).
- **Required Tools:** `bash`, `python3` (version 3.6 or later), and `pip`.
- **Permissions:** Write access to the desired installation directory.

---

#### **Installation Steps**

1. **Clone the Repository**
Download the `Genpod` source code to your local machine:

```bash
git clone [email protected]:intelops/genpod-ai-backend.git
cd genpod-ai-backend
```

2. **Run the Installation Script**
Execute the `install.sh` script based on your setup:

- **Default Installation** (to `/usr/local/bin`):

```bash
bash install.sh
```

- **Custom Installation Path**:
Specify a writable installation directory:

```bash
INSTALL_PATH=/custom/path bash install.sh
```

- **System-Wide Installation** (requires `sudo`):

```bash
sudo bash install.sh
```

3. **Verify Installation**
Confirm the installation by running the `genpod` command:

```bash
genpod --version
```

If the application starts successfully, the installation is complete.

---

### **Troubleshooting**

- **Permission Issues:**
Run the installation script with `sudo`:

```bash
sudo bash install.sh
```

- **Command Not Found:**
Add the installation directory to your `PATH`. For example, if installed in `$HOME/.local/bin`:

```bash
export PATH="$HOME/.local/bin:$PATH"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```

- **Dependency Issues:**
Verify your Python and pip versions:

```bash
python3 --version
pip --version
```

- **Custom Path Errors:**
Ensure the directory exists and is writable:

```bash
mkdir -p /custom/path
INSTALL_PATH=/custom/path bash install-genpod.sh
```

---

### **Uninstallation**

To uninstall GENPOD:

1. **System-Wide Installation (default path):**

```bash
rm -rf /usr/local/bin/genpod /usr/local/bin/genpod_src
```

2. **Custom Path Installation:**

```bash
rm -rf /custom/path/genpod /custom/path/genpod_src
```

## Docker-Based Development Setup

This guide provides steps to set up your development environment using Docker.
Expand Down Expand Up @@ -36,28 +145,26 @@ jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --allow-root

Here are some additional Docker commands that you might find useful:

* **Remove/Delete a Docker container**:
- **Remove/Delete a Docker container**:

```bash
docker rm <container_name_or_id>
```

* **Remove/Delete a Docker image**:
- **Remove/Delete a Docker image**:

```bash
docker rmi <image_id_or_name>
```

* **Run a Docker image**:
- **Run a Docker image**:

```bash
docker run -it <image_name>
```

* **Stop a Docker container**:
- **Stop a Docker container**:

```bash
docker stop <container_name_or_id>
```

---
67 changes: 0 additions & 67 deletions agents/agent/agent.py

This file was deleted.

Loading