* fix: update evaluator tests to use proper AnswerAction type
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: increase token budget and mock external calls in agent test
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* test: add Docker build and container tests
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add health check endpoint for Docker container verification
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: add Docker test script to package.json
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* ci: add Docker test step to CI workflow
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused stdout variable in docker test
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
close#53
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* fix: ensure config.json is copied to production docker image
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused config parameter in reduce callback
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: simplify tools configuration using Object.fromEntries
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* test: increase timeout for async search test
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* test: remove setTimeout from agent test
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* test: remove trivial tests and improve test coverage
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>
* feat: add OpenAI provider with structured output support
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: add @ai-sdk/openai dependency and fix modelConfigs access
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: correct indentation in agent.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: centralize model initialization in config.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: improve model config access patterns
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused imports
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: clean up
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* refactor: replace @google/generative-ai with @ai-sdk/google
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: use createGoogleGenerativeAI for API key configuration
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update Zod schemas to use discriminated unions
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: ensure at least one variant in Zod discriminated union
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused actions variable
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove duplicate sections declaration and update action sections
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema types and use process.env.GEMINI_API_KEY
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema to use z.union with type literal
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: restore original schema descriptions and remove unused imports
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema to use discriminatedUnion with proper descriptions
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema to use proper type casting for discriminated union
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema type casting for discriminated union
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update schema to use strict mode and proper type definitions
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: add type field to all schemas
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused schema variables
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused baseSchema variable
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused baseSchema variable and comments
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: implement token tracking using generateObject response
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update token tracking to use proper destructuring
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: implement token tracking in evaluator and add test
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: move maxTokens parameter to config.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: implement error handling for generateObject schema validation errors
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove lint errors in error handling utility
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: clean up error handling utility
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove unused functionName parameter
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove functionName parameter from handleGenerateObjectError calls
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: update DedupResponse import to type import
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: clean up
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* feat: merge types and add tests
- Merged types.ts and tracker.ts
- Added Jest configuration and setup
- Added comprehensive tests for tools and agent
- Updated package.json with test scripts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: remove tracker.ts after merging into types.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove sensitive API keys from jest.setup.js
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: improve error handling and test timeouts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add token budget enforcement to TokenTracker
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add github actions workflow for CI and fix remaining issues
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>
* feat: add web server wrapper for getResponse
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: update package-lock.json
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: add proper types to Express route handlers
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: update API endpoint path and request parameters
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: centralize model configurations with per-tool settings
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: update agent.ts to use centralized model configuration
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>
* feat: add Brave Search integration
- Add Brave Search implementation
- Configure Brave API key in config
- Make search provider configurable with Brave as default
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: first commit
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* refactor: centralize token tracking and clean up console output
- Remove manual token tracking in agent.ts
- Track tokens through tokenTracker.trackUsage()
- Clean up verbose console output
- Add ESLint configuration
- Fix TypeScript linting issues
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: simplify sleep function and use console.log consistently
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: remove color modifiers from console.log statements
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>