Comparing version 1.0.1 to 1.0.2
@@ -70,10 +70,17 @@ import { KyInstance } from 'ky'; | ||
search(queryOrOpts: string | tavily.SearchOptions): Promise<{ | ||
url: string; | ||
title: string; | ||
content: string; | ||
raw_content?: string | undefined; | ||
score: string; | ||
}[]>; | ||
results: { | ||
url: string; | ||
title: string; | ||
content: string; | ||
raw_content?: string | undefined; | ||
score: string; | ||
}[]; | ||
query: string; | ||
answer?: string | undefined; | ||
images?: string[] | undefined; | ||
follow_up_questions?: string[] | undefined; | ||
response_time: string; | ||
}>; | ||
} | ||
export { TavilyClient, tavily }; |
@@ -49,3 +49,6 @@ // src/tavily-client.ts | ||
}).json(); | ||
return pruneNullOrUndefined(res).results?.map(pruneNullOrUndefined); | ||
return pruneNullOrUndefined({ | ||
...res, | ||
results: res.results?.map(pruneNullOrUndefined) | ||
}); | ||
} | ||
@@ -52,0 +55,0 @@ }; |
{ | ||
"name": "tavily", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TS SDK for the Tavily search API which is tailored for LLM agents.", | ||
@@ -5,0 +5,0 @@ "author": "Travis Fischer <travis@transitivebullsh.it>", |
@@ -42,2 +42,4 @@ <p align="center"> | ||
See the [Tavily docs](https://docs.tavily.com/docs/tavily-api/introduction) for more info. | ||
## License | ||
@@ -44,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13915
139
49