Skip to content

Feat/optimizer microservice#51

Merged
AdarshaAP merged 2 commits into
developfrom
feat/optimizer-microservice
Jan 29, 2026
Merged

Feat/optimizer microservice#51
AdarshaAP merged 2 commits into
developfrom
feat/optimizer-microservice

Conversation

@AdarshaAP
Copy link
Copy Markdown
Contributor

No description provided.

gowthamrao and others added 2 commits January 29, 2026 00:49
* feat: containerize coreason-optimizer as microservice

- Add fastapi and uvicorn dependencies
- Define AgentDefinition and OptimizationRequest schemas
- Implement server.py with DynamicConstruct adapter and Bridged clients
- Update Dockerfile to run uvicorn
- Add server tests

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>

* feat: containerize coreason-optimizer as microservice

- Add fastapi and uvicorn dependencies
- Define AgentDefinition and OptimizationRequest schemas
- Implement server.py with DynamicConstruct adapter and Bridged clients
- Update Dockerfile to run uvicorn
- Add server tests
- Fix linting and typing issues in server code

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>

* fix(ci): address linting, typing, and coverage issues in server implementation

- Fix `B904` linting errors in `server.py` by adding `from e`.
- Fix Mypy `no-any-return` errors in `server.py` using `cast`.
- Fix Mypy errors in `tests/test_server_basic.py` (return types, indexing).
- Add `test_optimize_semantic_success` to improve coverage of the semantic selector path in `server.py`.
- Apply code formatting via `ruff`.
- Achieve 100% test coverage.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>

* feat: containerize coreason-optimizer as microservice

- Add fastapi and uvicorn dependencies
- Define AgentDefinition and OptimizationRequest schemas
- Implement server.py with DynamicConstruct adapter and Bridged clients
- Update Dockerfile to run uvicorn
- Add server tests
- Fix linting and typing issues in server code (B904, Mypy)
- Apply ruff formatting and sorting imports

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AdarshaAP AdarshaAP merged commit 597ff41 into develop Jan 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants