diff --git a/apps/website/content/AGENTS.md.template b/apps/website/content/AGENTS.md.template index 19a54256c..9df38fcab 100644 --- a/apps/website/content/AGENTS.md.template +++ b/apps/website/content/AGENTS.md.template @@ -3,7 +3,7 @@ Production-ready chat, durable threads, interrupts, subagents, planning, memory, and generative UI for Angular agent apps. ## Install -npm install @threadplane/chat @threadplane/langgraph +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ## Key requirement `injectAgent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". diff --git a/apps/website/content/CLAUDE.md.template b/apps/website/content/CLAUDE.md.template index 19a54256c..9df38fcab 100644 --- a/apps/website/content/CLAUDE.md.template +++ b/apps/website/content/CLAUDE.md.template @@ -3,7 +3,7 @@ Production-ready chat, durable threads, interrupts, subagents, planning, memory, and generative UI for Angular agent apps. ## Install -npm install @threadplane/chat @threadplane/langgraph +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ## Key requirement `injectAgent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". diff --git a/apps/website/content/docs/chat/getting-started/installation.mdx b/apps/website/content/docs/chat/getting-started/installation.mdx index fdb2c6d37..5c368ad07 100644 --- a/apps/website/content/docs/chat/getting-started/installation.mdx +++ b/apps/website/content/docs/chat/getting-started/installation.mdx @@ -33,7 +33,7 @@ Install `@threadplane/chat`, your chosen runtime adapter, and the `marked` markd ```bash # LangGraph backends -npm install @threadplane/chat @threadplane/langgraph marked +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked # AG-UI compatible backends npm install @threadplane/chat @threadplane/ag-ui @ag-ui/client @ag-ui/core marked diff --git a/apps/website/content/docs/chat/getting-started/quickstart.mdx b/apps/website/content/docs/chat/getting-started/quickstart.mdx index 026ea9126..7e75a16de 100644 --- a/apps/website/content/docs/chat/getting-started/quickstart.mdx +++ b/apps/website/content/docs/chat/getting-started/quickstart.mdx @@ -18,10 +18,10 @@ Evaluating? No license needed — the chat runs without a token (with a one-time ```bash -npm install @threadplane/chat @threadplane/langgraph marked +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ``` -`@threadplane/langgraph` provides the adapter used by the provider snippet below. `marked` is the markdown renderer used for assistant messages. +`@threadplane/langgraph` provides the adapter used by the provider snippet below. The LangChain packages are required peers for that adapter, and `marked` is the markdown renderer used for assistant messages. diff --git a/apps/website/content/docs/langgraph/api/api-docs.json b/apps/website/content/docs/langgraph/api/api-docs.json index d8c23adfb..ab7d7d4ef 100644 --- a/apps/website/content/docs/langgraph/api/api-docs.json +++ b/apps/website/content/docs/langgraph/api/api-docs.json @@ -2524,7 +2524,7 @@ "description": "" }, "examples": [ - "```ts\nTestBed.configureTestingModule({\n providers: [provideFakeAgent({ responses: ['Hi from the fake LangGraph agent'] })],\n});\n```" + "```ts\nTestBed.configureTestingModule({\n providers: [provideFakeAgent({ tokens: ['Hi from the fake LangGraph agent'] })],\n});\n```" ] }, { diff --git a/apps/website/content/docs/langgraph/getting-started/installation.mdx b/apps/website/content/docs/langgraph/getting-started/installation.mdx index 07faf653f..a07e2e82f 100644 --- a/apps/website/content/docs/langgraph/getting-started/installation.mdx +++ b/apps/website/content/docs/langgraph/getting-started/installation.mdx @@ -19,10 +19,10 @@ A running LangGraph agent reachable over HTTP. Local (`langgraph dev`) or deploy ## Install the package ```bash -npm install @threadplane/langgraph @threadplane/chat +npm install @threadplane/langgraph @threadplane/chat @langchain/core @langchain/langgraph-sdk ``` -`@threadplane/langgraph` provides `injectAgent()` and `provideAgent()`. `@threadplane/chat` provides the runtime-neutral chat UI consumed by the LangGraph adapter. +`@threadplane/langgraph` provides `injectAgent()` and `provideAgent()`. `@threadplane/chat` provides the runtime-neutral chat UI consumed by the LangGraph adapter. The LangChain packages are required peers used by the adapter's message types and LangGraph SDK client. ## Peer Dependencies diff --git a/apps/website/content/docs/langgraph/getting-started/introduction.mdx b/apps/website/content/docs/langgraph/getting-started/introduction.mdx index fe22c3442..84bc1ac20 100644 --- a/apps/website/content/docs/langgraph/getting-started/introduction.mdx +++ b/apps/website/content/docs/langgraph/getting-started/introduction.mdx @@ -129,7 +129,7 @@ Now connect your Angular app to the running agent using `injectAgent()`. ```bash -npm install @threadplane/langgraph +npm install @threadplane/langgraph @threadplane/chat @langchain/core @langchain/langgraph-sdk ``` diff --git a/apps/website/content/docs/langgraph/getting-started/quickstart.mdx b/apps/website/content/docs/langgraph/getting-started/quickstart.mdx index 84e957bf7..0925baf5b 100644 --- a/apps/website/content/docs/langgraph/getting-started/quickstart.mdx +++ b/apps/website/content/docs/langgraph/getting-started/quickstart.mdx @@ -10,10 +10,10 @@ Angular 20+ project with Node.js 18+. If you need setup help, see the [Installat ```bash -npm install @threadplane/langgraph @threadplane/chat +npm install @threadplane/langgraph @threadplane/chat @langchain/core @langchain/langgraph-sdk ``` -Most npm clients install peer dependencies automatically. Strict package managers may also ask you to install the Angular, LangChain, and LangGraph SDK peers listed in the [Installation](/docs/langgraph/getting-started/installation) guide. +Most npm clients install peer dependencies automatically. Listing the LangChain peers explicitly keeps strict package managers quiet. They may still ask you to install the Angular and RxJS peers listed in the [Installation](/docs/langgraph/getting-started/installation) guide if your app does not already provide them. diff --git a/apps/website/content/prompts/getting-started.md b/apps/website/content/prompts/getting-started.md index 77b8ad6a5..03e6ef6f8 100644 --- a/apps/website/content/prompts/getting-started.md +++ b/apps/website/content/prompts/getting-started.md @@ -1,6 +1,6 @@ Add angular to my Angular 20+ application. -Install: npm install @threadplane/chat @threadplane/langgraph +Install: npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked 1. In app.config.ts, add provideAgent({ apiUrl: 'http://localhost:2024', assistantId: 'chat' }) to the providers array. Import it from '@threadplane/langgraph'. diff --git a/apps/website/public/AGENTS.md b/apps/website/public/AGENTS.md index c1532ec49..5d54e537b 100644 --- a/apps/website/public/AGENTS.md +++ b/apps/website/public/AGENTS.md @@ -3,7 +3,7 @@ Production-ready chat, durable threads, interrupts, subagents, planning, memory, and generative UI for Angular agent apps. ## Install -npm install @threadplane/chat @threadplane/langgraph +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ## Key requirement `injectAgent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". diff --git a/apps/website/public/CLAUDE.md b/apps/website/public/CLAUDE.md index c1532ec49..5d54e537b 100644 --- a/apps/website/public/CLAUDE.md +++ b/apps/website/public/CLAUDE.md @@ -3,7 +3,7 @@ Production-ready chat, durable threads, interrupts, subagents, planning, memory, and generative UI for Angular agent apps. ## Install -npm install @threadplane/chat @threadplane/langgraph +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ## Key requirement `injectAgent()` MUST be called within an Angular injection context (component constructor or field initializer). Calling it in ngOnInit or any async context throws "NG0203: inject() must be called from an injection context". diff --git a/apps/website/src/app/docs/page.tsx b/apps/website/src/app/docs/page.tsx index 049bcf737..2586c8d45 100644 --- a/apps/website/src/app/docs/page.tsx +++ b/apps/website/src/app/docs/page.tsx @@ -30,7 +30,7 @@ const BACKENDS: Backend[] = [ { title: 'LangGraph', blurb: 'For LangChain & LangGraph backends.', - install: 'npm i @threadplane/chat @threadplane/langgraph', + install: 'npm i @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked', href: '/docs/langgraph/getting-started/quickstart', logoSrc: '/logos/langgraph.svg', attribution: 'LangChain', diff --git a/apps/website/src/app/llms.txt/route.ts b/apps/website/src/app/llms.txt/route.ts index 958d255c9..9824ee888 100644 --- a/apps/website/src/app/llms.txt/route.ts +++ b/apps/website/src/app/llms.txt/route.ts @@ -32,9 +32,9 @@ function buildLlmsTxt(): string { '', '## Install', '# LangGraph backend:', - 'npm install @threadplane/chat @threadplane/langgraph', + 'npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked', '# LangGraph backend with browser client tools:', - 'npm install @threadplane/chat @threadplane/langgraph @threadplane/middleware', + 'npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk @threadplane/middleware marked', '# AG-UI backend:', 'npm install @threadplane/chat @threadplane/ag-ui @ag-ui/client @ag-ui/core', '', diff --git a/libs/chat/README.md b/libs/chat/README.md index d556874c1..496beddca 100644 --- a/libs/chat/README.md +++ b/libs/chat/README.md @@ -28,7 +28,7 @@ Part of [Threadplane](https://github.com/cacheplane/angular-agent-framework). ## Install ```bash -npm install @threadplane/chat @threadplane/langgraph marked +npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked ``` **Peer dependencies:** diff --git a/libs/langgraph/README.md b/libs/langgraph/README.md index 61276b8ca..c7346edcb 100644 --- a/libs/langgraph/README.md +++ b/libs/langgraph/README.md @@ -27,7 +27,7 @@ Adapter that wraps a LangGraph agent into the runtime-neutral `Agent` contract f ## Install ```bash -npm install @threadplane/langgraph @threadplane/chat +npm install @threadplane/langgraph @threadplane/chat @langchain/core @langchain/langgraph-sdk ``` **Peer dependencies:** @@ -159,7 +159,7 @@ Pair it with the lifecycle helpers to keep your thread list fresh: ```ts import { refreshOnRunEnd, refreshOnTransition } from '@threadplane/langgraph'; -refreshOnRunEnd(chat, () => threadsAdapter.loadThreads()); +refreshOnRunEnd(chat, () => threadsAdapter.refresh()); ``` ### Citations diff --git a/libs/langgraph/src/lib/testing/provide-fake-agent.ts b/libs/langgraph/src/lib/testing/provide-fake-agent.ts index e0d1c3081..a63f0d274 100644 --- a/libs/langgraph/src/lib/testing/provide-fake-agent.ts +++ b/libs/langgraph/src/lib/testing/provide-fake-agent.ts @@ -16,7 +16,7 @@ import { FakeStreamTransport } from './fake-stream.transport'; * @example * ```ts * TestBed.configureTestingModule({ - * providers: [provideFakeAgent({ responses: ['Hi from the fake LangGraph agent'] })], + * providers: [provideFakeAgent({ tokens: ['Hi from the fake LangGraph agent'] })], * }); * ``` */