74 Commits

Author SHA1 Message Date
Han Xiao
0ef052296d
Create LICENSE 2025-02-03 11:04:20 +08:00
Han Xiao
e4dc9be5c7
Update README.md 2025-02-03 11:03:21 +08:00
Han Xiao
1b1f209eab
Update README.md 2025-02-03 10:58:14 +08:00
Han Xiao
504edc7266
Update README.md 2025-02-03 10:57:42 +08:00
Han Xiao
1039a3f827 chore: first commit 2025-02-02 23:41:59 +08:00
devin-ai-integration[bot]
48f8565291
fix: standardize TokenTracker imports and usage pattern (#9)
- Update dedup.ts and error-analyzer.ts to use TokenTracker class import
- Add optional tracker parameter for dependency injection
- Match evaluator.ts pattern for token tracking

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
2025-02-02 23:33:08 +08:00
devin-ai-integration[bot]
5be008e8b9
feat: add action tracker and reset token tracker (#8)
* feat: add action tracker and reset token tracker

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: make trackers request-scoped

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>
2025-02-02 23:25:54 +08:00
Han Xiao
3f032bbdcc chore: first commit 2025-02-02 22:57:10 +08:00
Han Xiao
20f5a94e88 Merge branch 'main' of https://github.com/jina-ai/node-agentic-search 2025-02-02 22:42:18 +08:00
Han Xiao
be5548f5da chore: first commit 2025-02-02 22:41:53 +08:00
devin-ai-integration[bot]
533c91714d
feat: enhance stream with step info and add task endpoint (#7)
* feat: enhance stream with step info and add task endpoint

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: resolve typescript errors in budget handling

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: emit thisStep object during execution

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>
2025-02-02 22:41:42 +08:00
Han Xiao
d38944f976
Update README.md 2025-02-02 22:09:16 +08:00
Han Xiao
bbba3252bc
Update README.md 2025-02-02 22:08:42 +08:00
devin-ai-integration[bot]
ca0f780cc3
feat: add web server wrapper for getResponse (#6)
* 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>
2025-02-02 22:07:43 +08:00
Han Xiao
46cd8337b7 chore: first commit 2025-02-02 21:03:34 +08:00
Han Xiao
cbd7445806 chore: first commit 2025-02-02 21:02:29 +08:00
devin-ai-integration[bot]
c793cb9bbc
refactor: consolidate type definitions into types.ts (#5)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
2025-02-02 20:53:28 +08:00
Han Xiao
c984e78ac2 chore: first commit 2025-02-02 20:40:45 +08:00
Han Xiao
cd7b9a6095 chore: first commit 2025-02-02 20:16:18 +08:00
Han Xiao
8fb4f8dbb6 chore: first commit 2025-02-02 19:33:16 +08:00
Han Xiao
d063ad5f53 chore: first commit 2025-02-02 18:53:06 +08:00
Han Xiao
8c8484593f chore: first commit 2025-02-02 18:47:29 +08:00
Han Xiao
f1b4d2681e chore: first commit 2025-02-02 18:24:07 +08:00
Han Xiao
a84387c1f7 chore: first commit 2025-02-02 17:57:35 +08:00
Han Xiao
193d982ed9 chore: first commit 2025-02-02 17:14:28 +08:00
Han Xiao
ff2727f6a7 chore: first commit 2025-02-02 15:09:57 +08:00
Han Xiao
e61acb9a86 chore: first commit 2025-02-01 21:50:27 +08:00
Han Xiao
679bc11c3a chore: first commit 2025-01-31 18:50:52 +08:00
Han Xiao
98a3e033fb chore: first commit 2025-01-31 18:42:11 +08:00
Han Xiao
d8678467d7 chore: first commit 2025-01-31 18:27:44 +08:00
devin-ai-integration[bot]
b48f7afb6d
feat: add Brave Search integration (#4)
* 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>
2025-01-31 18:24:45 +08:00
Han Xiao
92ce4de405 chore: first commit 2025-01-31 15:53:36 +08:00
Han Xiao
8630e35a1e chore: first commit 2025-01-31 15:39:10 +08:00
Han Xiao
df9a96e6e1 chore: first commit 2025-01-31 15:37:46 +08:00
Han Xiao
4a5fbc5859 chore: first commit 2025-01-31 15:32:14 +08:00
devin-ai-integration[bot]
f99608909c
refactor: centralize token tracking and clean up console output (#3)
* 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>
2025-01-31 15:25:28 +08:00
devin-ai-integration[bot]
966ef5d026
Refactor Tools to Use config.ts (#2)
* 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>
2025-01-31 14:52:41 +08:00
Han Xiao
0ae6c790f7
Merge pull request #1 from jina-ai/devin/1738304445-improve-token-tracking
feat: improve token tracking and centralize config
2025-01-31 14:25:32 +08:00
Devin AI
738af73010 feat: improve token tracking and centralize config
- 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>
2025-01-31 06:20:45 +00:00
Han Xiao
d12bc09b8b chore: first commit 2025-01-30 21:36:50 +08:00
Han Xiao
33479835ba chore: first commit 2025-01-30 21:33:15 +08:00
Han Xiao
219c93a429 chore: first commit 2025-01-30 21:32:06 +08:00
Han Xiao
a3e66255d6 chore: first commit 2025-01-30 21:21:39 +08:00
Han Xiao
dfe38fba7f chore: first commit 2025-01-30 21:08:23 +08:00
Han Xiao
712d01215c chore: first commit 2025-01-30 18:07:57 +08:00
Han Xiao
8dc5e0fe8b chore: first commit 2025-01-30 17:43:12 +08:00
Han Xiao
0d2a65dbdc chore: first commit 2025-01-30 17:35:20 +08:00
Han Xiao
11f909e095 chore: first commit 2025-01-30 11:25:57 +08:00
Han Xiao
1835ccd69d chore: first commit 2025-01-30 11:13:47 +08:00
Han Xiao
2b1a1da48b chore: first commit 2025-01-30 09:56:38 +08:00