All functionality related to WRITER
This page covers how to use the WRITER ecosystem within LangChain. For further information see Writer docs.
Palmyra is a Large Language Model (LLM) developed by WRITER.
The Writer API is powered by a diverse set of Palmyra sub-models with different capabilities and price points.
Installation and Setup
Install the integration package with
pip install langchain-writer
Get a WRITER API key and set it as an environment variable (WRITER_API_KEY)
Chat model
from langchain_writer import ChatWriter
See details.
PDF Parser
from langchain_writer.pdf_parser import PDFParser
Deprecation notice: The parse PDF tool is deprecated and will be removed on December 22, 2025.Migration path: We plan to introduce a prebuilt PDF parsing tool for chat completions that will provide similar functionality. This tool will work similarly to other prebuilt tools. We will provide more details about this alternative when it becomes available.
See details.
Functions
Support of basic function calls defined via dicts, Pydantic, python functions etc.
from langchain_writer.tools import GraphTool
See details.
from langchain_writer.tools import WebSearchTool
See details.
from langchain_writer.tools import TranslationTool
See details.