Skip to main content

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.

Metadata

Release files for langchain-docapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-docapi 0.1.0
File Size Uploaded
langchain_docapi-0.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-docapi 0.1.0
File Interpreter ABI Platform
langchain_docapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / langchain_docapi-0.1.0.tar.gz

Download URL langchain_docapi-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1391cee123d9ec06ade9b249ff82f6cf407b6667790398be01ce9f9d7fa61424
BLAKE2b-256 checksum
How to use checksums
67913db11d0e73a266a020153902bee619242e42ed2d8356279ea4f9b1ec9b83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / langchain_docapi-0.1.0-py3-none-any.whl

Download URL langchain_docapi-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ee9b80cc0e9ea2a2785f9aee29e427e5f0700f719ee8fb80efbb16eb1428885
BLAKE2b-256 checksum
How to use checksums
ea2ba941003ce060c8cb0b7235df2aec9235be64ab4a1ec636239b4daa3d05c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page