@threadplane/langgraph 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ Adapter that wraps a LangGraph agent into the runtime-neutral `Agent` contract f
27
27
  ## Install
28
28
 
29
29
  ```bash
30
- npm install @threadplane/langgraph @threadplane/chat
30
+ npm install @threadplane/langgraph @threadplane/chat @langchain/core @langchain/langgraph-sdk
31
31
  ```
32
32
 
33
33
  **Peer dependencies:**
@@ -159,7 +159,7 @@ Pair it with the lifecycle helpers to keep your thread list fresh:
159
159
  ```ts
160
160
  import { refreshOnRunEnd, refreshOnTransition } from '@threadplane/langgraph';
161
161
 
162
- refreshOnRunEnd(chat, () => threadsAdapter.loadThreads());
162
+ refreshOnRunEnd(chat, () => threadsAdapter.refresh());
163
163
  ```
164
164
 
165
165
  ### Citations
@@ -13,8 +13,8 @@ import { toAgentError, isAbortError, AgentError, AGENT_ERROR_MESSAGES, mockAgent
13
13
  * an Angular injection context. External instrumentation packages
14
14
  * (e.g. cockpit-telemetry) provide this token and read from it.
15
15
  *
16
- * `@threadplane/langgraph` does NOT provide this itself — `agent()` writes to
17
- * the registry only when an external consumer has provided it.
16
+ * `@threadplane/langgraph` does NOT provide this itself — the configured agent
17
+ * instance writes to the registry only when an external consumer has provided it.
18
18
  */
19
19
  class AgentLifecycleRegistry {
20
20
  _lifecycles = signal([], ...(ngDevMode ? [{ debugName: "_lifecycles" }] : []));
@@ -3105,7 +3105,7 @@ function delay(ms) {
3105
3105
  * @example
3106
3106
  * ```ts
3107
3107
  * TestBed.configureTestingModule({
3108
- * providers: [provideFakeAgent({ responses: ['Hi from the fake LangGraph agent'] })],
3108
+ * providers: [provideFakeAgent({ tokens: ['Hi from the fake LangGraph agent'] })],
3109
3109
  * });
3110
3110
  * ```
3111
3111
  */