@copass/langchain
Advanced tools
+4
-4
| { | ||
| "name": "@copass/langchain", | ||
| "version": "0.5.6", | ||
| "version": "0.5.7", | ||
| "description": "LangChain tool adapters for Copass — drop-in discover/interpret/search tools for LangChain agents", | ||
@@ -61,3 +61,3 @@ "publishConfig": { | ||
| "peerDependencies": { | ||
| "@copass/core": "^0.6.0", | ||
| "@copass/core": ">=0.6.0", | ||
| "@langchain/core": ">=1.0.0", | ||
@@ -73,3 +73,3 @@ "@langchain/langgraph": ">=1.0.0", | ||
| "devDependencies": { | ||
| "@copass/core": "^0.6.3", | ||
| "@copass/core": "^0.8.0", | ||
| "@langchain/core": "^1.1.0", | ||
@@ -82,3 +82,3 @@ "@langchain/langgraph": "^1.2.0", | ||
| }, | ||
| "gitHead": "89abb7a320314feed66ff82fcb251f41ad2a70cb" | ||
| "gitHead": "49c271fcab6a019ef0a329ce01b877b518e3ec48" | ||
| } |
+18
-0
@@ -118,2 +118,20 @@ # @copass/langchain | ||
| ## Conversation metadata | ||
| The LangChain callback delegates to `ContextWindow.addTurn`, so any | ||
| `participants` configured on the underlying window flow through | ||
| automatically — no LangChain-specific wiring needed: | ||
| ```typescript | ||
| const window = await client.contextWindow.create({ | ||
| sandbox_id, | ||
| participants: ['User', 'agent:support-bot'], // roster set once | ||
| }); | ||
| ``` | ||
| Set a per-turn `name` on the `ChatMessage` for richer per-turn speaker | ||
| provenance. See [`@copass/core`](../core) for the full envelope | ||
| surface (`speaker`, `participants`, `occurred_at`, free-form | ||
| `source_type`). | ||
| ## Related | ||
@@ -120,0 +138,0 @@ |
72413
0.81%145
14.17%