@raindrop-ai/langchain 0.0.6 → 0.0.7

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
@@ -46,12 +46,26 @@ await raindrop.flush();
46
46
  | `endpoint` | `string` | `https://api.raindrop.ai/v1/` | API endpoint |
47
47
  | `userId` | `string` | - | Associate all events with a user |
48
48
  | `convoId` | `string` | - | Group events into a conversation |
49
+ | `projectId` | `string` | - | Route events to a specific project (slug); omit for the default **Production** project |
49
50
  | `debug` | `boolean` | `false` | Enable verbose logging |
50
51
  | `traceChains` | `boolean` | `true` | Create spans for chain execution |
51
52
  | `traceRetrievers` | `boolean` | `true` | Create spans for retriever calls |
52
53
  | `filterLangGraphInternals` | `boolean` | `true` | Filter LangGraph-internal chain events and deduplicate LLM callbacks |
53
54
  | `maxTextFieldChars` | `number` | `1000000` | Per-field cap for event input/output and serialized span payloads, enforced before/during serialization (truncated values end with `...[truncated by raindrop]`; a stricter `OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT` env var is honored) |
54
55
 
56
+ ## Projects
57
+
58
+ If your org has multiple projects, route events to a specific one by passing its slug as `projectId`:
59
+
60
+ ```typescript
61
+ const raindrop = createRaindropLangChain({
62
+ writeKey: "your-write-key",
63
+ projectId: "support-prod",
64
+ });
65
+ ```
66
+
67
+ This sets the `X-Raindrop-Project-Id` header on every event. Omit it (or pass `"default"`) to use your org's default **Production** project — the existing behavior. Single-project orgs need nothing new.
68
+
55
69
  ## LangGraph Support
56
70
 
57
71
  Works with LangGraph out of the box. The handler automatically:
package/dist/index.js CHANGED
@@ -1675,7 +1675,7 @@ function extractLLMMetadata(output) {
1675
1675
  // package.json
1676
1676
  var package_default = {
1677
1677
  name: "@raindrop-ai/langchain",
1678
- version: "0.0.6",
1678
+ version: "0.0.7",
1679
1679
  description: "Raindrop integration for LangChain",
1680
1680
  main: "dist/index.js",
1681
1681
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -1648,7 +1648,7 @@ function extractLLMMetadata(output) {
1648
1648
  // package.json
1649
1649
  var package_default = {
1650
1650
  name: "@raindrop-ai/langchain",
1651
- version: "0.0.6",
1651
+ version: "0.0.7",
1652
1652
  description: "Raindrop integration for LangChain",
1653
1653
  main: "dist/index.js",
1654
1654
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raindrop-ai/langchain",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Raindrop integration for LangChain",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",