agent-inspect 6.3.0 → 6.4.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.
@@ -1288,6 +1288,31 @@ function manualTraceEventsToRunTree(events) {
1288
1288
  };
1289
1289
  }
1290
1290
 
1291
+ // packages/core/src/exporters/fixtures.ts
1292
+ function validateOpenInferenceFixture(content) {
1293
+ return validateExportContent("openinference", content);
1294
+ }
1295
+ function validateOtlpJsonFixture(content) {
1296
+ return validateExportContent("otlp-json", content);
1297
+ }
1298
+
1299
+ // packages/core/src/exporters/semconv.ts
1300
+ var OTEL_GEN_AI_SEMCONV_PIN = {
1301
+ /** Human-readable pin label recorded in export metadata and docs. */
1302
+ version: "1.36.0",
1303
+ /** Public spec URL for maintainers validating attribute names. */
1304
+ specUrl: "https://opentelemetry.io/docs/specs/semconv/gen-ai/",
1305
+ /** Attribute families emitted by agent-inspect OTLP JSON export. */
1306
+ attributes: [
1307
+ "gen_ai.operation.name",
1308
+ "gen_ai.request.model",
1309
+ "gen_ai.usage.input_tokens",
1310
+ "gen_ai.usage.output_tokens",
1311
+ "gen_ai.prompt",
1312
+ "gen_ai.completion"
1313
+ ]
1314
+ };
1315
+
1291
1316
  // packages/core/src/exporters/index.ts
1292
1317
  function mergeExportDefaults(options) {
1293
1318
  return {
@@ -2036,6 +2061,7 @@ ${attrsSection}
2036
2061
  }
2037
2062
 
2038
2063
  exports.EXPORT_PAYLOAD_VERSION = EXPORT_PAYLOAD_VERSION;
2064
+ exports.OTEL_GEN_AI_SEMCONV_PIN = OTEL_GEN_AI_SEMCONV_PIN;
2039
2065
  exports.buildRunReport = buildRunReport;
2040
2066
  exports.compactAttributes = compactAttributes;
2041
2067
  exports.escapeHtml = escapeHtml;
@@ -2054,5 +2080,7 @@ exports.stableJson = stableJson;
2054
2080
  exports.summarizeTree = summarizeTree;
2055
2081
  exports.validateExport = validateExport;
2056
2082
  exports.validateExportContent = validateExportContent;
2083
+ exports.validateOpenInferenceFixture = validateOpenInferenceFixture;
2084
+ exports.validateOtlpJsonFixture = validateOtlpJsonFixture;
2057
2085
  //# sourceMappingURL=exporters.cjs.map
2058
2086
  //# sourceMappingURL=exporters.cjs.map