Commit History
-
refactor(api): add LLM abstraction layer to replace hardcoded model strings
Replace hardcoded "google_genai:gemini-3-flash-preview" model references across all agent modules (supervisor, websearch, answer extractor, ocr reader) with configurable get_llm() function from agent.api.api modulebcdc55d -
feat(run): add retry mechanism with error handling to agent entry point
Implement retry logic in the run() function with max_retries parameter (default 3). On failure, append error context to help the agent retry with a simpler approach. Add recursion_limit config of 30 to prevent infinite loops. Also update answer extractor output to wrap answer in quotes for better visibility.97fc18c -
feat(agent): add answer extraction module and integrate into run function
Add new answer_extractor module that processes agent responses to extract clean answers. Refactor main entry point to use the simplified run() function instead of interactive loop.da8c40b