Skip to content

Commit 4fca5ec

Browse files
monikakusterivicac
authored andcommitted
2319 - generated
1 parent 60f7592 commit 4fca5ec

File tree

2 files changed

+248
-71
lines changed
  • docs/src/content/docs/reference/components
  • server/libs/modules/components/tavily/src/test/resources/definition

2 files changed

+248
-71
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
---
2+
title: "Tavily"
3+
description: "Tavily is an AI-powered search tool designed to help users quickly find accurate, relevant, and up-to-date information from the web."
4+
---
5+
6+
Tavily is an AI-powered search tool designed to help users quickly find accurate, relevant, and up-to-date information from the web.
7+
8+
9+
Categories: Artificial Intelligence
10+
11+
12+
Type: tavily/v1
13+
14+
<hr />
15+
16+
17+
18+
## Connections
19+
20+
Version: 1
21+
22+
23+
### Bearer Token
24+
25+
#### Properties
26+
27+
| Name | Label | Type | Description | Required |
28+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
29+
| token | Token | STRING | | true |
30+
31+
32+
33+
34+
35+
<hr />
36+
37+
38+
39+
## Actions
40+
41+
42+
### Search
43+
Name: search
44+
45+
Execute a search query.
46+
47+
#### Properties
48+
49+
| Name | Label | Type | Description | Required |
50+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
51+
| query | Query | STRING | The search query to execute. | true |
52+
| topic | Topic | STRING <details> <summary> Options </summary> general, news </details> | The category of the search. | false |
53+
| search_depth | Search Depth | STRING <details> <summary> Options </summary> basic, advanced </details> | The depth of the search. | false |
54+
| time_range | Time Range | STRING <details> <summary> Options </summary> day, week, month, year </details> | The time range back from the current date to filter results. | false |
55+
| max_results | Max Results | INTEGER | The maximum number of search results to return. | false |
56+
| include_answer | Include Answer | BOOLEAN <details> <summary> Options </summary> true, false </details> | Include an LLM-generated answer to the provided query. | false |
57+
| include_images | Include Images | BOOLEAN <details> <summary> Options </summary> true, false </details> | Perform an image search and include the results in the response. | false |
58+
59+
#### Example JSON Structure
60+
```json
61+
{
62+
"label" : "Search",
63+
"name" : "search",
64+
"parameters" : {
65+
"query" : "",
66+
"topic" : "",
67+
"search_depth" : "",
68+
"time_range" : "",
69+
"max_results" : 1,
70+
"include_answer" : false,
71+
"include_images" : false
72+
},
73+
"type" : "tavily/v1/search"
74+
}
75+
```
76+
77+
#### Output
78+
79+
80+
81+
Type: OBJECT
82+
83+
84+
#### Properties
85+
86+
| Name | Type | Description |
87+
|:------------:|:------------:|:-------------------:|
88+
| query | STRING | The search query that was executed. |
89+
| answer | STRING | A short answer to the user's query, generated by an LLM. Included in the response only if include_answer is requested. |
90+
| images | ARRAY <details> <summary> Items </summary> [{}] </details> | List of query-related images. |
91+
| results | ARRAY <details> <summary> Items </summary> [{STRING\(title), STRING\(url), STRING\(content), NUMBER\(score)}] </details> | A list of sorted search results, ranked by relevancy. |
92+
| response_time | NUMBER | Time in seconds it took to complete the request. |
93+
94+
95+
96+
97+
#### Output Example
98+
```json
99+
{
100+
"query" : "",
101+
"answer" : "",
102+
"images" : [ { } ],
103+
"results" : [ {
104+
"title" : "",
105+
"url" : "",
106+
"content" : "",
107+
"score" : 0.0
108+
} ],
109+
"response_time" : 0.0
110+
}
111+
```
112+
113+
114+
### Extract
115+
Name: extract
116+
117+
Extract web page content from one or more specified URLs.
118+
119+
#### Properties
120+
121+
| Name | Label | Type | Description | Required |
122+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
123+
| urls | URLs | ARRAY <details> <summary> Items </summary> [STRING] </details> | A list of URLs to extract content from. | true |
124+
| include_images | Include Images | BOOLEAN <details> <summary> Options </summary> true, false </details> | Include a list of images extracted from the URLs in the response. | false |
125+
| extract_depth | Extract Depth | STRING <details> <summary> Options </summary> basic, advanced </details> | The depth of the extraction process. | false |
126+
127+
#### Example JSON Structure
128+
```json
129+
{
130+
"label" : "Extract",
131+
"name" : "extract",
132+
"parameters" : {
133+
"urls" : [ "" ],
134+
"include_images" : false,
135+
"extract_depth" : ""
136+
},
137+
"type" : "tavily/v1/extract"
138+
}
139+
```
140+
141+
#### Output
142+
143+
144+
145+
Type: OBJECT
146+
147+
148+
#### Properties
149+
150+
| Name | Type | Description |
151+
|:------------:|:------------:|:-------------------:|
152+
| results | ARRAY <details> <summary> Items </summary> [{STRING\(url), STRING\(raw_content), [STRING]\(images)}] </details> | A list of extracted content from the provided URLs. |
153+
| failed_results | ARRAY <details> <summary> Items </summary> [{STRING\(url), STRING\(error)}] </details> | A list of URLs that could not be processed. |
154+
| response_time | NUMBER | Time in seconds it took to complete the request. |
155+
156+
157+
158+
159+
#### Output Example
160+
```json
161+
{
162+
"results" : [ {
163+
"url" : "",
164+
"raw_content" : "",
165+
"images" : [ "" ]
166+
} ],
167+
"failed_results" : [ {
168+
"url" : "",
169+
"error" : ""
170+
} ],
171+
"response_time" : 0.0
172+
}
173+
```
174+
175+
176+
177+

0 commit comments

Comments
 (0)