@graphai/pdf2text_agent 0.0.2 → 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 +39 -2
- package/lib/pdf2text_agent.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,14 +14,51 @@ yarn add @graphai/pdf2text_agent
|
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
import { GraphAI } from "graphai";
|
|
17
|
-
import {
|
|
17
|
+
import { pdf2textAgent } from "@graphai/pdf2text_agent";
|
|
18
18
|
|
|
19
|
-
const agents = {
|
|
19
|
+
const agents = { pdf2textAgent };
|
|
20
20
|
|
|
21
21
|
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
|
|
package/lib/pdf2text_agent.js
CHANGED
|
@@ -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",
|