@zespan/sdk 1.0.1 → 1.1.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 CHANGED
@@ -343,7 +343,7 @@ declare class ZespanADKCallbackHandler {
343
343
  private getParentAgentState;
344
344
  beforeAgentCallback: (context: any) => undefined;
345
345
  afterAgentCallback: (context: any) => undefined;
346
- beforeModelCallback: ({ context, request: _request }: any) => undefined;
346
+ beforeModelCallback: ({ context, request }: any) => undefined;
347
347
  afterModelCallback: ({ context, response }: any) => undefined;
348
348
  beforeToolCallback: ({ tool, args, context }: any) => undefined;
349
349
  afterToolCallback: ({ tool: _tool, args: _args, context, response }: any) => undefined;
@@ -351,7 +351,7 @@ declare class ZespanADKCallbackHandler {
351
351
  get callbacks(): {
352
352
  beforeAgentCallback: (context: any) => undefined;
353
353
  afterAgentCallback: (context: any) => undefined;
354
- beforeModelCallback: ({ context, request: _request }: any) => undefined;
354
+ beforeModelCallback: ({ context, request }: any) => undefined;
355
355
  afterModelCallback: ({ context, response }: any) => undefined;
356
356
  beforeToolCallback: ({ tool, args, context }: any) => undefined;
357
357
  afterToolCallback: ({ tool: _tool, args: _args, context, response }: any) => undefined;
@@ -506,30 +506,14 @@ declare function injectAgentContext(headers: Record<string, string>, delegationR
506
506
  */
507
507
  declare function extractAgentContext(headers: Record<string, string>): Context;
508
508
 
509
- /**
510
- * CrewAI context bridge for Zespan.
511
- *
512
- * Python-side: use openinference-instrumentation-crewai (PyPI).
513
- * When a CrewAI agent makes an HTTP call to a Node.js service,
514
- * the downstream service uses extractAgentContext() to continue the trace.
515
- *
516
- * Usage in the receiving Node.js service:
517
- * import { extractAgentContext } from '@zespan/sdk';
518
- * const ctx = extractAgentContext(req.headers);
519
- * const span = tracer.startSpan('invoke_agent SubAgent', undefined, ctx);
520
- */
521
509
  declare const CREWAI_OTEL_ENV: {
522
510
  readonly OTEL_EXPORTER_OTLP_ENDPOINT: "http://localhost:4318";
523
511
  readonly OTEL_SERVICE_NAME: "crewai-agent";
524
512
  };
525
- /**
526
- * Configuration guide for CrewAI Python instrumentation.
527
- */
528
513
  declare function getCrewAIInstrumentationGuide(): string;
529
514
 
530
515
  /**
531
516
  * Attach trace context to an AutoGen message payload.
532
- * Call before sending a message to another AutoGen agent over HTTP.
533
517
  */
534
518
  declare function attachTraceToAutoGenMessage<T extends Record<string, unknown>>(message: T, delegationReason?: string): T & {
535
519
  _lumiq_trace: Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -343,7 +343,7 @@ declare class ZespanADKCallbackHandler {
343
343
  private getParentAgentState;
344
344
  beforeAgentCallback: (context: any) => undefined;
345
345
  afterAgentCallback: (context: any) => undefined;
346
- beforeModelCallback: ({ context, request: _request }: any) => undefined;
346
+ beforeModelCallback: ({ context, request }: any) => undefined;
347
347
  afterModelCallback: ({ context, response }: any) => undefined;
348
348
  beforeToolCallback: ({ tool, args, context }: any) => undefined;
349
349
  afterToolCallback: ({ tool: _tool, args: _args, context, response }: any) => undefined;
@@ -351,7 +351,7 @@ declare class ZespanADKCallbackHandler {
351
351
  get callbacks(): {
352
352
  beforeAgentCallback: (context: any) => undefined;
353
353
  afterAgentCallback: (context: any) => undefined;
354
- beforeModelCallback: ({ context, request: _request }: any) => undefined;
354
+ beforeModelCallback: ({ context, request }: any) => undefined;
355
355
  afterModelCallback: ({ context, response }: any) => undefined;
356
356
  beforeToolCallback: ({ tool, args, context }: any) => undefined;
357
357
  afterToolCallback: ({ tool: _tool, args: _args, context, response }: any) => undefined;
@@ -506,30 +506,14 @@ declare function injectAgentContext(headers: Record<string, string>, delegationR
506
506
  */
507
507
  declare function extractAgentContext(headers: Record<string, string>): Context;
508
508
 
509
- /**
510
- * CrewAI context bridge for Zespan.
511
- *
512
- * Python-side: use openinference-instrumentation-crewai (PyPI).
513
- * When a CrewAI agent makes an HTTP call to a Node.js service,
514
- * the downstream service uses extractAgentContext() to continue the trace.
515
- *
516
- * Usage in the receiving Node.js service:
517
- * import { extractAgentContext } from '@zespan/sdk';
518
- * const ctx = extractAgentContext(req.headers);
519
- * const span = tracer.startSpan('invoke_agent SubAgent', undefined, ctx);
520
- */
521
509
  declare const CREWAI_OTEL_ENV: {
522
510
  readonly OTEL_EXPORTER_OTLP_ENDPOINT: "http://localhost:4318";
523
511
  readonly OTEL_SERVICE_NAME: "crewai-agent";
524
512
  };
525
- /**
526
- * Configuration guide for CrewAI Python instrumentation.
527
- */
528
513
  declare function getCrewAIInstrumentationGuide(): string;
529
514
 
530
515
  /**
531
516
  * Attach trace context to an AutoGen message payload.
532
- * Call before sending a message to another AutoGen agent over HTTP.
533
517
  */
534
518
  declare function attachTraceToAutoGenMessage<T extends Record<string, unknown>>(message: T, delegationReason?: string): T & {
535
519
  _lumiq_trace: Record<string, string>;