autotel-genai 0.3.9 → 0.3.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.
- package/dist/agent-CnXNAj9B.cjs +1 -2
- package/dist/agent-oCfaqmYw.js +1 -2
- package/dist/agent-security-BHdP6ZPG.d.cts +1 -2
- package/dist/agent-security-BHdP6ZPG.d.ts +1 -2
- package/dist/agent-security-CUDUKOEK.js +1 -2
- package/dist/agent-security-kfpXuwL4.cjs +1 -2
- package/dist/ai-sdk-bridge.cjs +1 -2
- package/dist/ai-sdk-bridge.d.cts +1 -2
- package/dist/ai-sdk-bridge.d.ts +1 -2
- package/dist/ai-sdk-bridge.js +1 -2
- package/dist/attributes-BSunBoIR.cjs +1 -2
- package/dist/attributes-BeU1n3Xb.d.cts +1 -2
- package/dist/attributes-CLmcQcNP.d.ts +1 -2
- package/dist/attributes-DCv1cxKZ.js +1 -2
- package/dist/cost-C1FkUNG1.d.cts +1 -2
- package/dist/cost-C1FkUNG1.d.ts +1 -2
- package/dist/cost.cjs +1 -2
- package/dist/cost.js +1 -2
- package/dist/events-BKns22B0.d.ts +1 -2
- package/dist/events-D2-Y94tX.d.cts +1 -2
- package/dist/events.cjs +1 -2
- package/dist/events.js +1 -2
- package/dist/guard.cjs +0 -0
- package/dist/guard.d.cts +1 -2
- package/dist/guard.d.ts +1 -2
- package/dist/guard.js +0 -0
- package/dist/index-BIj0iUEx.d.cts +1 -2
- package/dist/index-Bdn7khCZ.d.ts +1 -2
- package/dist/index-D-6RBbqV.d.cts +1 -2
- package/dist/index-DLdEgWWh.d.ts +1 -2
- package/dist/metrics.cjs +1 -2
- package/dist/metrics.d.cts +1 -2
- package/dist/metrics.d.ts +1 -2
- package/dist/metrics.js +1 -2
- package/dist/observer-BoQNdbkg.cjs +1 -2
- package/dist/observer-Ckha9xGv.js +1 -2
- package/dist/semconv-2VyDPIuF.d.cts +1 -2
- package/dist/semconv-2VyDPIuF.d.ts +1 -2
- package/dist/semconv.cjs +1 -2
- package/dist/semconv.js +1 -2
- package/dist/streaming.cjs +1 -2
- package/dist/streaming.d.cts +1 -2
- package/dist/streaming.d.ts +1 -2
- package/dist/streaming.js +1 -2
- package/dist/trace.cjs +1 -2
- package/dist/trace.d.cts +1 -2
- package/dist/trace.d.ts +1 -2
- package/dist/trace.js +1 -2
- package/package.json +6 -6
- package/dist/agent-CnXNAj9B.cjs.map +0 -1
- package/dist/agent-oCfaqmYw.js.map +0 -1
- package/dist/agent-security-BHdP6ZPG.d.cts.map +0 -1
- package/dist/agent-security-BHdP6ZPG.d.ts.map +0 -1
- package/dist/agent-security-CUDUKOEK.js.map +0 -1
- package/dist/agent-security-kfpXuwL4.cjs.map +0 -1
- package/dist/ai-sdk-bridge.cjs.map +0 -1
- package/dist/ai-sdk-bridge.d.cts.map +0 -1
- package/dist/ai-sdk-bridge.d.ts.map +0 -1
- package/dist/ai-sdk-bridge.js.map +0 -1
- package/dist/attributes-BSunBoIR.cjs.map +0 -1
- package/dist/attributes-BeU1n3Xb.d.cts.map +0 -1
- package/dist/attributes-CLmcQcNP.d.ts.map +0 -1
- package/dist/attributes-DCv1cxKZ.js.map +0 -1
- package/dist/cost-C1FkUNG1.d.cts.map +0 -1
- package/dist/cost-C1FkUNG1.d.ts.map +0 -1
- package/dist/cost.cjs.map +0 -1
- package/dist/cost.js.map +0 -1
- package/dist/events-BKns22B0.d.ts.map +0 -1
- package/dist/events-D2-Y94tX.d.cts.map +0 -1
- package/dist/events.cjs.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/guard.cjs.map +0 -1
- package/dist/guard.d.cts.map +0 -1
- package/dist/guard.d.ts.map +0 -1
- package/dist/guard.js.map +0 -1
- package/dist/index-BIj0iUEx.d.cts.map +0 -1
- package/dist/index-Bdn7khCZ.d.ts.map +0 -1
- package/dist/index-D-6RBbqV.d.cts.map +0 -1
- package/dist/index-DLdEgWWh.d.ts.map +0 -1
- package/dist/metrics.cjs.map +0 -1
- package/dist/metrics.d.cts.map +0 -1
- package/dist/metrics.d.ts.map +0 -1
- package/dist/metrics.js.map +0 -1
- package/dist/observer-BoQNdbkg.cjs.map +0 -1
- package/dist/observer-Ckha9xGv.js.map +0 -1
- package/dist/semconv-2VyDPIuF.d.cts.map +0 -1
- package/dist/semconv-2VyDPIuF.d.ts.map +0 -1
- package/dist/semconv.cjs.map +0 -1
- package/dist/semconv.js.map +0 -1
- package/dist/streaming.cjs.map +0 -1
- package/dist/streaming.d.cts.map +0 -1
- package/dist/streaming.d.ts.map +0 -1
- package/dist/streaming.js.map +0 -1
- package/dist/trace.cjs.map +0 -1
- package/dist/trace.d.cts.map +0 -1
- package/dist/trace.d.ts.map +0 -1
- package/dist/trace.js.map +0 -1
package/dist/agent-CnXNAj9B.cjs
CHANGED
package/dist/agent-oCfaqmYw.js
CHANGED
|
@@ -1088,5 +1088,4 @@ function heuristicPlanRiskClassifier() {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
//#endregion
|
|
1091
|
-
export { canonicalizeForHash as C, createAgentAuditMetadata as S, AGENT_AUDIT_SCHEMA_VERSION as T, recordPolicyDecision as _, withScopedTool as a, flattenAgentAttributes as b, resolvePrivacyProfile as c, withAgentSession as d, delegateToAgent as f, recordDecisionBasis as g, defineAgentToolCall as h, runAgentPlanClassifier as i, sanitizeAuditPayload as l, defineAgentAction as m, heuristicPlanRiskClassifier as n, createSignedEventEnvelope as o, recordAgentHandoff as p, recordPlanRiskAssessment as r, verifyEventEnvelopeHash as s, AGENT_PLAN_RISK_ATTR as t, createAgentIdentityRegistry as u, withAgentAction as v, hashPayload as w, setAgentAttributes as x, withAgentToolCall as y };
|
|
1092
|
-
//# sourceMappingURL=agent-oCfaqmYw.js.map
|
|
1091
|
+
export { canonicalizeForHash as C, createAgentAuditMetadata as S, AGENT_AUDIT_SCHEMA_VERSION as T, recordPolicyDecision as _, withScopedTool as a, flattenAgentAttributes as b, resolvePrivacyProfile as c, withAgentSession as d, delegateToAgent as f, recordDecisionBasis as g, defineAgentToolCall as h, runAgentPlanClassifier as i, sanitizeAuditPayload as l, defineAgentAction as m, heuristicPlanRiskClassifier as n, createSignedEventEnvelope as o, recordAgentHandoff as p, recordPlanRiskAssessment as r, verifyEventEnvelopeHash as s, AGENT_PLAN_RISK_ATTR as t, createAgentIdentityRegistry as u, withAgentAction as v, hashPayload as w, setAgentAttributes as x, withAgentToolCall as y };
|
|
@@ -112,5 +112,4 @@ declare function recordRenderOutput(input: RecordRenderOutputInput): void;
|
|
|
112
112
|
/** Best-effort variant — no throw when trace context is missing. */
|
|
113
113
|
declare function tryRecordHumanApproval(input: RecordHumanApprovalInput): boolean;
|
|
114
114
|
//#endregion
|
|
115
|
-
export { recordPlanStep as C, agentContextFromSpan as D, AgentContext as E, recordMemoryAccess as S, tryRecordHumanApproval as T, recordActionRiskClass as _, AgentInputProvenance as a, recordHumanApproval as b, AgentSecurityRecordOptions as c, RecordHumanApprovalInput as d, RecordInputProvenanceInput as f, deriveActionRiskClass as g, RecordRenderOutputInput as h, AgentConsentOutcome as i, RecordActiveScopesInput as l, RecordPlanStepInput as m, ActionRiskHints as n, AgentMemoryOperation as o, RecordMemoryAccessInput as p, AgentActionRiskClass as r, AgentOutputFormat as s, AGENT_SECURITY_ATTR as t, RecordControllerInput as u, recordActiveScopes as v, recordRenderOutput as w, recordInputProvenance as x, recordControllerId as y };
|
|
116
|
-
//# sourceMappingURL=agent-security-BHdP6ZPG.d.cts.map
|
|
115
|
+
export { recordPlanStep as C, agentContextFromSpan as D, AgentContext as E, recordMemoryAccess as S, tryRecordHumanApproval as T, recordActionRiskClass as _, AgentInputProvenance as a, recordHumanApproval as b, AgentSecurityRecordOptions as c, RecordHumanApprovalInput as d, RecordInputProvenanceInput as f, deriveActionRiskClass as g, RecordRenderOutputInput as h, AgentConsentOutcome as i, RecordActiveScopesInput as l, RecordPlanStepInput as m, ActionRiskHints as n, AgentMemoryOperation as o, RecordMemoryAccessInput as p, AgentActionRiskClass as r, AgentOutputFormat as s, AGENT_SECURITY_ATTR as t, RecordControllerInput as u, recordActiveScopes as v, recordRenderOutput as w, recordInputProvenance as x, recordControllerId as y };
|
|
@@ -112,5 +112,4 @@ declare function recordRenderOutput(input: RecordRenderOutputInput): void;
|
|
|
112
112
|
/** Best-effort variant — no throw when trace context is missing. */
|
|
113
113
|
declare function tryRecordHumanApproval(input: RecordHumanApprovalInput): boolean;
|
|
114
114
|
//#endregion
|
|
115
|
-
export { recordPlanStep as C, agentContextFromSpan as D, AgentContext as E, recordMemoryAccess as S, tryRecordHumanApproval as T, recordActionRiskClass as _, AgentInputProvenance as a, recordHumanApproval as b, AgentSecurityRecordOptions as c, RecordHumanApprovalInput as d, RecordInputProvenanceInput as f, deriveActionRiskClass as g, RecordRenderOutputInput as h, AgentConsentOutcome as i, RecordActiveScopesInput as l, RecordPlanStepInput as m, ActionRiskHints as n, AgentMemoryOperation as o, RecordMemoryAccessInput as p, AgentActionRiskClass as r, AgentOutputFormat as s, AGENT_SECURITY_ATTR as t, RecordControllerInput as u, recordActiveScopes as v, recordRenderOutput as w, recordInputProvenance as x, recordControllerId as y };
|
|
116
|
-
//# sourceMappingURL=agent-security-BHdP6ZPG.d.ts.map
|
|
115
|
+
export { recordPlanStep as C, agentContextFromSpan as D, AgentContext as E, recordMemoryAccess as S, tryRecordHumanApproval as T, recordActionRiskClass as _, AgentInputProvenance as a, recordHumanApproval as b, AgentSecurityRecordOptions as c, RecordHumanApprovalInput as d, RecordInputProvenanceInput as f, deriveActionRiskClass as g, RecordRenderOutputInput as h, AgentConsentOutcome as i, RecordActiveScopesInput as l, RecordPlanStepInput as m, ActionRiskHints as n, AgentMemoryOperation as o, RecordMemoryAccessInput as p, AgentActionRiskClass as r, AgentOutputFormat as s, AGENT_SECURITY_ATTR as t, RecordControllerInput as u, recordActiveScopes as v, recordRenderOutput as w, recordInputProvenance as x, recordControllerId as y };
|
|
@@ -211,5 +211,4 @@ function tryRecordHumanApproval(input) {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
//#endregion
|
|
214
|
-
export { warnMissingContextOnce as _, recordControllerId as a, recordMemoryAccess as c, tryRecordHumanApproval as d, MISSING_CONTEXT_MESSAGE as f, toAttributeValue as g, resolveContextSafe as h, recordActiveScopes as i, recordPlanStep as l, resolveContext as m, deriveActionRiskClass as n, recordHumanApproval as o, agentContextFromSpan as p, recordActionRiskClass as r, recordInputProvenance as s, AGENT_SECURITY_ATTR as t, recordRenderOutput as u };
|
|
215
|
-
//# sourceMappingURL=agent-security-CUDUKOEK.js.map
|
|
214
|
+
export { warnMissingContextOnce as _, recordControllerId as a, recordMemoryAccess as c, tryRecordHumanApproval as d, MISSING_CONTEXT_MESSAGE as f, toAttributeValue as g, resolveContextSafe as h, recordActiveScopes as i, recordPlanStep as l, resolveContext as m, deriveActionRiskClass as n, recordHumanApproval as o, agentContextFromSpan as p, recordActionRiskClass as r, recordInputProvenance as s, AGENT_SECURITY_ATTR as t, recordRenderOutput as u };
|
package/dist/ai-sdk-bridge.cjs
CHANGED
|
@@ -164,5 +164,4 @@ exports.extractAiSdkModel = extractAiSdkModel;
|
|
|
164
164
|
exports.extractAiSdkUsage = extractAiSdkUsage;
|
|
165
165
|
exports.mapAiSdkAttributes = mapAiSdkAttributes;
|
|
166
166
|
exports.normalizeAiSdkProvider = normalizeAiSdkProvider;
|
|
167
|
-
exports.recordAiSdkCost = recordAiSdkCost;
|
|
168
|
-
//# sourceMappingURL=ai-sdk-bridge.cjs.map
|
|
167
|
+
exports.recordAiSdkCost = recordAiSdkCost;
|
package/dist/ai-sdk-bridge.d.cts
CHANGED
|
@@ -95,5 +95,4 @@ interface AutotelEnrichOptions {
|
|
|
95
95
|
*/
|
|
96
96
|
declare function autotelEnrich(options?: AutotelEnrichOptions): (ctx: AiSdkEnrichContext) => Record<string, string | number | boolean>;
|
|
97
97
|
//#endregion
|
|
98
|
-
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, AiSdkEnrichContext, AiSdkSpanType, AutotelEnrichOptions, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
|
99
|
-
//# sourceMappingURL=ai-sdk-bridge.d.cts.map
|
|
98
|
+
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, AiSdkEnrichContext, AiSdkSpanType, AutotelEnrichOptions, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
package/dist/ai-sdk-bridge.d.ts
CHANGED
|
@@ -95,5 +95,4 @@ interface AutotelEnrichOptions {
|
|
|
95
95
|
*/
|
|
96
96
|
declare function autotelEnrich(options?: AutotelEnrichOptions): (ctx: AiSdkEnrichContext) => Record<string, string | number | boolean>;
|
|
97
97
|
//#endregion
|
|
98
|
-
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, AiSdkEnrichContext, AiSdkSpanType, AutotelEnrichOptions, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
|
99
|
-
//# sourceMappingURL=ai-sdk-bridge.d.ts.map
|
|
98
|
+
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, AiSdkEnrichContext, AiSdkSpanType, AutotelEnrichOptions, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
package/dist/ai-sdk-bridge.js
CHANGED
|
@@ -155,5 +155,4 @@ function autotelEnrich(options = {}) {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
//#endregion
|
|
158
|
-
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
|
159
|
-
//# sourceMappingURL=ai-sdk-bridge.js.map
|
|
158
|
+
export { AI_SDK_ATTR, AUTOTEL_ENRICHED_ATTR, autotelEnrich, estimateAiSdkCost, extractAiSdkModel, extractAiSdkUsage, mapAiSdkAttributes, normalizeAiSdkProvider, recordAiSdkCost };
|
|
@@ -101,5 +101,4 @@ interface GenAiWorkflowInput {
|
|
|
101
101
|
}
|
|
102
102
|
declare function genAiWorkflowAttributes(input: GenAiWorkflowInput): GenAiAttributeMap;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { genAiWorkflowAttributes as _, GenAiResponseInput as a, GenAiUsageInput as c, genAiMemoryAttributes as d, genAiRequestAttributes as f, genAiUsageAttributes as g, genAiToolAttributes as h, GenAiRequestInput as i, GenAiWorkflowInput as l, genAiRetrievalAttributes as m, GenAiAttributeMap as n, GenAiRetrievalInput as o, genAiResponseAttributes as p, GenAiMemoryInput as r, GenAiToolInput as s, GenAiAgentInput as t, genAiAgentAttributes as u };
|
|
105
|
-
//# sourceMappingURL=attributes-BeU1n3Xb.d.cts.map
|
|
104
|
+
export { genAiWorkflowAttributes as _, GenAiResponseInput as a, GenAiUsageInput as c, genAiMemoryAttributes as d, genAiRequestAttributes as f, genAiUsageAttributes as g, genAiToolAttributes as h, GenAiRequestInput as i, GenAiWorkflowInput as l, genAiRetrievalAttributes as m, GenAiAttributeMap as n, GenAiRetrievalInput as o, genAiResponseAttributes as p, GenAiMemoryInput as r, GenAiToolInput as s, GenAiAgentInput as t, genAiAgentAttributes as u };
|
|
@@ -101,5 +101,4 @@ interface GenAiWorkflowInput {
|
|
|
101
101
|
}
|
|
102
102
|
declare function genAiWorkflowAttributes(input: GenAiWorkflowInput): GenAiAttributeMap;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { genAiWorkflowAttributes as _, GenAiResponseInput as a, GenAiUsageInput as c, genAiMemoryAttributes as d, genAiRequestAttributes as f, genAiUsageAttributes as g, genAiToolAttributes as h, GenAiRequestInput as i, GenAiWorkflowInput as l, genAiRetrievalAttributes as m, GenAiAttributeMap as n, GenAiRetrievalInput as o, genAiResponseAttributes as p, GenAiMemoryInput as r, GenAiToolInput as s, GenAiAgentInput as t, genAiAgentAttributes as u };
|
|
105
|
-
//# sourceMappingURL=attributes-CLmcQcNP.d.ts.map
|
|
104
|
+
export { genAiWorkflowAttributes as _, GenAiResponseInput as a, GenAiUsageInput as c, genAiMemoryAttributes as d, genAiRequestAttributes as f, genAiUsageAttributes as g, genAiToolAttributes as h, GenAiRequestInput as i, GenAiWorkflowInput as l, genAiRetrievalAttributes as m, GenAiAttributeMap as n, GenAiRetrievalInput as o, genAiResponseAttributes as p, GenAiMemoryInput as r, GenAiToolInput as s, GenAiAgentInput as t, genAiAgentAttributes as u };
|
|
@@ -122,5 +122,4 @@ function genAiWorkflowAttributes(input) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
//#endregion
|
|
125
|
-
export { genAiRetrievalAttributes as a, genAiWorkflowAttributes as c, genAiResponseAttributes as i, genAiMemoryAttributes as n, genAiToolAttributes as o, genAiRequestAttributes as r, genAiUsageAttributes as s, genAiAgentAttributes as t };
|
|
126
|
-
//# sourceMappingURL=attributes-DCv1cxKZ.js.map
|
|
125
|
+
export { genAiRetrievalAttributes as a, genAiWorkflowAttributes as c, genAiResponseAttributes as i, genAiMemoryAttributes as n, genAiToolAttributes as o, genAiRequestAttributes as r, genAiUsageAttributes as s, genAiAgentAttributes as t };
|
package/dist/cost-C1FkUNG1.d.cts
CHANGED
|
@@ -67,5 +67,4 @@ declare function estimateLLMCost(model: string, usage: TokenUsage, options?: Est
|
|
|
67
67
|
*/
|
|
68
68
|
declare function recordLLMCost(ctx: Pick<TraceContext, 'setAttribute'>, model: string, usage: TokenUsage, options?: EstimateCostOptions): number | undefined;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { TokenUsage as a, ModelPricing as i, GEN_AI_COST_ATTRIBUTE as n, estimateLLMCost as o, MODEL_PRICING as r, recordLLMCost as s, EstimateCostOptions as t };
|
|
71
|
-
//# sourceMappingURL=cost-C1FkUNG1.d.cts.map
|
|
70
|
+
export { TokenUsage as a, ModelPricing as i, GEN_AI_COST_ATTRIBUTE as n, estimateLLMCost as o, MODEL_PRICING as r, recordLLMCost as s, EstimateCostOptions as t };
|
package/dist/cost-C1FkUNG1.d.ts
CHANGED
|
@@ -67,5 +67,4 @@ declare function estimateLLMCost(model: string, usage: TokenUsage, options?: Est
|
|
|
67
67
|
*/
|
|
68
68
|
declare function recordLLMCost(ctx: Pick<TraceContext, 'setAttribute'>, model: string, usage: TokenUsage, options?: EstimateCostOptions): number | undefined;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { TokenUsage as a, ModelPricing as i, GEN_AI_COST_ATTRIBUTE as n, estimateLLMCost as o, MODEL_PRICING as r, recordLLMCost as s, EstimateCostOptions as t };
|
|
71
|
-
//# sourceMappingURL=cost-C1FkUNG1.d.ts.map
|
|
70
|
+
export { TokenUsage as a, ModelPricing as i, GEN_AI_COST_ATTRIBUTE as n, estimateLLMCost as o, MODEL_PRICING as r, recordLLMCost as s, EstimateCostOptions as t };
|
package/dist/cost.cjs
CHANGED
|
@@ -140,5 +140,4 @@ function recordLLMCost(ctx, model, usage, options) {
|
|
|
140
140
|
exports.GEN_AI_COST_ATTRIBUTE = GEN_AI_COST_ATTRIBUTE;
|
|
141
141
|
exports.MODEL_PRICING = MODEL_PRICING;
|
|
142
142
|
exports.estimateLLMCost = estimateLLMCost;
|
|
143
|
-
exports.recordLLMCost = recordLLMCost;
|
|
144
|
-
//# sourceMappingURL=cost.cjs.map
|
|
143
|
+
exports.recordLLMCost = recordLLMCost;
|
package/dist/cost.js
CHANGED
|
@@ -136,5 +136,4 @@ function recordLLMCost(ctx, model, usage, options) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
//#endregion
|
|
139
|
-
export { GEN_AI_COST_ATTRIBUTE, MODEL_PRICING, estimateLLMCost, recordLLMCost };
|
|
140
|
-
//# sourceMappingURL=cost.js.map
|
|
139
|
+
export { GEN_AI_COST_ATTRIBUTE, MODEL_PRICING, estimateLLMCost, recordLLMCost };
|
|
@@ -112,5 +112,4 @@ interface GenAiOperationExceptionEvent {
|
|
|
112
112
|
*/
|
|
113
113
|
declare function recordOperationException(ctx: Pick<TraceContext, 'track'>, event: GenAiOperationExceptionEvent): void;
|
|
114
114
|
//#endregion
|
|
115
|
-
export { GenAiMessagePart as a, InferenceDetailsEvent as c, recordModelWarnings as d, recordOperationException as f, GenAiMessage as i, recordEvaluationResult as l, EvaluationResultEvent as n, GenAiOperationExceptionEvent as o, setGenAiContent as p, GenAiContentSink as r, GenAiWarning as s, ContentCaptureSettings as t, recordInferenceDetails as u };
|
|
116
|
-
//# sourceMappingURL=events-BKns22B0.d.ts.map
|
|
115
|
+
export { GenAiMessagePart as a, InferenceDetailsEvent as c, recordModelWarnings as d, recordOperationException as f, GenAiMessage as i, recordEvaluationResult as l, EvaluationResultEvent as n, GenAiOperationExceptionEvent as o, setGenAiContent as p, GenAiContentSink as r, GenAiWarning as s, ContentCaptureSettings as t, recordInferenceDetails as u };
|
|
@@ -112,5 +112,4 @@ interface GenAiOperationExceptionEvent {
|
|
|
112
112
|
*/
|
|
113
113
|
declare function recordOperationException(ctx: Pick<TraceContext, 'track'>, event: GenAiOperationExceptionEvent): void;
|
|
114
114
|
//#endregion
|
|
115
|
-
export { GenAiMessagePart as a, InferenceDetailsEvent as c, recordModelWarnings as d, recordOperationException as f, GenAiMessage as i, recordEvaluationResult as l, EvaluationResultEvent as n, GenAiOperationExceptionEvent as o, setGenAiContent as p, GenAiContentSink as r, GenAiWarning as s, ContentCaptureSettings as t, recordInferenceDetails as u };
|
|
116
|
-
//# sourceMappingURL=events-D2-Y94tX.d.cts.map
|
|
115
|
+
export { GenAiMessagePart as a, InferenceDetailsEvent as c, recordModelWarnings as d, recordOperationException as f, GenAiMessage as i, recordEvaluationResult as l, EvaluationResultEvent as n, GenAiOperationExceptionEvent as o, setGenAiContent as p, GenAiContentSink as r, GenAiWarning as s, ContentCaptureSettings as t, recordInferenceDetails as u };
|
package/dist/events.cjs
CHANGED
|
@@ -146,5 +146,4 @@ exports.recordEvaluationResult = recordEvaluationResult;
|
|
|
146
146
|
exports.recordInferenceDetails = recordInferenceDetails;
|
|
147
147
|
exports.recordModelWarnings = recordModelWarnings;
|
|
148
148
|
exports.recordOperationException = recordOperationException;
|
|
149
|
-
exports.setGenAiContent = setGenAiContent;
|
|
150
|
-
//# sourceMappingURL=events.cjs.map
|
|
149
|
+
exports.setGenAiContent = setGenAiContent;
|
package/dist/events.js
CHANGED
|
@@ -141,5 +141,4 @@ function recordOperationException(ctx, event) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
//#endregion
|
|
144
|
-
export { recordEvaluationResult, recordInferenceDetails, recordModelWarnings, recordOperationException, setGenAiContent };
|
|
145
|
-
//# sourceMappingURL=events.js.map
|
|
144
|
+
export { recordEvaluationResult, recordInferenceDetails, recordModelWarnings, recordOperationException, setGenAiContent };
|
package/dist/guard.cjs
CHANGED
|
Binary file
|
package/dist/guard.d.cts
CHANGED
|
@@ -218,5 +218,4 @@ interface GenAiBudgetOptions {
|
|
|
218
218
|
*/
|
|
219
219
|
declare function createGenAiBudget(options: GenAiBudgetOptions): GenAiGuard;
|
|
220
220
|
//#endregion
|
|
221
|
-
export { CONTEXT_LIMITS, GenAiBudgetOptions, GenAiGuard, GenAiGuardOptions, GenAiGuardRule, GenAiGuardStep, GuardAction, GuardSink, GuardState, GuardStopBehavior, GuardUsage, GuardViolation, contextBudget, costCeiling, createGenAiBudget, createGenAiGuard, errorLoop, maxDuration, maxSteps, maxToolCalls, parseGuardRules, spinLoop, tokenCeiling };
|
|
222
|
-
//# sourceMappingURL=guard.d.cts.map
|
|
221
|
+
export { CONTEXT_LIMITS, GenAiBudgetOptions, GenAiGuard, GenAiGuardOptions, GenAiGuardRule, GenAiGuardStep, GuardAction, GuardSink, GuardState, GuardStopBehavior, GuardUsage, GuardViolation, contextBudget, costCeiling, createGenAiBudget, createGenAiGuard, errorLoop, maxDuration, maxSteps, maxToolCalls, parseGuardRules, spinLoop, tokenCeiling };
|
package/dist/guard.d.ts
CHANGED
|
@@ -218,5 +218,4 @@ interface GenAiBudgetOptions {
|
|
|
218
218
|
*/
|
|
219
219
|
declare function createGenAiBudget(options: GenAiBudgetOptions): GenAiGuard;
|
|
220
220
|
//#endregion
|
|
221
|
-
export { CONTEXT_LIMITS, GenAiBudgetOptions, GenAiGuard, GenAiGuardOptions, GenAiGuardRule, GenAiGuardStep, GuardAction, GuardSink, GuardState, GuardStopBehavior, GuardUsage, GuardViolation, contextBudget, costCeiling, createGenAiBudget, createGenAiGuard, errorLoop, maxDuration, maxSteps, maxToolCalls, parseGuardRules, spinLoop, tokenCeiling };
|
|
222
|
-
//# sourceMappingURL=guard.d.ts.map
|
|
221
|
+
export { CONTEXT_LIMITS, GenAiBudgetOptions, GenAiGuard, GenAiGuardOptions, GenAiGuardRule, GenAiGuardStep, GuardAction, GuardSink, GuardState, GuardStopBehavior, GuardUsage, GuardViolation, contextBudget, costCeiling, createGenAiBudget, createGenAiGuard, errorLoop, maxDuration, maxSteps, maxToolCalls, parseGuardRules, spinLoop, tokenCeiling };
|
package/dist/guard.js
CHANGED
|
Binary file
|
|
@@ -469,5 +469,4 @@ declare function runAgentPlanClassifier(classifier: AgentPlanClassifier, input:
|
|
|
469
469
|
*/
|
|
470
470
|
declare function heuristicPlanRiskClassifier(): AgentPlanClassifier;
|
|
471
471
|
//#endregion
|
|
472
|
-
export { AgentToolCallOptions as $, delegateToAgent as A, AgentDecisionMetadata as B, defineAgentToolCall as C, withAgentToolCall as D, withAgentAction as E, AgentActionFactory as F, AgentIdentityRegistry as G, AgentHandler as H, AgentActionMetadata as I, AgentOutcome as J, AgentIdentityStatus as K, AgentActionOptions as L, flattenAgentAttributes as M, setAgentAttributes as N, DelegateToAgentInput as O, createAgentAuditMetadata as P, AgentToolCallActionMetadata as Q, AgentAiMetadata as R, defineAgentAction as S, recordPolicyDecision as T, AgentIdentity as U, AgentEventKind as V, AgentIdentityRecord as W, AgentSessionMetadata as X, AgentSessionActionMetadata as Y, AgentSessionStatus as Z, ProvisionAgentIdentityInput as _, AgentPlanRiskVerdict as a, PrivacyProfile as at, createAgentIdentityRegistry as b, recordPlanRiskAssessment as c, ToolCallMetadata as ct, CreateSignedEventEnvelopeOptions as d, canonicalizeForHash as dt, AiLifecycleStage as et, createSignedEventEnvelope as f, hashPayload as ft, sanitizeAuditPayload as g, resolvePrivacyProfile as h, AgentPlanClassifierResult as i, PolicyMetadata as it, recordAgentHandoff as j, RecordAgentHandoffMetadata as k, runAgentPlanClassifier as l, ToolStatus as lt, PrivacyProfileInput as m, AgentPlanClassifier as n, GovernanceMetadata as nt, RecordPlanRiskAssessmentOptions as o, PrivacyProfileName as ot, verifyEventEnvelopeHash as p, AGENT_AUDIT_SCHEMA_VERSION as pt, AgentMetadataInput as q, AgentPlanClassifierInput as r, PolicyDecision as rt, heuristicPlanRiskClassifier as s, ScopedToolDefinition as st, AGENT_PLAN_RISK_ATTR as t, DelegationContext as tt, withScopedTool as u, HashPayloadOptions as ut, RevokeAgentIdentityInput as v, recordDecisionBasis as w, withAgentSession as x, RotateAgentIdentityInput as y, AgentAuditEventEnvelope as z };
|
|
473
|
-
//# sourceMappingURL=index-BIj0iUEx.d.cts.map
|
|
472
|
+
export { AgentToolCallOptions as $, delegateToAgent as A, AgentDecisionMetadata as B, defineAgentToolCall as C, withAgentToolCall as D, withAgentAction as E, AgentActionFactory as F, AgentIdentityRegistry as G, AgentHandler as H, AgentActionMetadata as I, AgentOutcome as J, AgentIdentityStatus as K, AgentActionOptions as L, flattenAgentAttributes as M, setAgentAttributes as N, DelegateToAgentInput as O, createAgentAuditMetadata as P, AgentToolCallActionMetadata as Q, AgentAiMetadata as R, defineAgentAction as S, recordPolicyDecision as T, AgentIdentity as U, AgentEventKind as V, AgentIdentityRecord as W, AgentSessionMetadata as X, AgentSessionActionMetadata as Y, AgentSessionStatus as Z, ProvisionAgentIdentityInput as _, AgentPlanRiskVerdict as a, PrivacyProfile as at, createAgentIdentityRegistry as b, recordPlanRiskAssessment as c, ToolCallMetadata as ct, CreateSignedEventEnvelopeOptions as d, canonicalizeForHash as dt, AiLifecycleStage as et, createSignedEventEnvelope as f, hashPayload as ft, sanitizeAuditPayload as g, resolvePrivacyProfile as h, AgentPlanClassifierResult as i, PolicyMetadata as it, recordAgentHandoff as j, RecordAgentHandoffMetadata as k, runAgentPlanClassifier as l, ToolStatus as lt, PrivacyProfileInput as m, AgentPlanClassifier as n, GovernanceMetadata as nt, RecordPlanRiskAssessmentOptions as o, PrivacyProfileName as ot, verifyEventEnvelopeHash as p, AGENT_AUDIT_SCHEMA_VERSION as pt, AgentMetadataInput as q, AgentPlanClassifierInput as r, PolicyDecision as rt, heuristicPlanRiskClassifier as s, ScopedToolDefinition as st, AGENT_PLAN_RISK_ATTR as t, DelegationContext as tt, withScopedTool as u, HashPayloadOptions as ut, RevokeAgentIdentityInput as v, recordDecisionBasis as w, withAgentSession as x, RotateAgentIdentityInput as y, AgentAuditEventEnvelope as z };
|
package/dist/index-Bdn7khCZ.d.ts
CHANGED
|
@@ -531,5 +531,4 @@ interface LangChainObserverOptions {
|
|
|
531
531
|
}
|
|
532
532
|
declare function createLangChainObserver(observe: GenAiObserver, options?: LangChainObserverOptions): LangChainObserverHandler;
|
|
533
533
|
//#endregion
|
|
534
|
-
export { SpanEnd as A, ChatEndEvent as C, GenAiObserverEvent as D, GenAiObserver as E, WorkflowStartEvent as F, ToolEndEvent as M, ToolStartEvent as N, GenAiObserverOptions as O, WorkflowEndEvent as P, AgentStartEvent as S, ChatStreamTiming as T, ObserveAiSdkOptions as _, subscribeAiTelemetry as a, createGenAiObserver as b, autotelTelemetry as c, promptToGenAiMessages as d, AiSdkResult as f, AiSdkUsage as g, AiSdkToolResult as h, SubscribeAiTelemetryOptions as i, SpanStart as j, GenAiToolIdentity as k, ConvertedPrompt as l, AiSdkToolCall as m, LangChainObserverOptions as n, AutotelTelemetryIntegration as o, AiSdkStep as p, createLangChainObserver as r, AutotelTelemetryOptions as s, LangChainObserverHandler as t, contentToGenAiMessage as u, observeAiSdkResult as v, ChatStartEvent as w, AgentEndEvent as x, SpanRegistry as y };
|
|
535
|
-
//# sourceMappingURL=index-Bdn7khCZ.d.ts.map
|
|
534
|
+
export { SpanEnd as A, ChatEndEvent as C, GenAiObserverEvent as D, GenAiObserver as E, WorkflowStartEvent as F, ToolEndEvent as M, ToolStartEvent as N, GenAiObserverOptions as O, WorkflowEndEvent as P, AgentStartEvent as S, ChatStreamTiming as T, ObserveAiSdkOptions as _, subscribeAiTelemetry as a, createGenAiObserver as b, autotelTelemetry as c, promptToGenAiMessages as d, AiSdkResult as f, AiSdkUsage as g, AiSdkToolResult as h, SubscribeAiTelemetryOptions as i, SpanStart as j, GenAiToolIdentity as k, ConvertedPrompt as l, AiSdkToolCall as m, LangChainObserverOptions as n, AutotelTelemetryIntegration as o, AiSdkStep as p, createLangChainObserver as r, AutotelTelemetryOptions as s, LangChainObserverHandler as t, contentToGenAiMessage as u, observeAiSdkResult as v, ChatStartEvent as w, AgentEndEvent as x, SpanRegistry as y };
|
|
@@ -531,5 +531,4 @@ interface LangChainObserverOptions {
|
|
|
531
531
|
}
|
|
532
532
|
declare function createLangChainObserver(observe: GenAiObserver, options?: LangChainObserverOptions): LangChainObserverHandler;
|
|
533
533
|
//#endregion
|
|
534
|
-
export { SpanEnd as A, ChatEndEvent as C, GenAiObserverEvent as D, GenAiObserver as E, WorkflowStartEvent as F, ToolEndEvent as M, ToolStartEvent as N, GenAiObserverOptions as O, WorkflowEndEvent as P, AgentStartEvent as S, ChatStreamTiming as T, ObserveAiSdkOptions as _, subscribeAiTelemetry as a, createGenAiObserver as b, autotelTelemetry as c, promptToGenAiMessages as d, AiSdkResult as f, AiSdkUsage as g, AiSdkToolResult as h, SubscribeAiTelemetryOptions as i, SpanStart as j, GenAiToolIdentity as k, ConvertedPrompt as l, AiSdkToolCall as m, LangChainObserverOptions as n, AutotelTelemetryIntegration as o, AiSdkStep as p, createLangChainObserver as r, AutotelTelemetryOptions as s, LangChainObserverHandler as t, contentToGenAiMessage as u, observeAiSdkResult as v, ChatStartEvent as w, AgentEndEvent as x, SpanRegistry as y };
|
|
535
|
-
//# sourceMappingURL=index-D-6RBbqV.d.cts.map
|
|
534
|
+
export { SpanEnd as A, ChatEndEvent as C, GenAiObserverEvent as D, GenAiObserver as E, WorkflowStartEvent as F, ToolEndEvent as M, ToolStartEvent as N, GenAiObserverOptions as O, WorkflowEndEvent as P, AgentStartEvent as S, ChatStreamTiming as T, ObserveAiSdkOptions as _, subscribeAiTelemetry as a, createGenAiObserver as b, autotelTelemetry as c, promptToGenAiMessages as d, AiSdkResult as f, AiSdkUsage as g, AiSdkToolResult as h, SubscribeAiTelemetryOptions as i, SpanStart as j, GenAiToolIdentity as k, ConvertedPrompt as l, AiSdkToolCall as m, LangChainObserverOptions as n, AutotelTelemetryIntegration as o, AiSdkStep as p, createLangChainObserver as r, AutotelTelemetryOptions as s, LangChainObserverHandler as t, contentToGenAiMessage as u, observeAiSdkResult as v, ChatStartEvent as w, AgentEndEvent as x, SpanRegistry as y };
|
package/dist/index-DLdEgWWh.d.ts
CHANGED
|
@@ -469,5 +469,4 @@ declare function runAgentPlanClassifier(classifier: AgentPlanClassifier, input:
|
|
|
469
469
|
*/
|
|
470
470
|
declare function heuristicPlanRiskClassifier(): AgentPlanClassifier;
|
|
471
471
|
//#endregion
|
|
472
|
-
export { AgentToolCallOptions as $, delegateToAgent as A, AgentDecisionMetadata as B, defineAgentToolCall as C, withAgentToolCall as D, withAgentAction as E, AgentActionFactory as F, AgentIdentityRegistry as G, AgentHandler as H, AgentActionMetadata as I, AgentOutcome as J, AgentIdentityStatus as K, AgentActionOptions as L, flattenAgentAttributes as M, setAgentAttributes as N, DelegateToAgentInput as O, createAgentAuditMetadata as P, AgentToolCallActionMetadata as Q, AgentAiMetadata as R, defineAgentAction as S, recordPolicyDecision as T, AgentIdentity as U, AgentEventKind as V, AgentIdentityRecord as W, AgentSessionMetadata as X, AgentSessionActionMetadata as Y, AgentSessionStatus as Z, ProvisionAgentIdentityInput as _, AgentPlanRiskVerdict as a, PrivacyProfile as at, createAgentIdentityRegistry as b, recordPlanRiskAssessment as c, ToolCallMetadata as ct, CreateSignedEventEnvelopeOptions as d, canonicalizeForHash as dt, AiLifecycleStage as et, createSignedEventEnvelope as f, hashPayload as ft, sanitizeAuditPayload as g, resolvePrivacyProfile as h, AgentPlanClassifierResult as i, PolicyMetadata as it, recordAgentHandoff as j, RecordAgentHandoffMetadata as k, runAgentPlanClassifier as l, ToolStatus as lt, PrivacyProfileInput as m, AgentPlanClassifier as n, GovernanceMetadata as nt, RecordPlanRiskAssessmentOptions as o, PrivacyProfileName as ot, verifyEventEnvelopeHash as p, AGENT_AUDIT_SCHEMA_VERSION as pt, AgentMetadataInput as q, AgentPlanClassifierInput as r, PolicyDecision as rt, heuristicPlanRiskClassifier as s, ScopedToolDefinition as st, AGENT_PLAN_RISK_ATTR as t, DelegationContext as tt, withScopedTool as u, HashPayloadOptions as ut, RevokeAgentIdentityInput as v, recordDecisionBasis as w, withAgentSession as x, RotateAgentIdentityInput as y, AgentAuditEventEnvelope as z };
|
|
473
|
-
//# sourceMappingURL=index-DLdEgWWh.d.ts.map
|
|
472
|
+
export { AgentToolCallOptions as $, delegateToAgent as A, AgentDecisionMetadata as B, defineAgentToolCall as C, withAgentToolCall as D, withAgentAction as E, AgentActionFactory as F, AgentIdentityRegistry as G, AgentHandler as H, AgentActionMetadata as I, AgentOutcome as J, AgentIdentityStatus as K, AgentActionOptions as L, flattenAgentAttributes as M, setAgentAttributes as N, DelegateToAgentInput as O, createAgentAuditMetadata as P, AgentToolCallActionMetadata as Q, AgentAiMetadata as R, defineAgentAction as S, recordPolicyDecision as T, AgentIdentity as U, AgentEventKind as V, AgentIdentityRecord as W, AgentSessionMetadata as X, AgentSessionActionMetadata as Y, AgentSessionStatus as Z, ProvisionAgentIdentityInput as _, AgentPlanRiskVerdict as a, PrivacyProfile as at, createAgentIdentityRegistry as b, recordPlanRiskAssessment as c, ToolCallMetadata as ct, CreateSignedEventEnvelopeOptions as d, canonicalizeForHash as dt, AiLifecycleStage as et, createSignedEventEnvelope as f, hashPayload as ft, sanitizeAuditPayload as g, resolvePrivacyProfile as h, AgentPlanClassifierResult as i, PolicyMetadata as it, recordAgentHandoff as j, RecordAgentHandoffMetadata as k, runAgentPlanClassifier as l, ToolStatus as lt, PrivacyProfileInput as m, AgentPlanClassifier as n, GovernanceMetadata as nt, RecordPlanRiskAssessmentOptions as o, PrivacyProfileName as ot, verifyEventEnvelopeHash as p, AGENT_AUDIT_SCHEMA_VERSION as pt, AgentMetadataInput as q, AgentPlanClassifierInput as r, PolicyDecision as rt, heuristicPlanRiskClassifier as s, ScopedToolDefinition as st, AGENT_PLAN_RISK_ATTR as t, DelegationContext as tt, withScopedTool as u, HashPayloadOptions as ut, RevokeAgentIdentityInput as v, recordDecisionBasis as w, withAgentSession as x, RotateAgentIdentityInput as y, AgentAuditEventEnvelope as z };
|
package/dist/metrics.cjs
CHANGED
|
@@ -169,5 +169,4 @@ exports.GEN_AI_COST_USD_BUCKETS = GEN_AI_COST_USD_BUCKETS;
|
|
|
169
169
|
exports.GEN_AI_DURATION_BUCKETS_SECONDS = GEN_AI_DURATION_BUCKETS_SECONDS;
|
|
170
170
|
exports.GEN_AI_TOKEN_USAGE_BUCKETS = GEN_AI_TOKEN_USAGE_BUCKETS;
|
|
171
171
|
exports.genAiMetricViews = genAiMetricViews;
|
|
172
|
-
exports.llmHistogramAdvice = llmHistogramAdvice;
|
|
173
|
-
//# sourceMappingURL=metrics.cjs.map
|
|
172
|
+
exports.llmHistogramAdvice = llmHistogramAdvice;
|
package/dist/metrics.d.cts
CHANGED
|
@@ -47,5 +47,4 @@ declare function genAiMetricViews(extra?: {
|
|
|
47
47
|
kind: GenAiHistogramKind;
|
|
48
48
|
}[]): ViewOptions[];
|
|
49
49
|
//#endregion
|
|
50
|
-
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, GenAiHistogramKind, genAiMetricViews, llmHistogramAdvice };
|
|
51
|
-
//# sourceMappingURL=metrics.d.cts.map
|
|
50
|
+
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, GenAiHistogramKind, genAiMetricViews, llmHistogramAdvice };
|
package/dist/metrics.d.ts
CHANGED
|
@@ -47,5 +47,4 @@ declare function genAiMetricViews(extra?: {
|
|
|
47
47
|
kind: GenAiHistogramKind;
|
|
48
48
|
}[]): ViewOptions[];
|
|
49
49
|
//#endregion
|
|
50
|
-
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, GenAiHistogramKind, genAiMetricViews, llmHistogramAdvice };
|
|
51
|
-
//# sourceMappingURL=metrics.d.ts.map
|
|
50
|
+
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, GenAiHistogramKind, genAiMetricViews, llmHistogramAdvice };
|
package/dist/metrics.js
CHANGED
|
@@ -164,5 +164,4 @@ function genAiMetricViews(extra = []) {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
//#endregion
|
|
167
|
-
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, genAiMetricViews, llmHistogramAdvice };
|
|
168
|
-
//# sourceMappingURL=metrics.js.map
|
|
167
|
+
export { GEN_AI_COST_USD_BUCKETS, GEN_AI_DURATION_BUCKETS_SECONDS, GEN_AI_TOKEN_USAGE_BUCKETS, genAiMetricViews, llmHistogramAdvice };
|
|
@@ -1112,5 +1112,4 @@ function num(value) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
//#endregion
|
|
1115
|
-
export { promptToGenAiMessages as a, SpanRegistry as c, contentToGenAiMessage as i, subscribeAiTelemetry as n, observeAiSdkResult as o, autotelTelemetry as r, createGenAiObserver as s, createLangChainObserver as t };
|
|
1116
|
-
//# sourceMappingURL=observer-Ckha9xGv.js.map
|
|
1115
|
+
export { promptToGenAiMessages as a, SpanRegistry as c, contentToGenAiMessage as i, subscribeAiTelemetry as n, observeAiSdkResult as o, autotelTelemetry as r, createGenAiObserver as s, createLangChainObserver as t };
|
|
@@ -226,5 +226,4 @@ declare const GEN_AI_EXT_EVENT: {
|
|
|
226
226
|
*/
|
|
227
227
|
declare function genAiSpanName(operation: GenAiOperationName | (string & {}), identifier?: string | undefined): string;
|
|
228
228
|
//#endregion
|
|
229
|
-
export { genAiSpanName as _, GEN_AI_METRIC as a, GEN_AI_PROVIDER as c, GenAiAttributeKey as d, GenAiOperationName as f, GenAiToolType as g, GenAiTokenType as h, GEN_AI_GUARD_EVENT as i, GEN_AI_TOKEN_TYPE as l, GenAiProviderName as m, GEN_AI_EVENT as n, GEN_AI_OPERATION as o, GenAiOutputType as p, GEN_AI_EXT_EVENT as r, GEN_AI_OUTPUT_TYPE as s, GEN_AI as t, GEN_AI_TOOL_TYPE as u };
|
|
230
|
-
//# sourceMappingURL=semconv-2VyDPIuF.d.cts.map
|
|
229
|
+
export { genAiSpanName as _, GEN_AI_METRIC as a, GEN_AI_PROVIDER as c, GenAiAttributeKey as d, GenAiOperationName as f, GenAiToolType as g, GenAiTokenType as h, GEN_AI_GUARD_EVENT as i, GEN_AI_TOKEN_TYPE as l, GenAiProviderName as m, GEN_AI_EVENT as n, GEN_AI_OPERATION as o, GenAiOutputType as p, GEN_AI_EXT_EVENT as r, GEN_AI_OUTPUT_TYPE as s, GEN_AI as t, GEN_AI_TOOL_TYPE as u };
|
|
@@ -226,5 +226,4 @@ declare const GEN_AI_EXT_EVENT: {
|
|
|
226
226
|
*/
|
|
227
227
|
declare function genAiSpanName(operation: GenAiOperationName | (string & {}), identifier?: string | undefined): string;
|
|
228
228
|
//#endregion
|
|
229
|
-
export { genAiSpanName as _, GEN_AI_METRIC as a, GEN_AI_PROVIDER as c, GenAiAttributeKey as d, GenAiOperationName as f, GenAiToolType as g, GenAiTokenType as h, GEN_AI_GUARD_EVENT as i, GEN_AI_TOKEN_TYPE as l, GenAiProviderName as m, GEN_AI_EVENT as n, GEN_AI_OPERATION as o, GenAiOutputType as p, GEN_AI_EXT_EVENT as r, GEN_AI_OUTPUT_TYPE as s, GEN_AI as t, GEN_AI_TOOL_TYPE as u };
|
|
230
|
-
//# sourceMappingURL=semconv-2VyDPIuF.d.ts.map
|
|
229
|
+
export { genAiSpanName as _, GEN_AI_METRIC as a, GEN_AI_PROVIDER as c, GenAiAttributeKey as d, GenAiOperationName as f, GenAiToolType as g, GenAiTokenType as h, GEN_AI_GUARD_EVENT as i, GEN_AI_TOKEN_TYPE as l, GenAiProviderName as m, GEN_AI_EVENT as n, GEN_AI_OPERATION as o, GenAiOutputType as p, GEN_AI_EXT_EVENT as r, GEN_AI_OUTPUT_TYPE as s, GEN_AI as t, GEN_AI_TOOL_TYPE as u };
|
package/dist/semconv.cjs
CHANGED
|
@@ -233,5 +233,4 @@ exports.GEN_AI_OUTPUT_TYPE = GEN_AI_OUTPUT_TYPE;
|
|
|
233
233
|
exports.GEN_AI_PROVIDER = GEN_AI_PROVIDER;
|
|
234
234
|
exports.GEN_AI_TOKEN_TYPE = GEN_AI_TOKEN_TYPE;
|
|
235
235
|
exports.GEN_AI_TOOL_TYPE = GEN_AI_TOOL_TYPE;
|
|
236
|
-
exports.genAiSpanName = genAiSpanName;
|
|
237
|
-
//# sourceMappingURL=semconv.cjs.map
|
|
236
|
+
exports.genAiSpanName = genAiSpanName;
|
package/dist/semconv.js
CHANGED
|
@@ -221,5 +221,4 @@ function genAiSpanName(operation, identifier) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
//#endregion
|
|
224
|
-
export { GEN_AI, GEN_AI_EVENT, GEN_AI_EXT_EVENT, GEN_AI_GUARD_EVENT, GEN_AI_METRIC, GEN_AI_OPERATION, GEN_AI_OUTPUT_TYPE, GEN_AI_PROVIDER, GEN_AI_TOKEN_TYPE, GEN_AI_TOOL_TYPE, genAiSpanName };
|
|
225
|
-
//# sourceMappingURL=semconv.js.map
|
|
224
|
+
export { GEN_AI, GEN_AI_EVENT, GEN_AI_EXT_EVENT, GEN_AI_GUARD_EVENT, GEN_AI_METRIC, GEN_AI_OPERATION, GEN_AI_OUTPUT_TYPE, GEN_AI_PROVIDER, GEN_AI_TOKEN_TYPE, GEN_AI_TOOL_TYPE, genAiSpanName };
|
package/dist/streaming.cjs
CHANGED
|
@@ -120,5 +120,4 @@ function createStreamTimer(now = Date.now) {
|
|
|
120
120
|
exports.chunkIntervalStats = chunkIntervalStats;
|
|
121
121
|
exports.computeStreamTiming = computeStreamTiming;
|
|
122
122
|
exports.createStreamTimer = createStreamTimer;
|
|
123
|
-
exports.recordStreamTiming = recordStreamTiming;
|
|
124
|
-
//# sourceMappingURL=streaming.cjs.map
|
|
123
|
+
exports.recordStreamTiming = recordStreamTiming;
|
package/dist/streaming.d.cts
CHANGED
|
@@ -82,5 +82,4 @@ interface StreamTimer {
|
|
|
82
82
|
*/
|
|
83
83
|
declare function createStreamTimer(now?: () => number): StreamTimer;
|
|
84
84
|
//#endregion
|
|
85
|
-
export { ChunkIntervalStats, ComputeStreamTimingInput, StreamTimer, StreamTiming, chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
|
86
|
-
//# sourceMappingURL=streaming.d.cts.map
|
|
85
|
+
export { ChunkIntervalStats, ComputeStreamTimingInput, StreamTimer, StreamTiming, chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
package/dist/streaming.d.ts
CHANGED
|
@@ -82,5 +82,4 @@ interface StreamTimer {
|
|
|
82
82
|
*/
|
|
83
83
|
declare function createStreamTimer(now?: () => number): StreamTimer;
|
|
84
84
|
//#endregion
|
|
85
|
-
export { ChunkIntervalStats, ComputeStreamTimingInput, StreamTimer, StreamTiming, chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
|
86
|
-
//# sourceMappingURL=streaming.d.ts.map
|
|
85
|
+
export { ChunkIntervalStats, ComputeStreamTimingInput, StreamTimer, StreamTiming, chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
package/dist/streaming.js
CHANGED
|
@@ -116,5 +116,4 @@ function createStreamTimer(now = Date.now) {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
//#endregion
|
|
119
|
-
export { chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
|
120
|
-
//# sourceMappingURL=streaming.js.map
|
|
119
|
+
export { chunkIntervalStats, computeStreamTiming, createStreamTimer, recordStreamTiming };
|
package/dist/trace.cjs
CHANGED
|
@@ -134,5 +134,4 @@ function recordGenAiUsage(ctx, model, usage, options) {
|
|
|
134
134
|
exports.recordGenAiResponse = recordGenAiResponse;
|
|
135
135
|
exports.recordGenAiUsage = recordGenAiUsage;
|
|
136
136
|
exports.traceGenAI = traceGenAI;
|
|
137
|
-
exports.traceLLM = traceLLM;
|
|
138
|
-
//# sourceMappingURL=trace.cjs.map
|
|
137
|
+
exports.traceLLM = traceLLM;
|
package/dist/trace.d.cts
CHANGED
|
@@ -37,5 +37,4 @@ declare function recordGenAiUsage(ctx: Pick<TraceContext, 'setAttributes'>, mode
|
|
|
37
37
|
recordCost?: boolean;
|
|
38
38
|
}): number | undefined;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { TraceGenAIConfig, recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
|
41
|
-
//# sourceMappingURL=trace.d.cts.map
|
|
40
|
+
export { TraceGenAIConfig, recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
package/dist/trace.d.ts
CHANGED
|
@@ -37,5 +37,4 @@ declare function recordGenAiUsage(ctx: Pick<TraceContext, 'setAttributes'>, mode
|
|
|
37
37
|
recordCost?: boolean;
|
|
38
38
|
}): number | undefined;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { TraceGenAIConfig, recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
|
41
|
-
//# sourceMappingURL=trace.d.ts.map
|
|
40
|
+
export { TraceGenAIConfig, recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
package/dist/trace.js
CHANGED
|
@@ -130,5 +130,4 @@ function recordGenAiUsage(ctx, model, usage, options) {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
//#endregion
|
|
133
|
-
export { recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
|
134
|
-
//# sourceMappingURL=trace.js.map
|
|
133
|
+
export { recordGenAiResponse, recordGenAiUsage, traceGenAI, traceLLM };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-genai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "Gold-standard OpenTelemetry GenAI semantic-convention instrumentation for LLM calls, tools, and agents — cost, tokens, metrics, events, and agent governance.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
|
|
84
84
|
"license": "Apache-2.0",
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"autotel": "6.
|
|
87
|
-
"autotel-audit": "0.4.
|
|
86
|
+
"autotel": "6.2.0",
|
|
87
|
+
"autotel-audit": "0.4.10"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@opentelemetry/api": "*",
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@opentelemetry/api": "^1.9.1",
|
|
100
100
|
"@opentelemetry/sdk-metrics": "^2.7.1",
|
|
101
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
102
|
-
"@types/node": "^26.1.
|
|
101
|
+
"@opentelemetry/sdk-trace-base": "^2.10.0",
|
|
102
|
+
"@types/node": "^26.1.2",
|
|
103
103
|
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
104
104
|
"@typescript-eslint/parser": "^8.65.0",
|
|
105
105
|
"eslint-config-prettier": "^10.1.8",
|
|
106
106
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
107
|
-
"tsdown": "^0.22.
|
|
107
|
+
"tsdown": "^0.22.14",
|
|
108
108
|
"typescript": "^6.0.3",
|
|
109
109
|
"typescript-eslint": "^8.65.0",
|
|
110
110
|
"vitest": "^4.1.10"
|