@graphai/pdf2text_agent 0.0.3 → 0.2.0

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 CHANGED
@@ -22,6 +22,43 @@ const graph = new GraphAI(graph_data, agents);
22
22
  const result = await graph.run();
23
23
  ```
24
24
 
25
+ ### Agents description
26
+ - pdf2textAgent - Pdf2text Agent
27
+
28
+ ### Input/Output/Params Schema & samples
29
+ - [pdf2textAgent](https://github.com/receptron/graphai/blob/main/docs/agentDocs/documents/pdf2textAgent.md)
30
+
31
+ ### Input/Params example
32
+ - pdf2textAgent
33
+
34
+ ```typescript
35
+ {
36
+ "inputs": {
37
+ "buffer": {
38
+ "type": "Buffer",
39
+ "data": [
40
+ 104,
41
+ 101,
42
+ 108,
43
+ 108,
44
+ 111,
45
+ 112,
46
+ 100,
47
+ 102
48
+ ]
49
+ }
50
+ },
51
+ "params": {
52
+ "type": "md"
53
+ }
54
+ }
55
+ ```
56
+
57
+
58
+
59
+
60
+
61
+
25
62
 
26
63
 
27
64
 
@@ -24,7 +24,11 @@ const pdf2textAgentInfo = {
24
24
  name: "pdf2textAgent",
25
25
  agent: exports.pdf2textAgent,
26
26
  mock: exports.pdf2textAgent,
27
- samples: [],
27
+ samples: [{
28
+ inputs: { buffer: Buffer.from("hellopdf") },
29
+ params: { type: "md" },
30
+ result: { test: "hello" },
31
+ }],
28
32
  description: "Pdf2text Agent",
29
33
  category: ["documents"],
30
34
  author: "Receptron team",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphai/pdf2text_agent",
3
- "version": "0.0.3",
3
+ "version": "0.2.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "files": [