@graphai/slack_agent 0.0.2 → 0.0.3
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 +29 -0
- package/lib/slack_agent.js +11 -3
- package/package.json +5 -7
package/README.md
CHANGED
|
@@ -38,5 +38,34 @@ const graph = new GraphAI(graph_data, agents);
|
|
|
38
38
|
const result = await graph.run();
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
### Agents description
|
|
42
|
+
- slackAgent - Slack Agent
|
|
43
|
+
|
|
44
|
+
### Input/Output/Params Schema & samples
|
|
45
|
+
- [slackAgent](https://github.com/receptron/graphai-agents/blob/main/docs/agentDocs/messaging/slackAgent.md)
|
|
46
|
+
|
|
47
|
+
### Input/Params example
|
|
48
|
+
- slackAgent
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
{
|
|
52
|
+
"inputs": {
|
|
53
|
+
"message": [
|
|
54
|
+
"Hello amateraru from GraphAI Slack agent!"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"params": {
|
|
58
|
+
"post_channel": "#p_bootcamp_e_raycast_jp_amaterasu_dev"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
41
70
|
|
|
42
71
|
|
package/lib/slack_agent.js
CHANGED
|
@@ -25,11 +25,19 @@ const slackAgentInfo = {
|
|
|
25
25
|
name: "slackAgent",
|
|
26
26
|
agent: exports.slackAgent,
|
|
27
27
|
mock: exports.slackAgent,
|
|
28
|
-
samples: [
|
|
28
|
+
samples: [
|
|
29
|
+
{
|
|
30
|
+
inputs: { message: ["Hello amateraru from GraphAI Slack agent!"] },
|
|
31
|
+
params: {
|
|
32
|
+
post_channel: "#p_bootcamp_e_raycast_jp_amaterasu_dev",
|
|
33
|
+
},
|
|
34
|
+
result: {},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
29
37
|
description: "Slack Agent",
|
|
30
|
-
category: ["
|
|
38
|
+
category: ["net"],
|
|
31
39
|
author: "Receptron team",
|
|
32
|
-
repository: "https://github.com/receptron/graphai",
|
|
40
|
+
repository: "https://github.com/receptron/graphai-agents/tree/main/net/slack_agent",
|
|
33
41
|
license: "MIT",
|
|
34
42
|
};
|
|
35
43
|
exports.default = slackAgentInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphai/slack_agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Slack message agents for GraphAI.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -18,18 +18,16 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/receptron/graphai-agents.git"
|
|
22
22
|
},
|
|
23
23
|
"author": "Isamu Arimoto",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/receptron/graphai-agents/issues"
|
|
27
27
|
},
|
|
28
|
-
"homepage": "https://github.com/
|
|
28
|
+
"homepage": "https://github.com/receptron/graphai-agents#readme",
|
|
29
29
|
"devDependencies": {},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@slack/web-api": "^7.3.4"
|
|
32
|
-
"dotenv": "^16.4.5",
|
|
33
|
-
"graphai": "^0.5.7"
|
|
31
|
+
"@slack/web-api": "^7.3.4"
|
|
34
32
|
}
|
|
35
33
|
}
|