@graphai/extra-agents 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ import { GraphAI } from "graphai";
|
|
|
17
17
|
import {
|
|
18
18
|
arxivAgent,
|
|
19
19
|
awesomeChatgptPromptsAgent,
|
|
20
|
+
braveSearchAgent,
|
|
21
|
+
browserlessAgent,
|
|
20
22
|
pdf2textAgent,
|
|
21
23
|
promptsAgent,
|
|
22
24
|
serperAgent,
|
|
@@ -28,6 +30,8 @@ import {
|
|
|
28
30
|
const agents = {
|
|
29
31
|
arxivAgent,
|
|
30
32
|
awesomeChatgptPromptsAgent,
|
|
33
|
+
braveSearchAgent,
|
|
34
|
+
browserlessAgent,
|
|
31
35
|
pdf2textAgent,
|
|
32
36
|
promptsAgent,
|
|
33
37
|
serperAgent,
|
|
@@ -43,6 +47,8 @@ const result = await graph.run();
|
|
|
43
47
|
### Agents description
|
|
44
48
|
- arxivAgent - Arxiv Agent
|
|
45
49
|
- awesomeChatgptPromptsAgent - awesomeChatgptPrompts Agent
|
|
50
|
+
- braveSearchAgent - An agent that uses the Brave Search API. https://api-dashboard.search.brave.com/app/documentation/web-search/get-started
|
|
51
|
+
- browserlessAgent - An agent that uses Browserless.io to fetch web page content with JavaScript execution support for retrieving data from SPAs and dynamic content
|
|
46
52
|
- pdf2textAgent - Pdf2text Agent
|
|
47
53
|
- promptsAgent - Prompts Agent
|
|
48
54
|
- serperAgent - serper agent
|
|
@@ -53,6 +59,8 @@ const result = await graph.run();
|
|
|
53
59
|
### Input/Output/Params Schema & samples
|
|
54
60
|
- [arxivAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/arxivAgent.md)
|
|
55
61
|
- [awesomeChatgptPromptsAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/prompt/awesomeChatgptPromptsAgent.md)
|
|
62
|
+
- [braveSearchAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/braveSearchAgent.md)
|
|
63
|
+
- [browserlessAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/browserlessAgent.md)
|
|
56
64
|
- [pdf2textAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/documents/pdf2textAgent.md)
|
|
57
65
|
- [promptsAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/prompt/promptsAgent.md)
|
|
58
66
|
- [serperAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/serperAgent.md)
|
|
@@ -93,6 +101,77 @@ const result = await graph.run();
|
|
|
93
101
|
"promptKey": "travelGuide"
|
|
94
102
|
}
|
|
95
103
|
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
- braveSearchAgent
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
{
|
|
110
|
+
"inputs": {
|
|
111
|
+
"query": "GraphAI framework"
|
|
112
|
+
},
|
|
113
|
+
"params": {}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
{
|
|
120
|
+
"inputs": {
|
|
121
|
+
"query": "GraphAI vs TensorFlow",
|
|
122
|
+
"search_args": {
|
|
123
|
+
"country": "JP",
|
|
124
|
+
"language": "ja"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"params": {}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
{
|
|
134
|
+
"inputs": {
|
|
135
|
+
"query": "GraphAI tutorials"
|
|
136
|
+
},
|
|
137
|
+
"params": {
|
|
138
|
+
"debug": true
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- browserlessAgent
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
{
|
|
147
|
+
"inputs": {
|
|
148
|
+
"url": "https://www.example.com"
|
|
149
|
+
},
|
|
150
|
+
"params": {}
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
{
|
|
157
|
+
"inputs": {
|
|
158
|
+
"url": "https://www.example.com",
|
|
159
|
+
"text_content": true
|
|
160
|
+
},
|
|
161
|
+
"params": {}
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
{
|
|
168
|
+
"inputs": {
|
|
169
|
+
"url": "https://www.example.com"
|
|
170
|
+
},
|
|
171
|
+
"params": {
|
|
172
|
+
"debug": true
|
|
173
|
+
}
|
|
174
|
+
}
|
|
96
175
|
```
|
|
97
176
|
|
|
98
177
|
- pdf2textAgent
|
|
@@ -159,6 +238,10 @@ const result = await graph.run();
|
|
|
159
238
|
|
|
160
239
|
|
|
161
240
|
### Environment Variables
|
|
241
|
+
- braveSearchAgent
|
|
242
|
+
- BRAVE_SEARCH_API_TOKEN
|
|
243
|
+
- browserlessAgent
|
|
244
|
+
- BROWSERLESS_API_TOKEN
|
|
162
245
|
- serperAgent
|
|
163
246
|
- SERPER_API_KEY
|
|
164
247
|
- ttsNijivoiceAgent
|
|
@@ -169,6 +252,8 @@ const result = await graph.run();
|
|
|
169
252
|
### Related Agent Packages
|
|
170
253
|
- [@graphai/arxiv_agent](https://www.npmjs.com/package/@graphai/arxiv_agent)
|
|
171
254
|
- [@graphai/awesome_chatgpt_prompts_agent](https://www.npmjs.com/package/@graphai/awesome_chatgpt_prompts_agent)
|
|
255
|
+
- [@graphai/brave_search_agent](https://www.npmjs.com/package/@graphai/brave_search_agent)
|
|
256
|
+
- [@graphai/browserless_agent](https://www.npmjs.com/package/@graphai/browserless_agent)
|
|
172
257
|
- [@graphai/pdf2text_agent](https://www.npmjs.com/package/@graphai/pdf2text_agent)
|
|
173
258
|
- [@graphai/serper_agent](https://www.npmjs.com/package/@graphai/serper_agent)
|
|
174
259
|
- [@graphai/slack_agent](https://www.npmjs.com/package/@graphai/slack_agent)
|