You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/action/tools.md
+34-7Lines changed: 34 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,34 @@ admin = Admin(
25
25
)
26
26
```
27
27
28
-
### 2. Serper Search Tool
28
+
### 2. SearchApi Search
29
+
30
+
SearchApi is SERP a solution to get real-time search results into strucuted JSON response from various search engines. [SearchApi](https://searchapi.io/) supports all the major engines like Google, Bing, Baidu, etc.
Get your API key by creating an account or logging into your account on [SearchApi](https://searchapi.io/).
41
+
42
+
```python
43
+
from openagi.actions.tools.serper_search import SearchApiSearch
44
+
from openagi.agent import Admin
45
+
from openagi.llms.openai import OpenAIModel
46
+
from openagi.planner.task_decomposer import TaskPlanner
47
+
48
+
admin = Admin(
49
+
llm= llm,
50
+
actions=[SearchApiSearch],
51
+
planner=TaskPlanner(),
52
+
)
53
+
```
54
+
55
+
### 3. Serper Search Tool
29
56
30
57
Serper is a low-cost Google Search API that can be used to add answer box, knowledge graph, and organic results data from Google Search. This tool is mainly helps user to query the Google results with less throughput and latency. 
31
58
@@ -52,7 +79,7 @@ admin = Admin(
52
79
)
53
80
```
54
81
55
-
### 3. Google Serp API Search
82
+
### 4. Google Serp API Search
56
83
57
84
Serp API is yet another solution to integrate search data. SERP stands for _Search Engine Results Page_. It refers to the page displayed by a search engine in response to a user's query.
58
85
@@ -79,7 +106,7 @@ admin = Admin(
79
106
)
80
107
```
81
108
82
-
### 4. Github Search Tool
109
+
### 5. Github Search Tool
83
110
84
111
The Github SearchTool is used for retrieving information from Github repositories using natural language queries. This tool provides functionality for querying Github repositories for various information, such as code changes, commits, active pull requests, issues, etc., using natural language input. It is designed to be used as part of a larger AI-driven agent system.
85
112
@@ -106,7 +133,7 @@ admin = Admin(
106
133
)
107
134
```
108
135
109
-
### 5. YouTube Search Tool
136
+
### 6. YouTube Search Tool
110
137
111
138
The YouTube Search tool allows users to search for videos on YouTube using natural language queries. This tool retrieves relevant video content based on user-defined search parameters, making it easier to find specific videos or topics of interest.
112
139
@@ -132,7 +159,7 @@ admin = Admin(
132
159
)
133
160
```
134
161
135
-
### 6. Tavily QA Search Tool
162
+
### 7. Tavily QA Search Tool
136
163
137
164
The Tavily QA Search tool is designed to provide answers to user queries by fetching data from various online sources. This tool enhances the capability of the agent to retrieve precise information and answer questions effectively.
138
165
@@ -166,7 +193,7 @@ admin = Admin(
166
193
)
167
194
```
168
195
169
-
### 7. Exa Search Tool
196
+
### 8. Exa Search Tool
170
197
171
198
The Exa Search tool allows users to query the Exa API to retrieve relevant responses based on user-defined questions. This tool is particularly useful for extracting information and insights from various data sources using natural language queries.
172
199
@@ -202,7 +229,7 @@ admin = Admin(
202
229
)
203
230
```
204
231
205
-
### 8. Unstructured PDF Loader Tool
232
+
### 9. Unstructured PDF Loader Tool
206
233
207
234
The Unstructured PDF Loader tool is designed to extract content, including metadata, from PDF files. It utilizes the Unstructured library to partition the PDF and chunk the content based on titles. This tool is useful for processing large volumes of PDF documents and making their contents accessible for further analysis.
0 commit comments