@llmops/core 1.0.0-beta.17 → 1.0.0-beta.19

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/index.d.cts CHANGED
@@ -515,8 +515,18 @@ declare const llmopsConfigSchema: z.ZodPipe<z.ZodObject<{
515
515
  * Note: schema is optional in input but always present after validation
516
516
  * Either database or providers must be present (enforced by schema)
517
517
  */
518
+ /**
519
+ * A telemetry store or sink that can receive LLM request/trace data.
520
+ * Implemented by pgStore, d1Store, and future store backends.
521
+ */
522
+ type TelemetryDestination = Record<string, unknown>;
523
+ /**
524
+ * Telemetry config accepts a single store, an array of stores/sinks,
525
+ * or undefined (inline-only mode, no persistence).
526
+ */
527
+ type TelemetryConfig = TelemetryDestination | TelemetryDestination[] | undefined;
518
528
  type ValidatedLLMOpsConfig = {
519
- telemetry?: unknown;
529
+ telemetry?: TelemetryConfig;
520
530
  basePath: string;
521
531
  providers?: InlineProvidersConfig;
522
532
  waitUntil?: (promise: Promise<unknown>) => void;
@@ -525,7 +535,7 @@ type ValidatedLLMOpsConfig = {
525
535
  * Input type for LLMOps configuration (before validation)
526
536
  */
527
537
  type LLMOpsConfigInput = {
528
- telemetry?: unknown;
538
+ telemetry?: TelemetryConfig;
529
539
  basePath?: string;
530
540
  providers?: InlineProvidersConfig;
531
541
  waitUntil?: (promise: Promise<unknown>) => void;
@@ -1395,4 +1405,4 @@ declare class LLMOpsPricingProvider implements PricingProvider {
1395
1405
  */
1396
1406
  declare function getDefaultPricingProvider(): LLMOpsPricingProvider;
1397
1407
  //#endregion
1398
- export { type AnthropicProviderConfig, type AnyProviderConfig, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, type CortexProviderConfig, CostResult, DEFAULT_PROVIDER_ENV_VARS, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, type InlineProviderConfig, type InlineProvidersConfig, LLMOPS_INTERNAL_HEADER, LLMOPS_REQUEST_ID_HEADER, LLMOPS_SESSION_ID_HEADER, LLMOPS_SPAN_ID_HEADER, LLMOPS_SPAN_NAME_HEADER, LLMOPS_TRACE_ID_HEADER, LLMOPS_TRACE_NAME_HEADER, LLMOPS_USER_ID_HEADER, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMOpsPricingProvider, MS, MemoryCacheBackend, MemoryCacheConfig, type MistralAIProviderConfig, ModelPricing, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, type ProviderConfigMap, type ProvidersConfig, type SagemakerProviderConfig, type StabilityAIProviderConfig, SupportedProviders, UsageData, type ValidatedLLMOpsConfig, VariantJsonData, type VertexAIProviderConfig, type WorkersAIProviderConfig, calculateCacheAwareCost, calculateCost, chatCompletionCreateParamsBaseSchema, dollarsToMicroDollars, formatCost, gateway, generateId, getDefaultPricingProvider, getDefaultProviders, llmopsConfigSchema, logger, mergeWithDefaultProviders, microDollarsToDollars, validateLLMOpsConfig, variantJsonDataSchema };
1408
+ export { type AnthropicProviderConfig, type AnyProviderConfig, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, type CortexProviderConfig, CostResult, DEFAULT_PROVIDER_ENV_VARS, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, type InlineProviderConfig, type InlineProvidersConfig, LLMOPS_INTERNAL_HEADER, LLMOPS_REQUEST_ID_HEADER, LLMOPS_SESSION_ID_HEADER, LLMOPS_SPAN_ID_HEADER, LLMOPS_SPAN_NAME_HEADER, LLMOPS_TRACE_ID_HEADER, LLMOPS_TRACE_NAME_HEADER, LLMOPS_USER_ID_HEADER, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMOpsPricingProvider, MS, MemoryCacheBackend, MemoryCacheConfig, type MistralAIProviderConfig, ModelPricing, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, type ProviderConfigMap, type ProvidersConfig, type SagemakerProviderConfig, type StabilityAIProviderConfig, SupportedProviders, TelemetryConfig, TelemetryDestination, UsageData, type ValidatedLLMOpsConfig, VariantJsonData, type VertexAIProviderConfig, type WorkersAIProviderConfig, calculateCacheAwareCost, calculateCost, chatCompletionCreateParamsBaseSchema, dollarsToMicroDollars, formatCost, gateway, generateId, getDefaultPricingProvider, getDefaultProviders, llmopsConfigSchema, logger, mergeWithDefaultProviders, microDollarsToDollars, validateLLMOpsConfig, variantJsonDataSchema };
package/dist/index.d.mts CHANGED
@@ -515,8 +515,18 @@ declare const llmopsConfigSchema: z.ZodPipe<z.ZodObject<{
515
515
  * Note: schema is optional in input but always present after validation
516
516
  * Either database or providers must be present (enforced by schema)
517
517
  */
518
+ /**
519
+ * A telemetry store or sink that can receive LLM request/trace data.
520
+ * Implemented by pgStore, d1Store, and future store backends.
521
+ */
522
+ type TelemetryDestination = Record<string, unknown>;
523
+ /**
524
+ * Telemetry config accepts a single store, an array of stores/sinks,
525
+ * or undefined (inline-only mode, no persistence).
526
+ */
527
+ type TelemetryConfig = TelemetryDestination | TelemetryDestination[] | undefined;
518
528
  type ValidatedLLMOpsConfig = {
519
- telemetry?: unknown;
529
+ telemetry?: TelemetryConfig;
520
530
  basePath: string;
521
531
  providers?: InlineProvidersConfig;
522
532
  waitUntil?: (promise: Promise<unknown>) => void;
@@ -525,7 +535,7 @@ type ValidatedLLMOpsConfig = {
525
535
  * Input type for LLMOps configuration (before validation)
526
536
  */
527
537
  type LLMOpsConfigInput = {
528
- telemetry?: unknown;
538
+ telemetry?: TelemetryConfig;
529
539
  basePath?: string;
530
540
  providers?: InlineProvidersConfig;
531
541
  waitUntil?: (promise: Promise<unknown>) => void;
@@ -1395,4 +1405,4 @@ declare class LLMOpsPricingProvider implements PricingProvider {
1395
1405
  */
1396
1406
  declare function getDefaultPricingProvider(): LLMOpsPricingProvider;
1397
1407
  //#endregion
1398
- export { type AnthropicProviderConfig, type AnyProviderConfig, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, type CortexProviderConfig, CostResult, DEFAULT_PROVIDER_ENV_VARS, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, type InlineProviderConfig, type InlineProvidersConfig, LLMOPS_INTERNAL_HEADER, LLMOPS_REQUEST_ID_HEADER, LLMOPS_SESSION_ID_HEADER, LLMOPS_SPAN_ID_HEADER, LLMOPS_SPAN_NAME_HEADER, LLMOPS_TRACE_ID_HEADER, LLMOPS_TRACE_NAME_HEADER, LLMOPS_USER_ID_HEADER, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMOpsPricingProvider, MS, MemoryCacheBackend, MemoryCacheConfig, type MistralAIProviderConfig, ModelPricing, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, type ProviderConfigMap, type ProvidersConfig, type SagemakerProviderConfig, type StabilityAIProviderConfig, SupportedProviders, UsageData, type ValidatedLLMOpsConfig, VariantJsonData, type VertexAIProviderConfig, type WorkersAIProviderConfig, calculateCacheAwareCost, calculateCost, chatCompletionCreateParamsBaseSchema, dollarsToMicroDollars, formatCost, gateway, generateId, getDefaultPricingProvider, getDefaultProviders, llmopsConfigSchema, logger, mergeWithDefaultProviders, microDollarsToDollars, validateLLMOpsConfig, variantJsonDataSchema };
1408
+ export { type AnthropicProviderConfig, type AnyProviderConfig, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, type CortexProviderConfig, CostResult, DEFAULT_PROVIDER_ENV_VARS, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, type InlineProviderConfig, type InlineProvidersConfig, LLMOPS_INTERNAL_HEADER, LLMOPS_REQUEST_ID_HEADER, LLMOPS_SESSION_ID_HEADER, LLMOPS_SPAN_ID_HEADER, LLMOPS_SPAN_NAME_HEADER, LLMOPS_TRACE_ID_HEADER, LLMOPS_TRACE_NAME_HEADER, LLMOPS_USER_ID_HEADER, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMOpsPricingProvider, MS, MemoryCacheBackend, MemoryCacheConfig, type MistralAIProviderConfig, ModelPricing, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, type ProviderConfigMap, type ProvidersConfig, type SagemakerProviderConfig, type StabilityAIProviderConfig, SupportedProviders, TelemetryConfig, TelemetryDestination, UsageData, type ValidatedLLMOpsConfig, VariantJsonData, type VertexAIProviderConfig, type WorkersAIProviderConfig, calculateCacheAwareCost, calculateCost, chatCompletionCreateParamsBaseSchema, dollarsToMicroDollars, formatCost, gateway, generateId, getDefaultPricingProvider, getDefaultProviders, llmopsConfigSchema, logger, mergeWithDefaultProviders, microDollarsToDollars, validateLLMOpsConfig, variantJsonDataSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmops/core",
3
- "version": "1.0.0-beta.17",
3
+ "version": "1.0.0-beta.19",
4
4
  "description": "Core LLMOps functionality and utilities",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "hono": "^4.10.7",
41
41
  "pino": "^10.1.0",
42
- "@llmops/gateway": "^1.0.0-beta.17"
42
+ "@llmops/gateway": "^1.0.0-beta.19"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/ws": "^8.18.1"