Skip to content

Doc-API-LLC/langchain-docapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

langchain-docapi

LangChain tools for DocAPI — generate PDFs, screenshots, and invoices via API.

Installation

pip install langchain-docapi

Quick Start

from langchain_docapi import DocAPIPDFTool, DocAPIScreenshotTool, DocAPIInvoiceTool
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_openai import ChatOpenAI

tools = [
    DocAPIPDFTool(api_key="your-docapi-key"),
    DocAPIScreenshotTool(api_key="your-docapi-key"),
    DocAPIInvoiceTool(api_key="your-docapi-key"),
]

llm = ChatOpenAI(model="gpt-4o")
agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools)

agent_executor.invoke({"input": "Generate a PDF from <h1>Hello World</h1>"})

Documentation

See the DocAPI docs for full API reference.

About

LangChain tools for DocAPI — generate PDFs, screenshots, and invoices via API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages