Skip to content

Commit b8db556

Browse files
Michael GMichael G
authored andcommitted
fixing types
1 parent 32154e4 commit b8db556

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

libs/langchain-tavily/src/utils.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type TavilySearchParamsBase = {
2626
/**
2727
* The number of {@link TavilySearchResult.content} chunks to retrieve from each source.
2828
* Each chunk's length is maximum 500 characters. Available only when
29-
* {@link TavilySearchParams.search_depth} is advanced.
29+
* {@link TavilySearchParams.searchDepth} is advanced.
3030
*
3131
* @default 3
3232
*/
@@ -108,21 +108,21 @@ export type TavilySearchParamsWithSimpleImages = TavilySearchParamsBase & {
108108
*/
109109
includeImages?: boolean;
110110
/**
111-
* When {@link TavilySearchParams.include_images} is true, also add a descriptive text for each
111+
* When {@link TavilySearchParams.includeImages} is true, also add a descriptive text for each
112112
* image.
113113
*
114114
* @default false
115115
*/
116-
includeImageDescriptions?: false;
116+
includeImageDescriptions?: boolean;
117117
};
118118

119119
export type TavilySearchParamsWithImageDescriptions = TavilySearchParamsBase & {
120120
/**
121121
* Also perform an image search and include the results in the response.
122122
*/
123-
includeImages?: true;
123+
includeImages?: boolean;
124124
/**
125-
* When {@link TavilySearchParams.include_images} is true, also add a descriptive text for each
125+
* When {@link TavilySearchParams.includeImages} is true, also add a descriptive text for each
126126
* image.
127127
*/
128128
includeImageDescriptions?: true;
@@ -396,7 +396,7 @@ export type TavilyBaseSearchResponse = {
396396
query: string;
397397
/**
398398
* A short answer to the user's query, generated by an LLM. Included in the response only if
399-
* {@link TavilySearchParams.include_answer} is requested (i.e., set to `true`, `"basic"`, or
399+
* {@link TavilySearchParams.includeAnswer} is requested (i.e., set to `true`, `"basic"`, or
400400
* `"advanced"`).
401401
*/
402402
answer?: string;
@@ -413,12 +413,12 @@ export type TavilyBaseSearchResponse = {
413413

414414
/**
415415
* The shape of the response from the Tavily Search API when
416-
* {@link TavilySearchParams.include_image_descriptions} is true.
416+
* {@link TavilySearchParams.includeImageDescriptions} is true.
417417
*/
418418
export type TavilySearchResponseWithImageDescriptions =
419419
TavilyBaseSearchResponse & {
420420
/**
421-
* List of query-related images. If {@link TavilySearchParams.include_image_descriptions} is
421+
* List of query-related images. If {@link TavilySearchParams.includeImageDescriptions} is
422422
* `true`, each item will be an object with `url` and `description` properties. Otherwise, each
423423
* item will be a string containing the URL of the image.
424424
*/
@@ -436,11 +436,11 @@ export type TavilySearchResponseWithImageDescriptions =
436436

437437
/**
438438
* The shape of the response from the Tavily Search API when
439-
* {@link TavilySearchParams.include_image_descriptions} is `false` or unspecified.
439+
* {@link TavilySearchParams.includeImageDescriptions} is `false` or unspecified.
440440
*/
441441
export type TavilySearchResponseWithSimpleImages = TavilyBaseSearchResponse & {
442442
/**
443-
* List of query-related images. If {@link TavilySearchParams.include_image_descriptions} is
443+
* List of query-related images. If {@link TavilySearchParams.includeImageDescriptions} is
444444
* `true`, each item will be an object with `url` and `description` properties. Otherwise, each
445445
* item will be a string containing the URL of the image.
446446
*/

0 commit comments

Comments
 (0)