92 Commits

Author SHA1 Message Date
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
Han Xiao
1894fba7bc chore: first commit 2025-01-27 22:19:18 +08:00
Han Xiao
4fd7f41e85 chore: first commit 2025-01-27 21:36:14 +08:00
Han Xiao
597d32b46e chore: first commit 2025-01-27 20:38:13 +08:00
Han Xiao
2aabf4f8e0 chore: first commit 2025-01-27 20:21:08 +08:00
Han Xiao
3d7f3aa05b chore: first commit 2025-01-27 16:23:11 +08:00
Han Xiao
b5c953d7e4 chore: first commit 2025-01-27 15:59:48 +08:00
Han Xiao
21af8a6c82 chore: first commit 2025-01-27 15:21:40 +08:00
Han Xiao
2415ec3ebd chore: first commit 2025-01-27 14:26:07 +08:00
Han Xiao
cd35dc7966 chore: first commit 2025-01-27 13:47:13 +08:00
Han Xiao
f038095d29 chore: first commit 2025-01-26 23:39:09 +08:00
Han Xiao
74716eea13 chore: first commit 2025-01-26 23:21:26 +08:00
Han Xiao
af341611ee chore: first commit 2025-01-26 22:29:17 +08:00
Han Xiao
20d2067d26 chore: first commit 2025-01-26 18:05:17 +08:00
Han Xiao
bd9afbf8d3 chore: first commit 2025-01-26 18:00:15 +08:00
Han Xiao
440b24af6d chore: first commit 2025-01-26 17:59:57 +08:00
Han Xiao
33179010b7 chore: first commit 2025-01-26 17:59:35 +08:00
Han Xiao
48230560d3 chore: first commit 2025-01-26 16:43:41 +08:00
Han Xiao
be623c990a Merge remote-tracking branch 'origin/main' 2025-01-26 15:47:24 +08:00
Han Xiao
701a17e49f chore: first commit 2025-01-26 15:47:13 +08:00
Han Xiao
82bf7ef5ba
chore: first commit 2025-01-26 15:39:23 +08:00
Han Xiao
0389459b1b chore: first commit 2025-01-26 15:37:54 +08:00
Han Xiao
1291e23cef chore: first commit 2025-01-26 15:26:46 +08:00
Han Xiao
5eb75fcb61 chore: first commit 2025-01-26 14:53:55 +08:00
Han Xiao
91f1cbcb97
Initial commit 2025-01-26 14:46:28 +08:00