@octoryn/langchain
v0.1.0
Published
LangChain JS adapters for governed Octoryn model and embedding access.
Downloads
119
Readme
@octoryn/langchain
LangChain JS factories for governed Octoryn chat and embedding access.
import { createOctorynChatModel } from "@octoryn/langchain";
const model = createOctorynChatModel({
apiKey: process.env.OCTORYN_API_KEY,
model: "policy/au-healthcare",
});
const response = await model.invoke("Summarise the case.");The adapter uses LangChain's official ChatOpenAI compatibility surface,
pins the endpoint to https://api.octoryn.dev/v1, preserves streaming, tools
and structured output, and adds X-Octoryn-Sdk: langchain-js.
Use Reef, not a client-side LangChain agent executor, for durable multi-step tool execution.
