langwatch 1.12.0 → 1.13.0
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/dist/agent/index.d.mts +5 -1
- package/dist/agent/index.d.ts +5 -1
- package/dist/agent/index.js +239 -14
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +239 -14
- package/dist/agent/index.mjs.map +1 -1
- package/dist/{chunk-3WIN2UXZ.js → chunk-7R54TMZZ.js} +2 -2
- package/dist/{chunk-3WIN2UXZ.js.map → chunk-7R54TMZZ.js.map} +1 -1
- package/dist/{chunk-QLYKPPAW.js → chunk-G64XZMIU.js} +12 -12
- package/dist/{chunk-QLYKPPAW.js.map → chunk-G64XZMIU.js.map} +1 -1
- package/dist/{chunk-BAE4KYKJ.mjs → chunk-N3755EHD.mjs} +2 -2
- package/dist/{chunk-2HA4SJSD.mjs → chunk-NPEK4RSD.mjs} +5 -2
- package/dist/{chunk-2HA4SJSD.mjs.map → chunk-NPEK4RSD.mjs.map} +1 -1
- package/dist/{chunk-4ERRCKOH.js → chunk-O4J3ZPZY.js} +5 -2
- package/dist/chunk-O4J3ZPZY.js.map +1 -0
- package/dist/{chunk-F5UYCQT3.mjs → chunk-UHRSTPZ5.mjs} +2 -2
- package/dist/{chunk-F5UYCQT3.mjs.map → chunk-UHRSTPZ5.mjs.map} +1 -1
- package/dist/cli/bundle.js +362 -357
- package/dist/{implementation-rpImK8WS.d.ts → implementation-BDK4X-CS.d.ts} +1 -1
- package/dist/{implementation-BA3xa5UR.d.mts → implementation-BOP-3GoX.d.mts} +1 -1
- package/dist/index.d.mts +75 -5
- package/dist/index.d.ts +75 -5
- package/dist/index.js +328 -103
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +246 -21
- package/dist/index.mjs.map +1 -1
- package/dist/observability-sdk/index.d.mts +3 -3
- package/dist/observability-sdk/index.d.ts +3 -3
- package/dist/observability-sdk/index.js +3 -3
- package/dist/observability-sdk/index.mjs +2 -2
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.js +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
- package/dist/observability-sdk/setup/node/index.js +3 -3
- package/dist/observability-sdk/setup/node/index.mjs +2 -2
- package/dist/{types-Cr25FO-i.d.ts → types-C3SDhizh.d.ts} +1151 -117
- package/dist/{types-DJyJypkv.d.mts → types-C9abONOS.d.mts} +1151 -117
- package/package.json +1 -1
- package/dist/chunk-4ERRCKOH.js.map +0 -1
- /package/dist/{chunk-BAE4KYKJ.mjs.map → chunk-N3755EHD.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-
|
|
1
|
+
export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-BOP-3GoX.mjs';
|
|
2
2
|
import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
|
|
3
3
|
import { D as DataCaptureMode } from '../types-DLfhJb38.mjs';
|
|
4
4
|
export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.mjs';
|
|
5
|
-
import { L as LangWatchSpan } from '../types-
|
|
6
|
-
export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-
|
|
5
|
+
import { L as LangWatchSpan } from '../types-C9abONOS.mjs';
|
|
6
|
+
export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-C9abONOS.mjs';
|
|
7
7
|
import { Span } from '@opentelemetry/api';
|
|
8
8
|
export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.mjs';
|
|
9
9
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-
|
|
1
|
+
export { F as FilterableBatchSpanProcessor, L as LangWatchExporter, b as LangWatchExporterOptions, c as LangWatchLogger, L as LangWatchTraceExporter, b as LangWatchTraceExporterOptions, S as SpanProcessingExcludeRule, g as getLangWatchLogger, d as getLangWatchLoggerFromProvider, a as getLangWatchTracer, e as getLangWatchTracerFromProvider } from '../implementation-BDK4X-CS.js';
|
|
2
2
|
import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
|
|
3
3
|
import { D as DataCaptureMode } from '../types-DLfhJb38.js';
|
|
4
4
|
export { a as DataCaptureConfig, b as DataCaptureContext, c as DataCaptureOptions, d as DataCapturePredicate } from '../types-DLfhJb38.js';
|
|
5
|
-
import { L as LangWatchSpan } from '../types-
|
|
6
|
-
export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-
|
|
5
|
+
import { L as LangWatchSpan } from '../types-C3SDhizh.js';
|
|
6
|
+
export { A as AddEvaluationParams, E as EvaluationStatus, e as EvaluationTimestamps, I as INPUT_OUTPUT_TYPES, f as InputOutputType, J as JsonSerializable, g as LangWatchSpanMetrics, h as LangWatchSpanOptions, i as LangWatchSpanRAGContext, j as LangWatchTracer, S as SimpleChatMessage, k as SpanType, l as emitEvaluationEvent, s as spanTypes } from '../types-C3SDhizh.js';
|
|
7
7
|
import { Span } from '@opentelemetry/api';
|
|
8
8
|
export { S as SemConvAttributeKey, a as SemConvAttributes, b as SemConvLogRecordAttributes, l as attributes } from '../types-VOZv9LYO.js';
|
|
9
9
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -8,13 +8,13 @@ var _chunk73QOHSHUjs = require('../chunk-73QOHSHU.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkO4J3ZPZYjs = require('../chunk-O4J3ZPZY.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7R54TMZZjs = require('../chunk-7R54TMZZ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -38,5 +38,5 @@ var _chunkLCG5Y2EGjs = require('../chunk-LCG5Y2EG.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.DataCapturePresets = _chunk73QOHSHUjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunk73QOHSHUjs.FilterableBatchSpanProcessor; exports.LangWatchExporter =
|
|
41
|
+
exports.DataCapturePresets = _chunk73QOHSHUjs.DataCapturePresets; exports.FilterableBatchSpanProcessor = _chunk73QOHSHUjs.FilterableBatchSpanProcessor; exports.LangWatchExporter = _chunk7R54TMZZjs.LangWatchTraceExporter; exports.LangWatchLogsExporter = _chunk7R54TMZZjs.LangWatchLogsExporter; exports.LangWatchTraceExporter = _chunk7R54TMZZjs.LangWatchTraceExporter; exports.attributes = _chunkLCG5Y2EGjs.attributes_exports; exports.createLangWatchSpan = _chunkO4J3ZPZYjs.createLangWatchSpan; exports.emitEvaluationEvent = _chunkO4J3ZPZYjs.emitEvaluationEvent; exports.getDataCaptureMode = _chunkLCG5Y2EGjs.getDataCaptureMode; exports.getLangWatchLogger = _chunk7R54TMZZjs.getLangWatchLogger; exports.getLangWatchLoggerFromProvider = _chunk7R54TMZZjs.getLangWatchLoggerFromProvider; exports.getLangWatchTracer = _chunkO4J3ZPZYjs.getLangWatchTracer; exports.getLangWatchTracerFromProvider = _chunkO4J3ZPZYjs.getLangWatchTracerFromProvider; exports.shouldCaptureInput = _chunkLCG5Y2EGjs.shouldCaptureInput; exports.shouldCaptureOutput = _chunkLCG5Y2EGjs.shouldCaptureOutput; exports.spanTypes = _chunkO4J3ZPZYjs.spanTypes;
|
|
42
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
getLangWatchTracer,
|
|
9
9
|
getLangWatchTracerFromProvider,
|
|
10
10
|
spanTypes
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-NPEK4RSD.mjs";
|
|
12
12
|
import {
|
|
13
13
|
LangWatchLogsExporter,
|
|
14
14
|
LangWatchTraceExporter,
|
|
15
15
|
getLangWatchLogger,
|
|
16
16
|
getLangWatchLoggerFromProvider
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-UHRSTPZ5.mjs";
|
|
18
18
|
import {
|
|
19
19
|
attributes_exports,
|
|
20
20
|
getDataCaptureMode,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _opentelemetry_api from '@opentelemetry/api';
|
|
2
2
|
import { Attributes } from '@opentelemetry/api';
|
|
3
|
-
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-
|
|
3
|
+
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-C9abONOS.mjs';
|
|
4
4
|
import { AgentAction, AgentFinish } from '@langchain/core/agents';
|
|
5
5
|
import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
|
|
6
6
|
import { DocumentInterface } from '@langchain/core/documents';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _opentelemetry_api from '@opentelemetry/api';
|
|
2
2
|
import { Attributes } from '@opentelemetry/api';
|
|
3
|
-
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-
|
|
3
|
+
import { j as LangWatchTracer, L as LangWatchSpan, m as ChatMessage } from '../../../types-C3SDhizh.js';
|
|
4
4
|
import { AgentAction, AgentFinish } from '@langchain/core/agents';
|
|
5
5
|
import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
|
|
6
6
|
import { DocumentInterface } from '@langchain/core/documents';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkO4J3ZPZYjs = require('../../../chunk-O4J3ZPZY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -29,7 +29,7 @@ var LangWatchCallbackHandler = class extends _base.BaseCallbackHandler {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
this.name = "LangWatchCallbackHandler";
|
|
32
|
-
this.tracer =
|
|
32
|
+
this.tracer = _chunkO4J3ZPZYjs.getLangWatchTracer.call(void 0, "langwatch.instrumentation.langchain");
|
|
33
33
|
this.spans = {};
|
|
34
34
|
this.parentOf = {};
|
|
35
35
|
this.skipped = {};
|
|
@@ -360,7 +360,7 @@ function wrapNonScalarValues(value) {
|
|
|
360
360
|
if (value === null) return JSON.stringify(null);
|
|
361
361
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean")
|
|
362
362
|
return value;
|
|
363
|
-
const chatMessages =
|
|
363
|
+
const chatMessages = _chunkO4J3ZPZYjs.chatMessageSchema.array().safeParse(value);
|
|
364
364
|
if (Array.isArray(value) && chatMessages.success) {
|
|
365
365
|
return JSON.stringify({ type: "chat_messages", value: chatMessages.data });
|
|
366
366
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkG64XZMIUjs = require('../../../chunk-G64XZMIU.js');
|
|
5
|
+
require('../../../chunk-7R54TMZZ.js');
|
|
6
6
|
require('../../../chunk-LCG5Y2EG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ensureSetup =
|
|
10
|
+
exports.ensureSetup = _chunkG64XZMIUjs.ensureSetup; exports.setupObservability = _chunkG64XZMIUjs.setupObservability;
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureSetup,
|
|
3
3
|
setupObservability
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-N3755EHD.mjs";
|
|
5
|
+
import "../../../chunk-UHRSTPZ5.mjs";
|
|
6
6
|
import "../../../chunk-WMDQVWA6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
ensureSetup,
|