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 -
chore(agent): remove verbose research complete banner from web search output
b70637a -
refactor(agent): split websearch agent into separate modules
Split monolithic websearch.py into websearchagent.py and websearchagents.py to improve code organization and maintainability. The supervisor agent now has access to both individual websearch_agent and aggregated web_search_agents.a394be7
-
chore(agent): enhance supervisor prompts and increase websearch recursion limit
Add "any" and "must" to make supervisor routing directives more emphatic and increase websearch recursion_limit from 3 to 6 to allow more thorough search results314810a -
fix(websearch): add recursion limit and error handling for search agent
Add recursion_limit=3 configuration and GraphRecursionError handling to prevent infinite loops in the web search agent. The agent now returns a partial result message when the recursion limit is reached instead of crashing.cee18af -
chore: remove __pycache__ bytecode files from version control
2f08174 -
feat(agent): implement supervisor agent with tool routing and math solver
- Replace single websearch agent with supervisor agent architecture - Add math_solver tool using sympy for calculation queries - Implement tool routing logic (math vs web search) in supervisor prompt - Add interactive chat loop with conversation history - Enhance terminal output with colored logging (colorama) - Update dependencies: sympy, colorama40deb66