Commit Graph

88 Commits

Author SHA1 Message Date
Devin AI
0d01dce437 fix: update test helper to handle simplified LLMConfig
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 11:07:12 +00:00
Han Xiao
2c11d21910 refactor: clean up 2025-02-05 19:02:57 +08:00
Devin AI
c639e57418 test: update tests to use llm client wrapper
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:42:06 +00:00
Devin AI
dc2c0cae5f fix: handle undefined openai client in getModel
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:33:28 +00:00
Devin AI
fabea4de3b feat: make openai baseURL and apiKey configurable for local LLM support
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:32:59 +00:00
Devin AI
026c439210 fix: mark openaiClient as optional in LLMClient
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:30:12 +00:00
Devin AI
c81eb0e32a fix: make openai client initialization conditional
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:29:51 +00:00
Devin AI
21df4095ee refactor: update files to use shared llm client
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:27:21 +00:00
Devin AI
ae6ce7846a refactor: extract llm client initialization
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-05 10:27:21 +00:00
Han Xiao
2b84a577c8 feat: use s.jina.ai for search 2025-02-05 16:28:14 +08:00
Han Xiao
36722eacaa feat: use s.jina.ai for search 2025-02-05 16:11:12 +08:00
Han Xiao
5e7dce3add feat: use s.jina.ai for search 2025-02-05 16:09:10 +08:00
Han Xiao
86838a3e89 feat: use s.jina.ai for search 2025-02-05 15:26:12 +08:00
Han Xiao
d629ea35e9 feat: use s.jina.ai for search 2025-02-05 15:18:19 +08:00
Han Xiao
a9dfec9a41 feat: use s.jina.ai for search 2025-02-05 15:15:17 +08:00
Han Xiao
2306bd3a9e fix: improve prompting 2025-02-05 13:48:05 +08:00
Han Xiao
7f208c5072 fix: improve prompting 2025-02-05 12:37:23 +08:00
Han Xiao
fd40c7b020 fix: improve prompting 2025-02-05 12:11:41 +08:00
Han Xiao
9f871ef37e fix: use xml prompt 2025-02-05 11:51:05 +08:00
Han Xiao
f48c84d207 fix: use xml prompt 2025-02-05 11:41:29 +08:00
Han Xiao
77e1656744 fix: remove unnecessary budget guard 2025-02-05 10:45:20 +08:00
Han Xiao
70a3eef522 fix: remove unnecessary budget guard 2025-02-05 10:43:08 +08:00
Han Xiao
d562d518ed fix: remove unnecessary budget guard 2025-02-05 10:41:29 +08:00
Han Xiao
4f1ed24ecb chore: first commit 2025-02-04 20:53:52 +08:00
devin-ai-integration[bot]
76f8cd242a feat: merge types and add tests (#10)
* 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>
2025-02-03 18:01:59 +08:00
Han Xiao
2e83ae11ae chore: first commit 2025-02-03 16:30:04 +08:00
Han Xiao
289fe90f63 chore: first commit 2025-02-03 13:02:30 +08:00
Han Xiao
438aaf0579 chore: first commit 2025-02-03 12:42:20 +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
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