raindrop-ai 1.0.5 → 1.0.6
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 +12 -2
- package/dist/{chunk-VCUDX7H3.mjs → chunk-JJHRALY4.mjs} +1 -1
- package/dist/{chunk-T3W2IICO.mjs → chunk-OUAKPLDX.mjs} +1927 -356
- package/dist/{chunk-LZVJUJN5.mjs → chunk-QNTUAQ4I.mjs} +238 -6327
- package/dist/evals/cli.js +3911 -8450
- package/dist/evals/cli.mjs +3 -4
- package/dist/{index-B3VWTg46.d.mts → index-C46PQW84.d.mts} +209 -114
- package/dist/{index-B3VWTg46.d.ts → index-C46PQW84.d.ts} +209 -114
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4645 -9184
- package/dist/index.mjs +3 -4
- package/dist/otel/index.mjs +0 -2
- package/dist/{portable-runtime-DTCO6KZY.mjs → portable-runtime-4KVE4EYZ.mjs} +1 -2
- package/dist/tracing/index.d.mts +6 -3
- package/dist/tracing/index.d.ts +6 -3
- package/dist/tracing/index.js +748 -230
- package/dist/tracing/index.mjs +1 -2
- package/package.json +2 -2
- package/dist/chunk-B7F5QLE5.mjs +0 -34
package/README.md
CHANGED
|
@@ -547,6 +547,14 @@ Carriers are also readable in LangSmith's `langsmith-trace` +
|
|
|
547
547
|
`langsmith-metadata` shape, so a service already propagating those links with no
|
|
548
548
|
call-site change.
|
|
549
549
|
|
|
550
|
+
## Tool spans with a saved parent
|
|
551
|
+
|
|
552
|
+
`interaction.trackTool({ name, ..., traceId, parentSpanId })` records a
|
|
553
|
+
retroactive tool span under a span you saved earlier (W3C hex ids, for example
|
|
554
|
+
from another process). The saved parent is honored in both modes: the default
|
|
555
|
+
OpenTelemetry mode and `bypassOtelForTools: true`. Without valid ids the span
|
|
556
|
+
nests under the active context as usual.
|
|
557
|
+
|
|
550
558
|
## Payload size limits
|
|
551
559
|
|
|
552
560
|
Text fields (ai input/output, tool span I/O, span content) are capped at
|
|
@@ -565,8 +573,10 @@ const raindrop = new Raindrop({
|
|
|
565
573
|
|
|
566
574
|
A stricter `OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT` env var is still honored
|
|
567
575
|
for span content. All outbound HTTP carries finite timeouts, and
|
|
568
|
-
`raindrop.close()` runs under a 10s deadline so a dead
|
|
569
|
-
wedge your process exit.
|
|
576
|
+
`raindrop.close()` runs under a 10s deadline (`flushTimeoutMs`) so a dead
|
|
577
|
+
network can never wedge your process exit. Like `forceFlush()`, it resolves
|
|
578
|
+
(never rejects) to `{ delivered, timedOut, dropped, queued, inFlight }`;
|
|
579
|
+
ignoring the result is fine.
|
|
570
580
|
|
|
571
581
|
## Notes
|
|
572
582
|
|
|
@@ -1214,7 +1214,7 @@ async function evaluatePortableEvaluator(evaluator, input) {
|
|
|
1214
1214
|
if (new Set(input.traces.map((trace) => trace.event.id)).size !== input.traces.length) {
|
|
1215
1215
|
throw new Error("Raindrop portable evaluator input trace ids must be unique");
|
|
1216
1216
|
}
|
|
1217
|
-
const { runPortableEvaluator } = await import("./portable-runtime-
|
|
1217
|
+
const { runPortableEvaluator } = await import("./portable-runtime-4KVE4EYZ.mjs");
|
|
1218
1218
|
const cases = ((_a = input.rows) != null ? _a : []).map(({ rowId, ...pair }) => ({ ...pair, caseId: rowId }));
|
|
1219
1219
|
if (cases.length > 0 && (cases.length !== input.traces.length || cases.some(
|
|
1220
1220
|
(entry, index) => {
|