* refactor: remove redundant code and use config imports
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: standardize token tracking in search and read tools
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: standardize console logging with colors and levels
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add centralized token tracking utility
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: integrate token tracking across all tools
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add token tracking and colored console output to agent
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
- Add centralized config.ts for API keys and model settings
- Track token usage from all Gemini model calls
- Update tools to return token usage alongside results
- Fix const reassignment in agent.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>