Containerize coreason-optimizer as an Optimization Microservice#50
Conversation
- 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>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- 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>
…mentation - 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>
- 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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
- Bump version in pyproject.toml to 0.3.0 - Add fastapi and uvicorn to requirements.txt - Create docs/requirements.md - Create docs/usage.md documenting Server Mode - Update README.md to feature Microservice capabilities Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
Implements the server mode for coreason-optimizer using FastAPI.
This allows the optimizer to run as a microservice accepting JSON payloads.
Includes:
server_schemas.py)server.py) withDynamicConstructadapter andBridgedLLMClient/BridgedEmbeddingProviderto support synchronous strategies with async clients.PR created automatically by Jules for task 9642741905693359806 started by @gowthamrao