langsmith 0.3.62-rc.2 → 0.3.63

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/client.d.ts CHANGED
@@ -26,6 +26,10 @@ export interface ClientConfig {
26
26
  * Enable debug mode for the client. If set, all sent HTTP requests will be logged.
27
27
  */
28
28
  debug?: boolean;
29
+ /**
30
+ * Custom fetch implementation. Useful for testing.
31
+ */
32
+ fetchImplementation?: typeof fetch;
29
33
  }
30
34
  /**
31
35
  * Represents the parameters for listing runs (spans) from the Langsmith server.
@@ -286,7 +290,7 @@ export declare class AutoBatchQueue {
286
290
  push(item: AutoBatchQueueItem): Promise<void>;
287
291
  pop(upToSizeBytes: number): [AutoBatchQueueItem[], () => void];
288
292
  }
289
- export declare const DEFAULT_BATCH_SIZE_LIMIT_BYTES = 20971520;
293
+ export declare const DEFAULT_UNCOMPRESSED_BATCH_SIZE_LIMIT_BYTES: number;
290
294
  export declare class Client implements LangSmithTracingClientInterface {
291
295
  private apiKey?;
292
296
  private apiUrl;
@@ -312,6 +316,8 @@ export declare class Client implements LangSmithTracingClientInterface {
312
316
  private _getServerInfoPromise?;
313
317
  private manualFlushMode;
314
318
  private langSmithToOTELTranslator?;
319
+ private fetchImplementation?;
320
+ private get _fetch();
315
321
  private multipartStreamingDisabled;
316
322
  debug: boolean;
317
323
  constructor(config?: ClientConfig);