@arizeai/openinference-instrumentation-beeai 1.1.0 → 1.1.1
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/esm/helpers/getSerializedObjectSafe.d.ts.map +1 -1
- package/dist/esm/helpers/getSerializedObjectSafe.js +2 -2
- package/dist/esm/helpers/getSerializedObjectSafe.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esnext/helpers/getSerializedObjectSafe.d.ts.map +1 -1
- package/dist/esnext/helpers/getSerializedObjectSafe.js +2 -2
- package/dist/esnext/helpers/getSerializedObjectSafe.js.map +1 -1
- package/dist/esnext/tsconfig.esnext.tsbuildinfo +1 -1
- package/dist/src/helpers/getSerializedObjectSafe.d.ts.map +1 -1
- package/dist/src/helpers/getSerializedObjectSafe.js +2 -2
- package/dist/src/helpers/getSerializedObjectSafe.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/helpers/getSerializedObjectSafe.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arizeai/openinference-instrumentation-beeai",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "gallas.milan@gmail.com",
|
|
6
6
|
"description": "OpenInference Instrumentation for BeeAI framework",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@opentelemetry/api": "^1.9.0",
|
|
33
33
|
"@opentelemetry/instrumentation": "^0.57.1",
|
|
34
34
|
"remeda": "^2.20.2",
|
|
35
|
-
"@arizeai/openinference-
|
|
36
|
-
"@arizeai/openinference-
|
|
35
|
+
"@arizeai/openinference-semantic-conventions": "1.0.0",
|
|
36
|
+
"@arizeai/openinference-core": "1.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"beeai-framework": "^0.1.
|
|
39
|
+
"beeai-framework": "^0.1.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29.5.12",
|
|
43
43
|
"@types/node": "^20.14.11",
|
|
44
|
-
"beeai-framework": "^0.1.
|
|
44
|
+
"beeai-framework": "^0.1.9",
|
|
45
45
|
"import-in-the-middle": "^1.13.0",
|
|
46
46
|
"@opentelemetry/exporter-trace-otlp-proto": "^0.50.0",
|
|
47
47
|
"@opentelemetry/resources": "^1.30.1",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { Serializable } from "beeai-framework/internals/serializable";
|
|
18
|
-
import { instrumentationLogger } from "beeai-framework/instrumentation/logger";
|
|
19
18
|
import { getProp } from "beeai-framework/internals/helpers/object";
|
|
20
19
|
import { EventMeta, InferCallbackValue } from "beeai-framework/emitter/types";
|
|
21
20
|
import type { ReActAgentCallbacks } from "beeai-framework/agents/react/types";
|
|
@@ -52,6 +51,7 @@ import {
|
|
|
52
51
|
SemanticConventions,
|
|
53
52
|
} from "@arizeai/openinference-semantic-conventions";
|
|
54
53
|
import { Tool, ToolEvents } from "beeai-framework/tools/base";
|
|
54
|
+
import { diag } from "@opentelemetry/api";
|
|
55
55
|
|
|
56
56
|
function parserLLMInputMessages(
|
|
57
57
|
messages: readonly Message<MessageContentPart, string>[],
|
|
@@ -313,10 +313,7 @@ export function getSerializedObjectSafe(
|
|
|
313
313
|
try {
|
|
314
314
|
return { data: JSON.stringify(data.createSnapshot()), test: "hallo" };
|
|
315
315
|
} catch (e) {
|
|
316
|
-
|
|
317
|
-
e,
|
|
318
|
-
"Invalid createSnapshot method in the Serializable class",
|
|
319
|
-
);
|
|
316
|
+
diag.warn("Invalid createSnapshot method in the Serializable class", e);
|
|
320
317
|
return null;
|
|
321
318
|
}
|
|
322
319
|
}
|