111 Commits

Author SHA1 Message Date
devin-ai-integration[bot]
50dff0863c
feat: add OpenAI provider with structured output support (#28)
* 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>
v1.0.1
2025-02-06 15:05:38 +08:00
devin-ai-integration[bot]
f1c7ada6ae
refactor: replace @google/generative-ai with @ai-sdk/google (#27)
* 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>
2025-02-06 14:14:12 +08: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
d8636d16ce
chore: readme 2025-02-05 14:01:39 +08:00
Han Xiao
fb39ccbd06 chore: fix readme 2025-02-05 13:52:18 +08:00
Han Xiao
fd6623b9dc fix: improve prompting 2025-02-05 13:49:22 +08:00
Han Xiao
2306bd3a9e fix: improve prompting 2025-02-05 13:48:05 +08:00
Han Xiao
8630d607a2 fix: improve prompting 2025-02-05 12:47:42 +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
Igor Kuzmenkov
2d489812a3
Dockerize repo, create Dockerfile, docker-compose.yml and update README.md (#17)
---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jina-ai/node-DeepResearch?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-05 10:39:30 +08:00
Kim Jaehyeon
2c34150158
fix: modify tracker type path (#14)
Co-authored-by: hammer-turtle <hammer_turtle@neowiz.com>
2025-02-05 10:39:08 +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
bd8e9ff1d4 Merge branch 'main' of https://github.com/jina-ai/node-agentic-search
# Conflicts:
#	README.md
2025-02-03 17:29:54 +08:00
Han Xiao
2bcd06abd2 chore: first commit 2025-02-03 17:29:27 +08:00
Han Xiao
2e83ae11ae chore: first commit 2025-02-03 16:30:04 +08:00
Han Xiao
9508eb3c7c
Update README.md 2025-02-03 13:35:04 +08:00
Han Xiao
3bda3984a4
Update README.md 2025-02-03 13:27:27 +08:00
Han Xiao
090e61591d chore: first commit 2025-02-03 13:17:52 +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
1275870f95
Update README.md 2025-02-03 11:41:29 +08:00
Han Xiao
51f397dae8
Update README.md 2025-02-03 11:28:54 +08:00
Han Xiao
e9f7691df7
Update README.md 2025-02-03 11:27:56 +08:00
Han Xiao
2de8f09461
Update README.md 2025-02-03 11:27:26 +08:00
Han Xiao
164f945240
chore: add example gif 2025-02-03 11:25:30 +08:00
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