Skip to content

Commit 9b2518a

Browse files
fix the dependencies packages
1 parent 81c3ed0 commit 9b2518a

File tree

6 files changed

+266
-46
lines changed

6 files changed

+266
-46
lines changed

packages/core/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"@rollup/plugin-terser": "0.1.0",
4141
"@rollup/plugin-typescript": "11.1.6",
4242
"@solana/web3.js": "1.95.8",
43-
"@tavily/core": "^0.0.2",
4443
"@types/fluent-ffmpeg": "2.1.27",
4544
"@types/jest": "29.5.14",
4645
"@types/mocha": "10.0.10",
@@ -82,7 +81,6 @@
8281
"glob": "11.0.0",
8382
"handlebars": "^4.7.8",
8483
"js-sha1": "0.7.0",
85-
"js-tiktoken": "1.0.15",
8684
"langchain": "0.3.6",
8785
"ollama-ai-provider": "0.16.1",
8886
"openai": "4.73.0",

packages/core/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,7 @@ export enum ServiceType {
14091409
IRYS = "irys",
14101410
TEE_LOG = "tee_log",
14111411
GOPLUS_SECURITY = "goplus_security",
1412+
WEB_SEARCH = "web_search",
14121413
}
14131414

14141415
export enum LoggingLevel {

packages/core/tsup.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default defineConfig({
1818
"http",
1919
"https",
2020
// Add other modules you want to externalize
21-
"@tavily/core",
2221
"onnxruntime-node",
2322
"sharp",
2423
],

packages/plugin-web-search/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
],
2121
"dependencies": {
2222
"@elizaos/core": "workspace:*",
23-
"tsup": "8.3.5"
23+
"@tavily/core": "^0.0.2",
24+
"tsup": "8.3.5",
25+
"js-tiktoken": "1.0.15"
2426
},
2527
"scripts": {
2628
"build": "tsup --format esm --dts",

packages/plugin-web-search/src/services/webSearchService.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
Service,
33
IAgentRuntime,
4+
ServiceType,
45
} from "@elizaos/core";
56
import { tavily } from "@tavily/core";
67
import { IWebSearchService, SearchOptions, SearchResponse } from "../types";
@@ -22,6 +23,10 @@ export class WebSearchService extends Service implements IWebSearchService {
2223
return WebSearchService.getInstance();
2324
}
2425

26+
static get serviceType(): ServiceType {
27+
return ServiceType.WEB_SEARCH;
28+
}
29+
2530
async search(
2631
query: string,
2732
options?: SearchOptions,

0 commit comments

Comments
 (0)