跳到主要内容
LangChain.js 支持调用 JigsawStack 提示引擎 LLM。

设置

凭据

export JIGSAWSTACK_API_KEY="your-api-key"

用法

有关安装 LangChain 软件包的一般说明,请参阅此部分
npm
npm install @langchain/jigsawstack
import { JigsawStackPromptEngine } from "@langchain/jigsawstack";

export const run = async () => {
  const model = new JigsawStackPromptEngine();
  const res = await model.invoke(
    "Tell me about the leaning tower of pisa?\nAnswer:"
  );
  console.log({ res });
};

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.