@@ -1328,23 +1328,6 @@ export interface IPdfService extends Service {
1328
1328
convertPdfToText ( pdfBuffer : Buffer ) : Promise < string > ;
1329
1329
}
1330
1330
1331
- export interface IWebSearchService extends Service {
1332
- search (
1333
- query : string ,
1334
- runtime : IAgentRuntime ,
1335
- options ?: SearchOptions ,
1336
- ) : Promise < SearchResponse > ;
1337
- }
1338
-
1339
- export interface SearchOptions {
1340
- limit ?: number ;
1341
- type ?: "news" | "general" ;
1342
- includeAnswer ?: boolean ;
1343
- searchDepth ?: "basic" | "advanced" ;
1344
- includeImages ?: boolean ;
1345
- days ?: number ; // 1 means current day, 2 means last 2 days
1346
- }
1347
-
1348
1331
export interface IAwsS3Service extends Service {
1349
1332
uploadFile (
1350
1333
imagePath : string ,
@@ -1411,28 +1394,6 @@ export interface ITeeLogService extends Service {
1411
1394
) : Promise < boolean > ;
1412
1395
}
1413
1396
1414
- export type SearchImage = {
1415
- url : string ;
1416
- description ?: string ;
1417
- } ;
1418
-
1419
- export type SearchResult = {
1420
- title : string ;
1421
- url : string ;
1422
- content : string ;
1423
- rawContent ?: string ;
1424
- score : number ;
1425
- publishedDate ?: string ;
1426
- } ;
1427
-
1428
- export type SearchResponse = {
1429
- answer ?: string ;
1430
- query : string ;
1431
- responseTime : number ;
1432
- images : SearchImage [ ] ;
1433
- results : SearchResult [ ] ;
1434
- } ;
1435
-
1436
1397
export enum ServiceType {
1437
1398
IMAGE_DESCRIPTION = "image_description" ,
1438
1399
TRANSCRIPTION = "transcription" ,
@@ -1448,7 +1409,6 @@ export enum ServiceType {
1448
1409
IRYS = "irys" ,
1449
1410
TEE_LOG = "tee_log" ,
1450
1411
GOPLUS_SECURITY = "goplus_security" ,
1451
- WEB_SEARCH = "web_search" ,
1452
1412
}
1453
1413
1454
1414
export enum LoggingLevel {
0 commit comments