@zespan/sdk 1.2.0 → 1.3.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/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -71,6 +71,7 @@ interface Prompt {
|
|
|
71
71
|
declare class PromptClient {
|
|
72
72
|
private client;
|
|
73
73
|
private cache;
|
|
74
|
+
private cacheIndex;
|
|
74
75
|
private cacheTTL;
|
|
75
76
|
constructor(client: ZespanClient);
|
|
76
77
|
/**
|
|
@@ -280,6 +281,8 @@ declare function wrapAnthropic<T extends any>(client: T, options?: WrapperGuardr
|
|
|
280
281
|
|
|
281
282
|
declare function wrapGoogle<T extends any>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
282
283
|
|
|
284
|
+
declare function wrapGoogleGenAI<T extends object>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
285
|
+
|
|
283
286
|
declare function wrapOpenRouter(baseClient: OpenAI, options?: WrapperGuardrailsOptions): OpenAI;
|
|
284
287
|
|
|
285
288
|
interface WrapBedrockOptions extends WrapperGuardrailsOptions {
|
|
@@ -541,6 +544,7 @@ declare const zespan: {
|
|
|
541
544
|
wrapOpenAI: typeof wrapOpenAI;
|
|
542
545
|
wrapAnthropic: typeof wrapAnthropic;
|
|
543
546
|
wrapGoogle: typeof wrapGoogle;
|
|
547
|
+
wrapGoogleGenAI: typeof wrapGoogleGenAI;
|
|
544
548
|
wrapOpenRouter: typeof wrapOpenRouter;
|
|
545
549
|
wrapADKAgent: typeof wrapADKAgent;
|
|
546
550
|
wrapADKRunner: typeof wrapADKRunner;
|
|
@@ -564,4 +568,4 @@ declare const zespan: {
|
|
|
564
568
|
ZespanLlamaIndexHandler: typeof ZespanLlamaIndexHandler;
|
|
565
569
|
};
|
|
566
570
|
|
|
567
|
-
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions, type OTelConfig, type Prompt, PromptClient, type PromptOptions, type ResolvedWrapperGuardrailsSettings, type WrapperGuardrailsOptions, type WrapperGuardrailsSettings, ZespanADKCallbackHandler, ZespanCallbackHandler, ZespanClient, type ZespanContextOptions, ZespanLlamaIndexHandler, attachTraceToAutoGenMessage, autopatch, createSpan, extractAgentContext, extractAgentContext as extractAutoGenContext, extractTraceFromAutoGenMessage, getCrewAIInstrumentationGuide, getPydanticAIConfig, getTracer, getZespanClient, getZespanVercelTelemetry, init, initOTel, initZespan, injectAgentContext, injectAgentContext as injectAutoGenContext, instrumentADK, instrumentVercelAI, markFrameworkActive, markFrameworkInactive, startSpan, withAgent, withSpan, withZespan, withZespanContext, withZespanTrace, wrapADKAgent, wrapADKRunner, wrapAnthropic, wrapBedrock, wrapGoogle, wrapGroq, wrapLiteLLM, wrapMistral, wrapOpenAI, wrapOpenRouter, wrapZespanADKAgent, zespan };
|
|
571
|
+
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions, type OTelConfig, type Prompt, PromptClient, type PromptOptions, type ResolvedWrapperGuardrailsSettings, type WrapperGuardrailsOptions, type WrapperGuardrailsSettings, ZespanADKCallbackHandler, ZespanCallbackHandler, ZespanClient, type ZespanContextOptions, ZespanLlamaIndexHandler, attachTraceToAutoGenMessage, autopatch, createSpan, extractAgentContext, extractAgentContext as extractAutoGenContext, extractTraceFromAutoGenMessage, getCrewAIInstrumentationGuide, getPydanticAIConfig, getTracer, getZespanClient, getZespanVercelTelemetry, init, initOTel, initZespan, injectAgentContext, injectAgentContext as injectAutoGenContext, instrumentADK, instrumentVercelAI, markFrameworkActive, markFrameworkInactive, startSpan, withAgent, withSpan, withZespan, withZespanContext, withZespanTrace, wrapADKAgent, wrapADKRunner, wrapAnthropic, wrapBedrock, wrapGoogle, wrapGoogleGenAI, wrapGroq, wrapLiteLLM, wrapMistral, wrapOpenAI, wrapOpenRouter, wrapZespanADKAgent, zespan };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ interface Prompt {
|
|
|
71
71
|
declare class PromptClient {
|
|
72
72
|
private client;
|
|
73
73
|
private cache;
|
|
74
|
+
private cacheIndex;
|
|
74
75
|
private cacheTTL;
|
|
75
76
|
constructor(client: ZespanClient);
|
|
76
77
|
/**
|
|
@@ -280,6 +281,8 @@ declare function wrapAnthropic<T extends any>(client: T, options?: WrapperGuardr
|
|
|
280
281
|
|
|
281
282
|
declare function wrapGoogle<T extends any>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
282
283
|
|
|
284
|
+
declare function wrapGoogleGenAI<T extends object>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
285
|
+
|
|
283
286
|
declare function wrapOpenRouter(baseClient: OpenAI, options?: WrapperGuardrailsOptions): OpenAI;
|
|
284
287
|
|
|
285
288
|
interface WrapBedrockOptions extends WrapperGuardrailsOptions {
|
|
@@ -541,6 +544,7 @@ declare const zespan: {
|
|
|
541
544
|
wrapOpenAI: typeof wrapOpenAI;
|
|
542
545
|
wrapAnthropic: typeof wrapAnthropic;
|
|
543
546
|
wrapGoogle: typeof wrapGoogle;
|
|
547
|
+
wrapGoogleGenAI: typeof wrapGoogleGenAI;
|
|
544
548
|
wrapOpenRouter: typeof wrapOpenRouter;
|
|
545
549
|
wrapADKAgent: typeof wrapADKAgent;
|
|
546
550
|
wrapADKRunner: typeof wrapADKRunner;
|
|
@@ -564,4 +568,4 @@ declare const zespan: {
|
|
|
564
568
|
ZespanLlamaIndexHandler: typeof ZespanLlamaIndexHandler;
|
|
565
569
|
};
|
|
566
570
|
|
|
567
|
-
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions, type OTelConfig, type Prompt, PromptClient, type PromptOptions, type ResolvedWrapperGuardrailsSettings, type WrapperGuardrailsOptions, type WrapperGuardrailsSettings, ZespanADKCallbackHandler, ZespanCallbackHandler, ZespanClient, type ZespanContextOptions, ZespanLlamaIndexHandler, attachTraceToAutoGenMessage, autopatch, createSpan, extractAgentContext, extractAgentContext as extractAutoGenContext, extractTraceFromAutoGenMessage, getCrewAIInstrumentationGuide, getPydanticAIConfig, getTracer, getZespanClient, getZespanVercelTelemetry, init, initOTel, initZespan, injectAgentContext, injectAgentContext as injectAutoGenContext, instrumentADK, instrumentVercelAI, markFrameworkActive, markFrameworkInactive, startSpan, withAgent, withSpan, withZespan, withZespanContext, withZespanTrace, wrapADKAgent, wrapADKRunner, wrapAnthropic, wrapBedrock, wrapGoogle, wrapGroq, wrapLiteLLM, wrapMistral, wrapOpenAI, wrapOpenRouter, wrapZespanADKAgent, zespan };
|
|
571
|
+
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions, type OTelConfig, type Prompt, PromptClient, type PromptOptions, type ResolvedWrapperGuardrailsSettings, type WrapperGuardrailsOptions, type WrapperGuardrailsSettings, ZespanADKCallbackHandler, ZespanCallbackHandler, ZespanClient, type ZespanContextOptions, ZespanLlamaIndexHandler, attachTraceToAutoGenMessage, autopatch, createSpan, extractAgentContext, extractAgentContext as extractAutoGenContext, extractTraceFromAutoGenMessage, getCrewAIInstrumentationGuide, getPydanticAIConfig, getTracer, getZespanClient, getZespanVercelTelemetry, init, initOTel, initZespan, injectAgentContext, injectAgentContext as injectAutoGenContext, instrumentADK, instrumentVercelAI, markFrameworkActive, markFrameworkInactive, startSpan, withAgent, withSpan, withZespan, withZespanContext, withZespanTrace, wrapADKAgent, wrapADKRunner, wrapAnthropic, wrapBedrock, wrapGoogle, wrapGoogleGenAI, wrapGroq, wrapLiteLLM, wrapMistral, wrapOpenAI, wrapOpenRouter, wrapZespanADKAgent, zespan };
|