arvo-core 3.0.9 → 3.0.11

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.
@@ -57,7 +57,7 @@ var ArvoOrchestratorEventFactory = /** @class */ (function (_super) {
57
57
  throw new Error('This factory can only be used for ArvoOrchestratorContract');
58
58
  }
59
59
  _this = _super.call(this, contract) || this;
60
- _this._name = 'ArvoOrchestratorEventFactory';
60
+ _this._name = 'OrchestratorEventFactory';
61
61
  return _this;
62
62
  }
63
63
  /**
@@ -74,7 +74,7 @@ var ArvoOrchestratorEventFactory = /** @class */ (function (_super) {
74
74
  ArvoOrchestratorEventFactory.prototype.init = function (event, extensions) {
75
75
  var _this = this;
76
76
  return OpenTelemetry_1.ArvoOpenTelemetry.getInstance().startActiveSpan({
77
- name: "".concat(this._name, ".init"),
77
+ name: "".concat(this._name, ".init<").concat(this.contract.accepts.type, ">"),
78
78
  spanOptions: (0, utils_2.createSpanOptions)(this.contract),
79
79
  fn: function (span) {
80
80
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
@@ -54,7 +54,7 @@ var ArvoEventFactory = /** @class */ (function () {
54
54
  * @param contract - The versioned contract to use for event creation and validation
55
55
  */
56
56
  function ArvoEventFactory(contract) {
57
- this._name = 'ArvoEventFactory';
57
+ this._name = 'EventFactory';
58
58
  this.contract = contract;
59
59
  }
60
60
  /**
@@ -78,7 +78,7 @@ var ArvoEventFactory = /** @class */ (function () {
78
78
  ArvoEventFactory.prototype.accepts = function (event, extensions) {
79
79
  var _this = this;
80
80
  return OpenTelemetry_1.ArvoOpenTelemetry.getInstance().startActiveSpan({
81
- name: "".concat(this._name, ".accepts"),
81
+ name: "".concat(this._name, ".accepts<").concat(this.contract.accepts.type, ">"),
82
82
  spanOptions: (0, utils_2.createSpanOptions)(this.contract),
83
83
  fn: function (span) {
84
84
  var _a, _b, _c, _d, _e, _f, _g;
@@ -174,7 +174,7 @@ var ArvoEventFactory = /** @class */ (function () {
174
174
  ArvoEventFactory.prototype.systemError = function (event, extensions) {
175
175
  var _this = this;
176
176
  return OpenTelemetry_1.ArvoOpenTelemetry.getInstance().startActiveSpan({
177
- name: "".concat(this._name, ".systemError"),
177
+ name: "".concat(this._name, ".systemError<").concat(this.contract.systemError.type, ">"),
178
178
  spanOptions: (0, utils_2.createSpanOptions)(this.contract),
179
179
  fn: function (span) {
180
180
  var _a, _b, _c, _d, _e, _f, _g;
@@ -1,12 +1,10 @@
1
1
  import { SpanKind } from '@opentelemetry/api';
2
2
  import type { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
3
- import { ArvoExecutionSpanKind } from '../OpenTelemetry/ArvoExecution/types';
4
- import { OpenInferenceSpanKind } from '../OpenTelemetry/OpenInference/types';
5
3
  export declare const createSpanOptions: (contract: VersionedArvoContract<any, any>) => {
6
4
  kind: SpanKind;
7
5
  attributes: {
8
- "arvo.span.kind": ArvoExecutionSpanKind;
9
- "openinference.span.kind": OpenInferenceSpanKind;
6
+ "arvo.span.kind": string;
7
+ "openinference.span.kind": string;
10
8
  'arvo.contract.uri': any;
11
9
  'arvo.contract.version': any;
12
10
  };
@@ -1,21 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.createSpanOptions = void 0;
7
4
  var api_1 = require("@opentelemetry/api");
8
- var ArvoExecution_1 = __importDefault(require("../OpenTelemetry/ArvoExecution"));
9
- var types_1 = require("../OpenTelemetry/ArvoExecution/types");
10
- var OpenInference_1 = __importDefault(require("../OpenTelemetry/OpenInference"));
11
- var types_2 = require("../OpenTelemetry/OpenInference/types");
5
+ var ArvoExecution_1 = require("../OpenTelemetry/ArvoExecution");
6
+ var OpenInference_1 = require("../OpenTelemetry/OpenInference");
12
7
  var createSpanOptions = function (contract) {
13
8
  var _a;
14
9
  return ({
15
10
  kind: api_1.SpanKind.INTERNAL,
16
11
  attributes: (_a = {},
17
- _a[ArvoExecution_1.default.ATTR_SPAN_KIND] = types_1.ArvoExecutionSpanKind.INTERNAL,
18
- _a[OpenInference_1.default.ATTR_SPAN_KIND] = types_2.OpenInferenceSpanKind.INTERNAL,
12
+ _a[ArvoExecution_1.ArvoExecution.ATTR_SPAN_KIND] = ArvoExecution_1.ArvoExecutionSpanKind.INTERNAL,
13
+ _a[OpenInference_1.OpenInference.ATTR_SPAN_KIND] = OpenInference_1.OpenInferenceSpanKind.INTERNAL,
19
14
  _a['arvo.contract.uri'] = contract.uri,
20
15
  _a['arvo.contract.version'] = contract.version,
21
16
  _a),
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * ArvoExection class containing attribute constants for OpenTelemetry.
3
3
  */
4
- export default class ArvoExecution {
4
+ export declare class ArvoExecution {
5
5
  static readonly ATTR_SPAN_KIND = "arvo.span.kind";
6
6
  }
7
+ export declare const ArvoExecutionSpanKind: {
8
+ EVENT_HANDLER: string;
9
+ ORCHESTRATOR: string;
10
+ RESUMABLE: string;
11
+ INTERNAL: string;
12
+ };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArvoExecutionSpanKind = exports.ArvoExecution = void 0;
3
4
  /**
4
5
  * ArvoExection class containing attribute constants for OpenTelemetry.
5
6
  */
@@ -10,4 +11,10 @@ var ArvoExecution = /** @class */ (function () {
10
11
  ArvoExecution.ATTR_SPAN_KIND = 'arvo.span.kind';
11
12
  return ArvoExecution;
12
13
  }());
13
- exports.default = ArvoExecution;
14
+ exports.ArvoExecution = ArvoExecution;
15
+ exports.ArvoExecutionSpanKind = {
16
+ EVENT_HANDLER: 'handler.simple',
17
+ ORCHESTRATOR: 'handler.orchestrator.statemachine',
18
+ RESUMABLE: 'handler.orchestrator.imperative',
19
+ INTERNAL: 'internal',
20
+ };
@@ -3,7 +3,7 @@
3
3
  * These attribute names are defined as per the OpenInference specification:
4
4
  * @see https://github.com/Arize-ai/openinference/blob/main/spec/semantic_conventions.md
5
5
  */
6
- export default class OpenInference {
6
+ export declare class OpenInference {
7
7
  static readonly ATTR_SPAN_KIND = "openinference.span.kind";
8
8
  static readonly ATTR_DOCUMENT_CONTENT = "document.content";
9
9
  static readonly ATTR_DOCUMENT_ID = "document.id";
@@ -60,3 +60,18 @@ export default class OpenInference {
60
60
  static readonly ATTR_TOOL_CALL_FUNCTION_NAME = "tool_call.function.name";
61
61
  static readonly ATTR_USER_ID = "user.id";
62
62
  }
63
+ /**
64
+ * The open inference span kind as per
65
+ * https://github.com/Arize-ai/openinference/blob/main/spec/traces.md#span-kind
66
+ */
67
+ export declare const OpenInferenceSpanKind: {
68
+ CHAIN: string;
69
+ RETRIEVER: string;
70
+ RERANKER: string;
71
+ LLM: string;
72
+ EMBEDDING: string;
73
+ TOOL: string;
74
+ GUARDRAIL: string;
75
+ EVALUATOR: string;
76
+ INTERNAL: string;
77
+ };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenInferenceSpanKind = exports.OpenInference = void 0;
3
4
  /**
4
5
  * OpenInference class containing attribute constants for OpenTelemetry OpenInference.
5
6
  * These attribute names are defined as per the OpenInference specification:
@@ -83,4 +84,19 @@ var OpenInference = /** @class */ (function () {
83
84
  OpenInference.ATTR_USER_ID = 'user.id';
84
85
  return OpenInference;
85
86
  }());
86
- exports.default = OpenInference;
87
+ exports.OpenInference = OpenInference;
88
+ /**
89
+ * The open inference span kind as per
90
+ * https://github.com/Arize-ai/openinference/blob/main/spec/traces.md#span-kind
91
+ */
92
+ exports.OpenInferenceSpanKind = {
93
+ CHAIN: 'CHAIN',
94
+ RETRIEVER: 'RETRIEVER',
95
+ RERANKER: 'RERANKER',
96
+ LLM: 'LLM',
97
+ EMBEDDING: 'EMBEDDING',
98
+ TOOL: 'TOOL',
99
+ GUARDRAIL: 'GUARDRAIL',
100
+ EVALUATOR: 'EVALUATOR',
101
+ INTERNAL: 'INTERNAL',
102
+ };
@@ -112,4 +112,5 @@ export declare const OTelNull = "N/A";
112
112
  * @returns An object containing the traceparent and tracestate headers.
113
113
  */
114
114
  export declare function currentOpenTelemetryHeaders(): OpenTelemetryHeaders;
115
+ export declare const getOtelHeaderFromSpan: (span: Span) => OpenTelemetryHeaders;
115
116
  export declare const makeOpenTelemetryContextContext: (traceparent: string, tracestate: string | null) => Context;
@@ -21,16 +21,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  }
22
22
  return t;
23
23
  };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
24
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.makeOpenTelemetryContextContext = exports.OTelNull = exports.exceptionToSpan = exports.logToSpan = exports.ArvoOpenTelemetry = void 0;
25
+ exports.makeOpenTelemetryContextContext = exports.getOtelHeaderFromSpan = exports.OTelNull = exports.exceptionToSpan = exports.logToSpan = exports.ArvoOpenTelemetry = void 0;
29
26
  exports.currentOpenTelemetryHeaders = currentOpenTelemetryHeaders;
30
27
  var api_1 = require("@opentelemetry/api");
31
28
  var core_1 = require("@opentelemetry/core");
32
- var ArvoExecution_1 = __importDefault(require("./ArvoExecution"));
33
- var types_1 = require("./ArvoExecution/types");
29
+ var ArvoExecution_1 = require("./ArvoExecution");
34
30
  /**
35
31
  * Singleton class for managing OpenTelemetry instrumentation across libraries
36
32
  */
@@ -126,7 +122,7 @@ var ArvoOpenTelemetry = /** @class */ (function () {
126
122
  parentContext = param.context.context;
127
123
  }
128
124
  }
129
- var span = this.tracer.startSpan(param.name, __assign(__assign({}, ((_b = param.spanOptions) !== null && _b !== void 0 ? _b : {})), { attributes: __assign((_a = {}, _a[ArvoExecution_1.default.ATTR_SPAN_KIND] = types_1.ArvoExecutionSpanKind.INTERNAL, _a), ((_d = (_c = param.spanOptions) === null || _c === void 0 ? void 0 : _c.attributes) !== null && _d !== void 0 ? _d : {})) }), parentContext);
125
+ var span = this.tracer.startSpan(param.name, __assign(__assign({}, ((_b = param.spanOptions) !== null && _b !== void 0 ? _b : {})), { attributes: __assign((_a = {}, _a[ArvoExecution_1.ArvoExecution.ATTR_SPAN_KIND] = ArvoExecution_1.ArvoExecutionSpanKind.INTERNAL, _a), ((_d = (_c = param.spanOptions) === null || _c === void 0 ? void 0 : _c.attributes) !== null && _d !== void 0 ? _d : {})) }), parentContext);
130
126
  return api_1.context.with(api_1.trace.setSpan(api_1.context.active(), span), function () {
131
127
  if (param.disableSpanManagement) {
132
128
  return param.fn(span);
@@ -217,6 +213,14 @@ function currentOpenTelemetryHeaders() {
217
213
  tracestate: carrier.tracestate,
218
214
  };
219
215
  }
216
+ var getOtelHeaderFromSpan = function (span) {
217
+ var _a;
218
+ return ({
219
+ traceparent: "00-".concat(span.spanContext().traceId, "-").concat(span.spanContext().spanId, "-01"),
220
+ tracestate: (_a = span.spanContext().traceState) !== null && _a !== void 0 ? _a : null,
221
+ });
222
+ };
223
+ exports.getOtelHeaderFromSpan = getOtelHeaderFromSpan;
220
224
  // Helper function to extract context from traceparent and tracestate
221
225
  var makeOpenTelemetryContextContext = function (traceparent, tracestate) {
222
226
  var extractedContext = api_1.propagation.extract(api_1.context.active(), {
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import ArvoEvent from './ArvoEvent';
4
4
  import { createArvoEvent } from './ArvoEvent/helpers';
5
5
  import { ArvoDataContentType } from './ArvoEvent/schema';
6
6
  import { ArvoEventData, ArvoExtension, CloudEventContext, CloudEventExtension, CreateArvoEvent, OpenTelemetryExtension } from './ArvoEvent/types';
7
- import { ArvoOpenTelemetry, OTelNull, currentOpenTelemetryHeaders, exceptionToSpan, logToSpan } from './OpenTelemetry';
7
+ import { ArvoOpenTelemetry, OTelNull, currentOpenTelemetryHeaders, exceptionToSpan, getOtelHeaderFromSpan, logToSpan } from './OpenTelemetry';
8
8
  import { OpenTelemetryHeaders, TelemetryLogLevel } from './OpenTelemetry/types';
9
9
  import { EventDataschemaUtil, cleanString, compareSemanticVersions, createArvoError, parseSemanticVersion, validateURI } from './utils';
10
10
  import { createSimpleArvoContract } from './ArvoContract/SimpleArvoContract';
@@ -23,10 +23,8 @@ import { ArvoOrchestrationSubjectContent } from './ArvoOrchestrationSubject/type
23
23
  import { createArvoOrchestratorContract } from './ArvoOrchestratorContract';
24
24
  import { ArvoOrchestratorEventTypeGen } from './ArvoOrchestratorContract/typegen';
25
25
  import { ArvoOrchestratorContract, ICreateArvoOrchestratorContract } from './ArvoOrchestratorContract/types';
26
- import ArvoExecution from './OpenTelemetry/ArvoExecution';
27
- import { ArvoExecutionSpanKind } from './OpenTelemetry/ArvoExecution/types';
28
- import OpenInference from './OpenTelemetry/OpenInference';
29
- import { OpenInferenceSpanKind } from './OpenTelemetry/OpenInference/types';
26
+ import { ArvoExecution, ArvoExecutionSpanKind } from './OpenTelemetry/ArvoExecution';
27
+ import { OpenInference, OpenInferenceSpanKind } from './OpenTelemetry/OpenInference';
30
28
  import { ViolationError, ViolationErrorParam, isViolationError } from './errors';
31
29
  import { ArvoErrorSchema, ArvoSemanticVersionSchema, isValidArvoSemanticVersion } from './schema';
32
30
  import { ArvoErrorType, ArvoSemanticVersion, InferArvoEvent, InferVersionedArvoContract } from './types';
@@ -110,4 +108,4 @@ declare const ArvoEventSchema: {
110
108
  parentSubject$$: string | null;
111
109
  }>;
112
110
  };
113
- export { ArvoEvent, createArvoEvent, ArvoDataContentType, ArvoEventData, CloudEventExtension, ArvoEventSchema, CloudEventContext, ArvoExtension, OpenTelemetryExtension, CreateArvoEvent, exceptionToSpan, logToSpan, OpenTelemetryHeaders, TelemetryLogLevel, OTelNull, validateURI, cleanString, ArvoContract, createArvoContract, ArvoContractValidators, ArvoContractRecord, IArvoContract, ResolveArvoContractRecord, ArvoEventFactory, createArvoEventFactory, currentOpenTelemetryHeaders, OpenInference, OpenInferenceSpanKind, ArvoExecution, ArvoExecutionSpanKind, ArvoContractJSONSchema, ArvoOrchestrationSubject, ArvoOrchestrationSubjectContent, ArvoSemanticVersion, InferArvoEvent, createArvoOrchestratorContract, ICreateArvoOrchestratorContract, ArvoOrchestratorEventTypeGen, EventDataschemaUtil, ArvoOrchestrationSubjectContentSchema, ArvoSemanticVersionSchema, ArvoErrorSchema, ArvoErrorType, compareSemanticVersions, parseSemanticVersion, createSimpleArvoContract, ArvoOrchestratorContract, VersionedArvoContract, InferVersionedArvoContract, isWildCardArvoSematicVersion, WildCardArvoSemanticVersion, isValidArvoSemanticVersion, SimpleArvoContract, ArvoOrchestratorEventFactory, createArvoOrchestratorEventFactory, ArvoOpenTelemetry, ViolationError, ViolationErrorParam, createArvoError, createArvoEventId, parseArvoEventId, ArvoEventIdObjectSchema, ArvoEventIdObject, isViolationError, };
111
+ export { ArvoEvent, createArvoEvent, ArvoDataContentType, ArvoEventData, CloudEventExtension, ArvoEventSchema, CloudEventContext, ArvoExtension, OpenTelemetryExtension, CreateArvoEvent, exceptionToSpan, logToSpan, OpenTelemetryHeaders, TelemetryLogLevel, OTelNull, validateURI, cleanString, ArvoContract, createArvoContract, ArvoContractValidators, ArvoContractRecord, IArvoContract, ResolveArvoContractRecord, ArvoEventFactory, createArvoEventFactory, currentOpenTelemetryHeaders, OpenInference, OpenInferenceSpanKind, ArvoExecution, ArvoExecutionSpanKind, ArvoContractJSONSchema, ArvoOrchestrationSubject, ArvoOrchestrationSubjectContent, ArvoSemanticVersion, InferArvoEvent, createArvoOrchestratorContract, ICreateArvoOrchestratorContract, ArvoOrchestratorEventTypeGen, EventDataschemaUtil, ArvoOrchestrationSubjectContentSchema, ArvoSemanticVersionSchema, ArvoErrorSchema, ArvoErrorType, compareSemanticVersions, parseSemanticVersion, createSimpleArvoContract, ArvoOrchestratorContract, VersionedArvoContract, InferVersionedArvoContract, isWildCardArvoSematicVersion, WildCardArvoSemanticVersion, isValidArvoSemanticVersion, SimpleArvoContract, ArvoOrchestratorEventFactory, createArvoOrchestratorEventFactory, ArvoOpenTelemetry, ViolationError, ViolationErrorParam, createArvoError, createArvoEventId, parseArvoEventId, ArvoEventIdObjectSchema, ArvoEventIdObject, isViolationError, getOtelHeaderFromSpan, };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isViolationError = exports.ArvoEventIdObjectSchema = exports.parseArvoEventId = exports.createArvoEventId = exports.createArvoError = exports.ViolationError = exports.ArvoOpenTelemetry = exports.createArvoOrchestratorEventFactory = exports.ArvoOrchestratorEventFactory = exports.isValidArvoSemanticVersion = exports.WildCardArvoSemanticVersion = exports.isWildCardArvoSematicVersion = exports.VersionedArvoContract = exports.createSimpleArvoContract = exports.parseSemanticVersion = exports.compareSemanticVersions = exports.ArvoErrorSchema = exports.ArvoSemanticVersionSchema = exports.ArvoOrchestrationSubjectContentSchema = exports.EventDataschemaUtil = exports.ArvoOrchestratorEventTypeGen = exports.createArvoOrchestratorContract = exports.ArvoOrchestrationSubject = exports.ArvoExecutionSpanKind = exports.ArvoExecution = exports.OpenInferenceSpanKind = exports.OpenInference = exports.currentOpenTelemetryHeaders = exports.createArvoEventFactory = exports.ArvoEventFactory = exports.ArvoContractValidators = exports.createArvoContract = exports.ArvoContract = exports.cleanString = exports.validateURI = exports.OTelNull = exports.logToSpan = exports.exceptionToSpan = exports.ArvoEventSchema = exports.ArvoDataContentType = exports.createArvoEvent = exports.ArvoEvent = void 0;
6
+ exports.getOtelHeaderFromSpan = exports.isViolationError = exports.ArvoEventIdObjectSchema = exports.parseArvoEventId = exports.createArvoEventId = exports.createArvoError = exports.ViolationError = exports.ArvoOpenTelemetry = exports.createArvoOrchestratorEventFactory = exports.ArvoOrchestratorEventFactory = exports.isValidArvoSemanticVersion = exports.WildCardArvoSemanticVersion = exports.isWildCardArvoSematicVersion = exports.VersionedArvoContract = exports.createSimpleArvoContract = exports.parseSemanticVersion = exports.compareSemanticVersions = exports.ArvoErrorSchema = exports.ArvoSemanticVersionSchema = exports.ArvoOrchestrationSubjectContentSchema = exports.EventDataschemaUtil = exports.ArvoOrchestratorEventTypeGen = exports.createArvoOrchestratorContract = exports.ArvoOrchestrationSubject = exports.ArvoExecutionSpanKind = exports.ArvoExecution = exports.OpenInferenceSpanKind = exports.OpenInference = exports.currentOpenTelemetryHeaders = exports.createArvoEventFactory = exports.ArvoEventFactory = exports.ArvoContractValidators = exports.createArvoContract = exports.ArvoContract = exports.cleanString = exports.validateURI = exports.OTelNull = exports.logToSpan = exports.exceptionToSpan = exports.ArvoEventSchema = exports.ArvoDataContentType = exports.createArvoEvent = exports.ArvoEvent = void 0;
7
7
  var ArvoContract_1 = __importDefault(require("./ArvoContract"));
8
8
  exports.ArvoContract = ArvoContract_1.default;
9
9
  var helpers_1 = require("./ArvoContract/helpers");
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "ArvoOpenTelemetry", { enumerable: true, get: fun
19
19
  Object.defineProperty(exports, "OTelNull", { enumerable: true, get: function () { return OpenTelemetry_1.OTelNull; } });
20
20
  Object.defineProperty(exports, "currentOpenTelemetryHeaders", { enumerable: true, get: function () { return OpenTelemetry_1.currentOpenTelemetryHeaders; } });
21
21
  Object.defineProperty(exports, "exceptionToSpan", { enumerable: true, get: function () { return OpenTelemetry_1.exceptionToSpan; } });
22
+ Object.defineProperty(exports, "getOtelHeaderFromSpan", { enumerable: true, get: function () { return OpenTelemetry_1.getOtelHeaderFromSpan; } });
22
23
  Object.defineProperty(exports, "logToSpan", { enumerable: true, get: function () { return OpenTelemetry_1.logToSpan; } });
23
24
  var utils_1 = require("./utils");
24
25
  Object.defineProperty(exports, "EventDataschemaUtil", { enumerable: true, get: function () { return utils_1.EventDataschemaUtil; } });
@@ -56,14 +57,12 @@ Object.defineProperty(exports, "createArvoOrchestratorContract", { enumerable: t
56
57
  var schema_3 = require("./ArvoOrchestratorContract/schema");
57
58
  var typegen_1 = require("./ArvoOrchestratorContract/typegen");
58
59
  Object.defineProperty(exports, "ArvoOrchestratorEventTypeGen", { enumerable: true, get: function () { return typegen_1.ArvoOrchestratorEventTypeGen; } });
59
- var ArvoExecution_1 = __importDefault(require("./OpenTelemetry/ArvoExecution"));
60
- exports.ArvoExecution = ArvoExecution_1.default;
61
- var types_1 = require("./OpenTelemetry/ArvoExecution/types");
62
- Object.defineProperty(exports, "ArvoExecutionSpanKind", { enumerable: true, get: function () { return types_1.ArvoExecutionSpanKind; } });
63
- var OpenInference_1 = __importDefault(require("./OpenTelemetry/OpenInference"));
64
- exports.OpenInference = OpenInference_1.default;
65
- var types_2 = require("./OpenTelemetry/OpenInference/types");
66
- Object.defineProperty(exports, "OpenInferenceSpanKind", { enumerable: true, get: function () { return types_2.OpenInferenceSpanKind; } });
60
+ var ArvoExecution_1 = require("./OpenTelemetry/ArvoExecution");
61
+ Object.defineProperty(exports, "ArvoExecution", { enumerable: true, get: function () { return ArvoExecution_1.ArvoExecution; } });
62
+ Object.defineProperty(exports, "ArvoExecutionSpanKind", { enumerable: true, get: function () { return ArvoExecution_1.ArvoExecutionSpanKind; } });
63
+ var OpenInference_1 = require("./OpenTelemetry/OpenInference");
64
+ Object.defineProperty(exports, "OpenInference", { enumerable: true, get: function () { return OpenInference_1.OpenInference; } });
65
+ Object.defineProperty(exports, "OpenInferenceSpanKind", { enumerable: true, get: function () { return OpenInference_1.OpenInferenceSpanKind; } });
67
66
  var errors_1 = require("./errors");
68
67
  Object.defineProperty(exports, "ViolationError", { enumerable: true, get: function () { return errors_1.ViolationError; } });
69
68
  Object.defineProperty(exports, "isViolationError", { enumerable: true, get: function () { return errors_1.isViolationError; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-core",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "description": "This core package contains all the core classes and components of the Arvo Event Driven System",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,5 +0,0 @@
1
- export declare enum ArvoExecutionSpanKind {
2
- EVENT_HANDLER = "EVENT_HANDLER",
3
- ORCHESTRATOR = "ORCHESTRATOR",
4
- INTERNAL = "INTERNAL"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArvoExecutionSpanKind = void 0;
4
- var ArvoExecutionSpanKind;
5
- (function (ArvoExecutionSpanKind) {
6
- ArvoExecutionSpanKind["EVENT_HANDLER"] = "EVENT_HANDLER";
7
- ArvoExecutionSpanKind["ORCHESTRATOR"] = "ORCHESTRATOR";
8
- ArvoExecutionSpanKind["INTERNAL"] = "INTERNAL";
9
- })(ArvoExecutionSpanKind || (exports.ArvoExecutionSpanKind = ArvoExecutionSpanKind = {}));
@@ -1,15 +0,0 @@
1
- /**
2
- * The open inference span kind as per
3
- * https://github.com/Arize-ai/openinference/blob/main/spec/traces.md#span-kind
4
- */
5
- export declare enum OpenInferenceSpanKind {
6
- CHAIN = "CHAIN",
7
- RETRIEVER = "RETRIEVER",
8
- RERANKER = "RERANKER",
9
- LLM = "LLM",
10
- EMBEDDING = "EMBEDDING",
11
- TOOL = "TOOL",
12
- GUARDRAIL = "GUARDRAIL",
13
- EVALUATOR = "EVALUATOR",
14
- INTERNAL = "INTERNAL"
15
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenInferenceSpanKind = void 0;
4
- /**
5
- * The open inference span kind as per
6
- * https://github.com/Arize-ai/openinference/blob/main/spec/traces.md#span-kind
7
- */
8
- var OpenInferenceSpanKind;
9
- (function (OpenInferenceSpanKind) {
10
- OpenInferenceSpanKind["CHAIN"] = "CHAIN";
11
- OpenInferenceSpanKind["RETRIEVER"] = "RETRIEVER";
12
- OpenInferenceSpanKind["RERANKER"] = "RERANKER";
13
- OpenInferenceSpanKind["LLM"] = "LLM";
14
- OpenInferenceSpanKind["EMBEDDING"] = "EMBEDDING";
15
- OpenInferenceSpanKind["TOOL"] = "TOOL";
16
- OpenInferenceSpanKind["GUARDRAIL"] = "GUARDRAIL";
17
- OpenInferenceSpanKind["EVALUATOR"] = "EVALUATOR";
18
- OpenInferenceSpanKind["INTERNAL"] = "INTERNAL";
19
- })(OpenInferenceSpanKind || (exports.OpenInferenceSpanKind = OpenInferenceSpanKind = {}));