@graphai/pdf2text_agent 0.0.1

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 ADDED
@@ -0,0 +1,28 @@
1
+
2
+ # @graphai/pdf2text_agent for GraphAI
3
+
4
+
5
+
6
+ ### Install
7
+
8
+ ```sh
9
+ yarn add @graphai/pdf2text_agent
10
+ ```
11
+
12
+
13
+ ### Usage
14
+
15
+ ```typescript
16
+ import { GraphAI } from "graphai";
17
+ import { templateAgent } from "@graphai/pdf2text_agent";
18
+
19
+ const agents = { templateAgent };
20
+
21
+ const graph = new GraphAI(graph_data, agents);
22
+ const result = await graph.run();
23
+ ```
24
+
25
+
26
+
27
+
28
+
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import templateAgent from "./template_agent";
2
+ export { templateAgent };
package/lib/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.templateAgent = void 0;
7
+ const template_agent_1 = __importDefault(require("./template_agent"));
8
+ exports.templateAgent = template_agent_1.default;
@@ -0,0 +1,4 @@
1
+ import { AgentFunction, AgentFunctionInfo } from "graphai";
2
+ export declare const templateAgent: AgentFunction;
3
+ declare const templateAgentInfo: AgentFunctionInfo;
4
+ export default templateAgentInfo;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateAgent = void 0;
4
+ const templateAgent = async ({ params, namedInputs }) => {
5
+ return { params, namedInputs };
6
+ };
7
+ exports.templateAgent = templateAgent;
8
+ const templateAgentInfo = {
9
+ name: "templateAgent",
10
+ agent: exports.templateAgent,
11
+ mock: exports.templateAgent,
12
+ samples: [],
13
+ description: "Template Agent",
14
+ category: ["template"],
15
+ author: "Receptron team",
16
+ repository: "https://github.com/receptron/graphai",
17
+ license: "MIT",
18
+ };
19
+ exports.default = templateAgentInfo;
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@graphai/pdf2text_agent",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "files": [
7
+ "./lib"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "eslint": "eslint src --fix",
12
+ "format": "prettier --write '{src,tests}/**/*.ts'",
13
+ "doc": "npx agentdoc",
14
+ "test_run": "node --test --require ts-node/register ./tests/run_*.ts",
15
+ "test": "node --test --require ts-node/register ./tests/test_*.ts",
16
+ "ci": "yarn run format && yarn run eslint && yarn run test && yarn run build"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/isamu/graphai-agents.git"
21
+ },
22
+ "author": "",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/isamu/graphai-agents/issues"
26
+ },
27
+ "homepage": "https://github.com/isamu/graphai-agents#readme",
28
+ "devDependencies": {},
29
+ "dependencies": {
30
+ "@opendocsg/pdf2md": "^0.2.0"
31
+ }
32
+ }