@zespan/sdk 1.1.0 → 1.2.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.
- package/dist/index.d.mts +6 -11
- package/dist/index.d.ts +6 -11
- package/dist/index.js +12 -11
- package/dist/index.mjs +12 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -272,9 +272,7 @@ declare class ZespanClient {
|
|
|
272
272
|
}
|
|
273
273
|
declare const initZespan: (o: ZespanOptions) => void;
|
|
274
274
|
declare const getZespanClient: () => ZespanClient;
|
|
275
|
-
|
|
276
275
|
declare const init: (o: ZespanOptions) => void;
|
|
277
|
-
declare const getLumiqClient: () => ZespanClient;
|
|
278
276
|
|
|
279
277
|
declare function wrapOpenAI<T extends any>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
280
278
|
|
|
@@ -333,7 +331,6 @@ declare class ZespanCallbackHandler extends BaseCallbackHandler {
|
|
|
333
331
|
handleRetrieverEnd(documents: any[], runId: string): Promise<void>;
|
|
334
332
|
handleRetrieverError(err: any, runId: string): Promise<void>;
|
|
335
333
|
}
|
|
336
|
-
declare const LumiqCallbackHandler: typeof ZespanCallbackHandler;
|
|
337
334
|
|
|
338
335
|
declare class ZespanADKCallbackHandler {
|
|
339
336
|
private agentStates;
|
|
@@ -398,9 +395,9 @@ declare function instrumentVercelAI(): {
|
|
|
398
395
|
tracer: Tracer;
|
|
399
396
|
telemetry: TelemetrySettings;
|
|
400
397
|
};
|
|
401
|
-
declare function
|
|
398
|
+
declare function getZespanVercelTelemetry(): TelemetrySettings;
|
|
402
399
|
|
|
403
|
-
declare class
|
|
400
|
+
declare class ZespanLlamaIndexHandler {
|
|
404
401
|
private runs;
|
|
405
402
|
private guardrailSettings;
|
|
406
403
|
constructor(options?: WrapperGuardrailsOptions);
|
|
@@ -447,8 +444,6 @@ interface ZespanContextOptions {
|
|
|
447
444
|
declare function withZespanContext<T>(options: ZespanContextOptions, fn: () => T | Promise<T>): T | Promise<T>;
|
|
448
445
|
declare function withZespanTrace<T>(fn: () => T | Promise<T>, options?: ZespanContextOptions): T | Promise<T>;
|
|
449
446
|
declare const withZespan: typeof withZespanTrace;
|
|
450
|
-
type LumiqContextOptions = ZespanContextOptions;
|
|
451
|
-
declare const withLumiqContext: typeof withZespanContext;
|
|
452
447
|
|
|
453
448
|
interface AgentOptions {
|
|
454
449
|
name: string;
|
|
@@ -516,7 +511,7 @@ declare function getCrewAIInstrumentationGuide(): string;
|
|
|
516
511
|
* Attach trace context to an AutoGen message payload.
|
|
517
512
|
*/
|
|
518
513
|
declare function attachTraceToAutoGenMessage<T extends Record<string, unknown>>(message: T, delegationReason?: string): T & {
|
|
519
|
-
|
|
514
|
+
_zespan_trace: Record<string, string>;
|
|
520
515
|
};
|
|
521
516
|
/**
|
|
522
517
|
* Extract trace context from an incoming AutoGen message.
|
|
@@ -565,8 +560,8 @@ declare const zespan: {
|
|
|
565
560
|
markFrameworkActive: typeof markFrameworkActive;
|
|
566
561
|
markFrameworkInactive: typeof markFrameworkInactive;
|
|
567
562
|
instrumentVercelAI: typeof instrumentVercelAI;
|
|
568
|
-
|
|
569
|
-
|
|
563
|
+
getZespanVercelTelemetry: typeof getZespanVercelTelemetry;
|
|
564
|
+
ZespanLlamaIndexHandler: typeof ZespanLlamaIndexHandler;
|
|
570
565
|
};
|
|
571
566
|
|
|
572
|
-
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -272,9 +272,7 @@ declare class ZespanClient {
|
|
|
272
272
|
}
|
|
273
273
|
declare const initZespan: (o: ZespanOptions) => void;
|
|
274
274
|
declare const getZespanClient: () => ZespanClient;
|
|
275
|
-
|
|
276
275
|
declare const init: (o: ZespanOptions) => void;
|
|
277
|
-
declare const getLumiqClient: () => ZespanClient;
|
|
278
276
|
|
|
279
277
|
declare function wrapOpenAI<T extends any>(client: T, options?: WrapperGuardrailsOptions): T;
|
|
280
278
|
|
|
@@ -333,7 +331,6 @@ declare class ZespanCallbackHandler extends BaseCallbackHandler {
|
|
|
333
331
|
handleRetrieverEnd(documents: any[], runId: string): Promise<void>;
|
|
334
332
|
handleRetrieverError(err: any, runId: string): Promise<void>;
|
|
335
333
|
}
|
|
336
|
-
declare const LumiqCallbackHandler: typeof ZespanCallbackHandler;
|
|
337
334
|
|
|
338
335
|
declare class ZespanADKCallbackHandler {
|
|
339
336
|
private agentStates;
|
|
@@ -398,9 +395,9 @@ declare function instrumentVercelAI(): {
|
|
|
398
395
|
tracer: Tracer;
|
|
399
396
|
telemetry: TelemetrySettings;
|
|
400
397
|
};
|
|
401
|
-
declare function
|
|
398
|
+
declare function getZespanVercelTelemetry(): TelemetrySettings;
|
|
402
399
|
|
|
403
|
-
declare class
|
|
400
|
+
declare class ZespanLlamaIndexHandler {
|
|
404
401
|
private runs;
|
|
405
402
|
private guardrailSettings;
|
|
406
403
|
constructor(options?: WrapperGuardrailsOptions);
|
|
@@ -447,8 +444,6 @@ interface ZespanContextOptions {
|
|
|
447
444
|
declare function withZespanContext<T>(options: ZespanContextOptions, fn: () => T | Promise<T>): T | Promise<T>;
|
|
448
445
|
declare function withZespanTrace<T>(fn: () => T | Promise<T>, options?: ZespanContextOptions): T | Promise<T>;
|
|
449
446
|
declare const withZespan: typeof withZespanTrace;
|
|
450
|
-
type LumiqContextOptions = ZespanContextOptions;
|
|
451
|
-
declare const withLumiqContext: typeof withZespanContext;
|
|
452
447
|
|
|
453
448
|
interface AgentOptions {
|
|
454
449
|
name: string;
|
|
@@ -516,7 +511,7 @@ declare function getCrewAIInstrumentationGuide(): string;
|
|
|
516
511
|
* Attach trace context to an AutoGen message payload.
|
|
517
512
|
*/
|
|
518
513
|
declare function attachTraceToAutoGenMessage<T extends Record<string, unknown>>(message: T, delegationReason?: string): T & {
|
|
519
|
-
|
|
514
|
+
_zespan_trace: Record<string, string>;
|
|
520
515
|
};
|
|
521
516
|
/**
|
|
522
517
|
* Extract trace context from an incoming AutoGen message.
|
|
@@ -565,8 +560,8 @@ declare const zespan: {
|
|
|
565
560
|
markFrameworkActive: typeof markFrameworkActive;
|
|
566
561
|
markFrameworkInactive: typeof markFrameworkInactive;
|
|
567
562
|
instrumentVercelAI: typeof instrumentVercelAI;
|
|
568
|
-
|
|
569
|
-
|
|
563
|
+
getZespanVercelTelemetry: typeof getZespanVercelTelemetry;
|
|
564
|
+
ZespanLlamaIndexHandler: typeof ZespanLlamaIndexHandler;
|
|
570
565
|
};
|
|
571
566
|
|
|
572
|
-
export { type ADKAgentOptions, type ADKRunnerOptions, AgentContext, type AgentOptions, BaggageSpanProcessor, CREWAI_OTEL_ENV, GuardrailBlockedError, type GuardrailCheckInput, type GuardrailCheckResponse, type GuardrailResult, type InstrumentADKOptions,
|
|
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 };
|