Skip to content

Commit

Permalink
API Endpoints for Agency, Agent, Tool Configuration; Refactoring and …
Browse files Browse the repository at this point in the history
…Testing (#15)

- Add API endpoints:
  - /agent/config: GET, PUT for reading / updating agent configuration
  - tool:
    - /tool/config: GET, PUT for reading & updating tool configuration
    - /tool/approve endpoint to approve the code
- Separate Agent configuration from Agency configuration (a lot of changes due to massive refactoring required to support this)
- Separate business logic from data storage concerns, remove all storage operations from Pydantic models, move them to the repository layer. 

- Improve Testing
  - Increased test coverage from 72% to 81% while adding a lot of code. Aiming at covering 100% of the new code
  - Tested all functionality (except tool endpoints, they are not integrated yet) manually in Postman.
  
The latest API docs are here: https://api.ainhand.com/docs
  • Loading branch information
bonk1t authored Jan 9, 2024
1 parent 727b072 commit ced3a54
Show file tree
Hide file tree
Showing 53 changed files with 1,039 additions and 846 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install
- run: poetry run pytest --cov=src --cov-report=xml
- run: poetry run pytest --cov=nalgonda --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,5 @@ cython_debug/
.idea/

settings.json
config.json

.env
24 changes: 0 additions & 24 deletions chatgpt_plugins/market_right_side/ai-plugin.json

This file was deleted.

189 changes: 0 additions & 189 deletions chatgpt_plugins/market_right_side/openapi.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions chatgpt_plugins/market_right_side/plugin_testing.py

This file was deleted.

45 changes: 0 additions & 45 deletions deprecated/Requirement_Gathering_Guidelines_for_Analysts.txt

This file was deleted.

19 changes: 0 additions & 19 deletions deprecated/Software_Development_Guidelines_for_Developers.txt

This file was deleted.

Loading

0 comments on commit ced3a54

Please sign in to comment.