refactor(core): StructuredOutput types, timeout increase, provider loading#78
Conversation
…ading - Update ParameterMapper.parse_output to use StructuredOutput return type - Update Client._parse_content to use StructuredOutput return type - Increase HTTP default timeout from 60s to 180s - Add provider entry point loading in registry - Update test assertions for new timeout value
Code Review: refactor(core): StructuredOutput types, timeout increase, provider loadingSummaryThis PR introduces several improvements to the core codebase: stronger type safety with ✅ Strengths1. Type Safety ImprovementsThe introduction of
2. Well-Tested ChangesAll test files have been updated to match the new signatures:
3. Provider Loading SeparationThe new
🔍 Issues & Concerns1. Timeout Increase Lacks Justification
|
Summary
ParameterMapper.parse_outputto useStructuredOutputreturn type for type safetyClient._parse_contentto useStructuredOutputreturn typeChanges
src/celeste/parameters.py: StructuredOutput return typesrc/celeste/client.py: StructuredOutput return typesrc/celeste/http.py: DEFAULT_TIMEOUT = 180.0src/celeste/registry.py: Provider entry point loadingsrc/celeste/auth.py: Use entry point loading functiontests/unit_tests/test_client.py: Update test helpers for StructuredOutputtests/unit_tests/test_http.py: Update timeout assertionsTest plan