@graphai/extra-agents 0.0.4 → 0.0.6
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 +147 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -17,10 +17,15 @@ import { GraphAI } from "graphai";
|
|
|
17
17
|
import {
|
|
18
18
|
arxivAgent,
|
|
19
19
|
awesomeChatgptPromptsAgent,
|
|
20
|
+
braveSearchAgent,
|
|
21
|
+
browserlessAgent,
|
|
22
|
+
mcpToolsCallAgent,
|
|
23
|
+
mcpToolsListAgent,
|
|
20
24
|
pdf2textAgent,
|
|
21
25
|
promptsAgent,
|
|
22
26
|
serperAgent,
|
|
23
27
|
slackAgent,
|
|
28
|
+
sttOpenaiAgent,
|
|
24
29
|
ttsNijivoiceAgent,
|
|
25
30
|
ttsOpenaiAgent
|
|
26
31
|
} from "@graphai/extra-agents";
|
|
@@ -28,10 +33,15 @@ import {
|
|
|
28
33
|
const agents = {
|
|
29
34
|
arxivAgent,
|
|
30
35
|
awesomeChatgptPromptsAgent,
|
|
36
|
+
braveSearchAgent,
|
|
37
|
+
browserlessAgent,
|
|
38
|
+
mcpToolsCallAgent,
|
|
39
|
+
mcpToolsListAgent,
|
|
31
40
|
pdf2textAgent,
|
|
32
41
|
promptsAgent,
|
|
33
42
|
serperAgent,
|
|
34
43
|
slackAgent,
|
|
44
|
+
sttOpenaiAgent,
|
|
35
45
|
ttsNijivoiceAgent,
|
|
36
46
|
ttsOpenaiAgent
|
|
37
47
|
};
|
|
@@ -43,20 +53,30 @@ const result = await graph.run();
|
|
|
43
53
|
### Agents description
|
|
44
54
|
- arxivAgent - Arxiv Agent
|
|
45
55
|
- awesomeChatgptPromptsAgent - awesomeChatgptPrompts Agent
|
|
56
|
+
- braveSearchAgent - An agent that uses the Brave Search API. https://api-dashboard.search.brave.com/app/documentation/web-search/get-started
|
|
57
|
+
- browserlessAgent - An agent that uses Browserless.io to fetch web page content with JavaScript execution support for retrieving data from SPAs and dynamic content
|
|
58
|
+
- mcpToolsCallAgent - Model Context Protocol Tools/Call Agent
|
|
59
|
+
- mcpToolsListAgent - Model Context Protocol Tools/List Agent
|
|
46
60
|
- pdf2textAgent - Pdf2text Agent
|
|
47
61
|
- promptsAgent - Prompts Agent
|
|
48
62
|
- serperAgent - serper agent
|
|
49
63
|
- slackAgent - Slack Agent
|
|
64
|
+
- sttOpenaiAgent - OpenAI speach to text agent
|
|
50
65
|
- ttsNijivoiceAgent - TTS nijivoice agent
|
|
51
66
|
- ttsOpenaiAgent - OpenAI TTS agent
|
|
52
67
|
|
|
53
68
|
### Input/Output/Params Schema & samples
|
|
54
69
|
- [arxivAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/arxivAgent.md)
|
|
55
70
|
- [awesomeChatgptPromptsAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/prompt/awesomeChatgptPromptsAgent.md)
|
|
71
|
+
- [braveSearchAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/braveSearchAgent.md)
|
|
72
|
+
- [browserlessAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/browserlessAgent.md)
|
|
73
|
+
- [mcpToolsCallAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/protocol/mcpToolsCallAgent.md)
|
|
74
|
+
- [mcpToolsListAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/protocol/mcpToolsListAgent.md)
|
|
56
75
|
- [pdf2textAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/documents/pdf2textAgent.md)
|
|
57
76
|
- [promptsAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/prompt/promptsAgent.md)
|
|
58
77
|
- [serperAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/serperAgent.md)
|
|
59
78
|
- [slackAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/net/slackAgent.md)
|
|
79
|
+
- [sttOpenaiAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/voice/sttOpenaiAgent.md)
|
|
60
80
|
- [ttsNijivoiceAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/tts/ttsNijivoiceAgent.md)
|
|
61
81
|
- [ttsOpenaiAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/tts/ttsOpenaiAgent.md)
|
|
62
82
|
|
|
@@ -93,6 +113,123 @@ const result = await graph.run();
|
|
|
93
113
|
"promptKey": "travelGuide"
|
|
94
114
|
}
|
|
95
115
|
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
- braveSearchAgent
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
{
|
|
122
|
+
"inputs": {
|
|
123
|
+
"query": "GraphAI framework"
|
|
124
|
+
},
|
|
125
|
+
"params": {}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
{
|
|
132
|
+
"inputs": {
|
|
133
|
+
"query": "GraphAI vs TensorFlow",
|
|
134
|
+
"search_args": {
|
|
135
|
+
"country": "JP",
|
|
136
|
+
"language": "ja"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"params": {}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
{
|
|
146
|
+
"inputs": {
|
|
147
|
+
"query": "GraphAI tutorials"
|
|
148
|
+
},
|
|
149
|
+
"params": {
|
|
150
|
+
"debug": true
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
- browserlessAgent
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
{
|
|
159
|
+
"inputs": {
|
|
160
|
+
"url": "https://www.example.com"
|
|
161
|
+
},
|
|
162
|
+
"params": {}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
{
|
|
169
|
+
"inputs": {
|
|
170
|
+
"url": "https://www.example.com",
|
|
171
|
+
"text_content": true
|
|
172
|
+
},
|
|
173
|
+
"params": {}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
{
|
|
180
|
+
"inputs": {
|
|
181
|
+
"url": "https://www.example.com"
|
|
182
|
+
},
|
|
183
|
+
"params": {
|
|
184
|
+
"debug": true
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
- mcpToolsCallAgent
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
{
|
|
193
|
+
"inputs": {
|
|
194
|
+
"tools": {
|
|
195
|
+
"name": "filesystem--list_directory",
|
|
196
|
+
"arguments": {
|
|
197
|
+
"path": "/Users/isamu/ss/llm/graphai-agents/protocol/mcp-agent/lib/../tests/sample"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"params": {}
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
{
|
|
208
|
+
"inputs": {
|
|
209
|
+
"tools": {
|
|
210
|
+
"name": "filesystem--list_directory",
|
|
211
|
+
"arguments": {
|
|
212
|
+
"path": "/Users/isamu/ss/llm/graphai-agents/protocol/mcp-agent/lib/../tests/sample"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"params": {
|
|
217
|
+
"mcpClientsKey": "key"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
- mcpToolsListAgent
|
|
223
|
+
|
|
224
|
+
```typescript
|
|
225
|
+
{
|
|
226
|
+
"inputs": {},
|
|
227
|
+
"params": {
|
|
228
|
+
"services": [
|
|
229
|
+
"filesystem"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
96
233
|
```
|
|
97
234
|
|
|
98
235
|
- pdf2textAgent
|
|
@@ -159,8 +296,14 @@ const result = await graph.run();
|
|
|
159
296
|
|
|
160
297
|
|
|
161
298
|
### Environment Variables
|
|
299
|
+
- braveSearchAgent
|
|
300
|
+
- BRAVE_SEARCH_API_TOKEN
|
|
301
|
+
- browserlessAgent
|
|
302
|
+
- BROWSERLESS_API_TOKEN
|
|
162
303
|
- serperAgent
|
|
163
304
|
- SERPER_API_KEY
|
|
305
|
+
- sttOpenaiAgent
|
|
306
|
+
- OPENAI_API_KEY
|
|
164
307
|
- ttsNijivoiceAgent
|
|
165
308
|
- NIJIVOICE_API_KEY
|
|
166
309
|
- ttsOpenaiAgent
|
|
@@ -169,9 +312,13 @@ const result = await graph.run();
|
|
|
169
312
|
### Related Agent Packages
|
|
170
313
|
- [@graphai/arxiv_agent](https://www.npmjs.com/package/@graphai/arxiv_agent)
|
|
171
314
|
- [@graphai/awesome_chatgpt_prompts_agent](https://www.npmjs.com/package/@graphai/awesome_chatgpt_prompts_agent)
|
|
315
|
+
- [@graphai/brave_search_agent](https://www.npmjs.com/package/@graphai/brave_search_agent)
|
|
316
|
+
- [@graphai/browserless_agent](https://www.npmjs.com/package/@graphai/browserless_agent)
|
|
317
|
+
- [@graphai/mcp_agent](https://www.npmjs.com/package/@graphai/mcp_agent)
|
|
172
318
|
- [@graphai/pdf2text_agent](https://www.npmjs.com/package/@graphai/pdf2text_agent)
|
|
173
319
|
- [@graphai/serper_agent](https://www.npmjs.com/package/@graphai/serper_agent)
|
|
174
320
|
- [@graphai/slack_agent](https://www.npmjs.com/package/@graphai/slack_agent)
|
|
321
|
+
- [@graphai/stt_openai_agent](https://www.npmjs.com/package/@graphai/stt_openai_agent)
|
|
175
322
|
- [@graphai/tts_nijivoice_agent](https://www.npmjs.com/package/@graphai/tts_nijivoice_agent)
|
|
176
323
|
- [@graphai/tts_openai_agent](https://www.npmjs.com/package/@graphai/tts_openai_agent)
|
|
177
324
|
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -33,3 +33,7 @@ __exportStar(require("@graphai/prompts"), exports);
|
|
|
33
33
|
// tts
|
|
34
34
|
__exportStar(require("@graphai/tts_nijivoice_agent"), exports);
|
|
35
35
|
__exportStar(require("@graphai/tts_openai_agent"), exports);
|
|
36
|
+
// stt
|
|
37
|
+
__exportStar(require("@graphai/stt_openai_agent"), exports);
|
|
38
|
+
// protocol
|
|
39
|
+
__exportStar(require("@graphai/mcp_agent"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphai/extra-agents",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Extra agents for GraphAI.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,10 +30,12 @@
|
|
|
30
30
|
"@graphai/awesome_chatgpt_prompts_agent": "^0.0.1",
|
|
31
31
|
"@graphai/brave_search_agent": "^0.0.1",
|
|
32
32
|
"@graphai/browserless_agent": "^0.0.3",
|
|
33
|
+
"@graphai/mcp_agent": "^0.0.3",
|
|
33
34
|
"@graphai/pdf2text_agent": "^0.2.0",
|
|
34
35
|
"@graphai/prompts": "^0.0.1",
|
|
35
36
|
"@graphai/serper_agent": "^0.0.1",
|
|
36
37
|
"@graphai/slack_agent": "^0.0.3",
|
|
38
|
+
"@graphai/stt_openai_agent": "^0.0.2",
|
|
37
39
|
"@graphai/tts_nijivoice_agent": "^0.0.2",
|
|
38
40
|
"@graphai/tts_openai_agent": "^0.0.2"
|
|
39
41
|
},
|