@dawn-ai/langchain
v0.8.26
Published
LangChain adapters for Dawn agents, chains, tools, streaming, embeddings, and retry.
Maintainers
Readme
@dawn-ai/langchain
LangChain adapters for materializing Dawn agents and chains, converting tools, streaming, embeddings, and retry.
Use this when: You are materializing or extending Dawn's LangChain agent and chain bridge. Application routes normally declare agents through @dawn-ai/sdk and let the runtime use this layer.
Install
pnpm add @dawn-ai/langchain @langchain/core @langchain/langgraph-checkpointInstall the optional LangChain provider package selected by your agents. @langchain/openai is included; Anthropic, Google, Mistral, Groq, Ollama, xAI, and OpenRouter integrations are optional peers.
Example
import { chainAdapter, openaiEmbedder } from "@dawn-ai/langchain"
export const adapter = chainAdapter
export const embedder = openaiEmbedder({ model: "text-embedding-3-small" })chainAdapter adapts a LangChain runnable to Dawn's chain backend contract. openaiEmbedder supplies the memory embedding seam and reads provider configuration when first used.
Runtime and stability
@dawn-ai/langchainis an edge-safe, supported integration surface.- Edge-safe describes Dawn's emitted edge target; it is not a promise that every provider integration, application tool, or dynamically loaded package is browser-portable.
@dawn-ai/langchain/package.jsonexposes package metadata for tooling, not runtime code.
Related
@dawn-ai/sdk— author-facing agent and chain declarations.@dawn-ai/langgraph— raw graph and workflow route adapters.- LangChain API reference — full exports, peers, and runtime contracts.
- Agents guide — define application agents through the author-facing API.
Maturity and support
This package is pre-1.0 and releases in Dawn's fixed package group. Review the changelog before upgrading. For support, open an issue.
License
MIT. See the repository license.
