@raindrop-ai/langchain 0.0.5 → 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 +14 -0
- package/dist/index.js +3 -8
- package/dist/index.mjs +3 -8
- package/package.json +3 -8
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,20 +1675,15 @@ function extractLLMMetadata(output) {
|
|
|
1675
1675
|
// package.json
|
|
1676
1676
|
var package_default = {
|
|
1677
1677
|
name: "@raindrop-ai/langchain",
|
|
1678
|
-
version: "0.0.
|
|
1678
|
+
version: "0.0.7",
|
|
1679
1679
|
description: "Raindrop integration for LangChain",
|
|
1680
1680
|
main: "dist/index.js",
|
|
1681
1681
|
module: "dist/index.mjs",
|
|
1682
1682
|
types: "dist/index.d.ts",
|
|
1683
1683
|
license: "MIT",
|
|
1684
|
-
|
|
1685
|
-
type: "git",
|
|
1686
|
-
url: "git+https://github.com/raindrop-ai/raindrop-js.git",
|
|
1687
|
-
directory: "packages/langchain"
|
|
1688
|
-
},
|
|
1689
|
-
homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/langchain#readme",
|
|
1684
|
+
homepage: "https://www.raindrop.ai/docs/integrations/langchain/",
|
|
1690
1685
|
bugs: {
|
|
1691
|
-
url: "https://
|
|
1686
|
+
url: "https://www.raindrop.ai/docs/support/"
|
|
1692
1687
|
},
|
|
1693
1688
|
exports: {
|
|
1694
1689
|
".": {
|
package/dist/index.mjs
CHANGED
|
@@ -1648,20 +1648,15 @@ function extractLLMMetadata(output) {
|
|
|
1648
1648
|
// package.json
|
|
1649
1649
|
var package_default = {
|
|
1650
1650
|
name: "@raindrop-ai/langchain",
|
|
1651
|
-
version: "0.0.
|
|
1651
|
+
version: "0.0.7",
|
|
1652
1652
|
description: "Raindrop integration for LangChain",
|
|
1653
1653
|
main: "dist/index.js",
|
|
1654
1654
|
module: "dist/index.mjs",
|
|
1655
1655
|
types: "dist/index.d.ts",
|
|
1656
1656
|
license: "MIT",
|
|
1657
|
-
|
|
1658
|
-
type: "git",
|
|
1659
|
-
url: "git+https://github.com/raindrop-ai/raindrop-js.git",
|
|
1660
|
-
directory: "packages/langchain"
|
|
1661
|
-
},
|
|
1662
|
-
homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/langchain#readme",
|
|
1657
|
+
homepage: "https://www.raindrop.ai/docs/integrations/langchain/",
|
|
1663
1658
|
bugs: {
|
|
1664
|
-
url: "https://
|
|
1659
|
+
url: "https://www.raindrop.ai/docs/support/"
|
|
1665
1660
|
},
|
|
1666
1661
|
exports: {
|
|
1667
1662
|
".": {
|
package/package.json
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raindrop-ai/langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Raindrop integration for LangChain",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/raindrop-ai/raindrop-js.git",
|
|
12
|
-
"directory": "packages/langchain"
|
|
13
|
-
},
|
|
14
|
-
"homepage": "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/langchain#readme",
|
|
9
|
+
"homepage": "https://www.raindrop.ai/docs/integrations/langchain/",
|
|
15
10
|
"bugs": {
|
|
16
|
-
"url": "https://
|
|
11
|
+
"url": "https://www.raindrop.ai/docs/support/"
|
|
17
12
|
},
|
|
18
13
|
"exports": {
|
|
19
14
|
".": {
|