npm install @graphai/pdf2text_agent``sh`
yarn add @graphai/pdf2text_agent
`typescript
import { GraphAI } from "graphai";
import { pdf2textAgent } from "@graphai/pdf2text_agent";
const agents = { pdf2textAgent };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
`
`typescript``
{
"inputs": {
"buffer": {
"type": "Buffer",
"data": [
104,
101,
108,
108,
111,
112,
100,
102
]
}
},
"params": {
"type": "md"
}
}