Skip to content

Commit

Permalink
Merge pull request #13 from vishwamartur/fix-installation-issues
Browse files Browse the repository at this point in the history
Fix installation issues and update project structure
  • Loading branch information
alanalanlu authored Nov 5, 2024
2 parents 6a57cfa + 8257287 commit 110056e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ Let's assume we want to download utility bills:
```
poetry shell
```
4. Run the following command to spawn a browser:
4. Register the Poetry virtual environment with Jupyter:
```
poetry run ipython kernel install --user --name=integuru
```
5. Run the following command to spawn a browser:
```
poetry run python create_har.py
```
Log into your platform and perform the desired action (such as downloading a utility bill).
5. Run Integuru:
6. Run Integuru:
```
poetry run python -m integuru --prompt "download utility bills" --model gpt-4o
poetry run integuru --prompt "download utility bills" --model gpt-4o
```
You can also run it via Jupyter Notebook `main.ipynb`

Expand All @@ -67,8 +71,8 @@ Let's assume we want to download utility bills:
After setting up the project, you can use Integuru to analyze and reverse-engineer API requests for external platforms. Simply provide the appropriate .har file and a prompt describing the action that you want to trigger.

```
poetry run python -m integuru --help
Usage: python -m integuru [OPTIONS]
poetry run integuru --help
Usage: integuru [OPTIONS]
Options:
--model TEXT The LLM model to use (default is gpt-4o)
Expand Down
1 change: 0 additions & 1 deletion integuru/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,3 @@ def find_key_by_string_in_value(dictionary: Dict[str, Dict[str, Any]], search_st
return key
return None


2 changes: 0 additions & 2 deletions integuru/models/DAGManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,3 @@ def __str__(self):
attrs = self.graph.nodes[node_id]
nodes_info.append(f"{node_id}: {attrs}")
return "\n".join(nodes_info)


4 changes: 2 additions & 2 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "integration_agent",
"display_name": "integuru",
"language": "python",
"name": "integration_agent"
"name": "integuru"
},
"language_info": {
"codemirror_mode": {
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ networkx = "^3.3"
matplotlib = "^3.9.2"
ipykernel = "^6.29.5"

[tool.poetry.scripts]
integuru = "integuru.__main__:cli"

[build-system]
requires = ["poetry-core"]
Expand Down
Empty file removed tests/__init__.py
Empty file.

0 comments on commit 110056e

Please sign in to comment.