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.cjs +627 -424
- package/dist/client.d.ts +7 -1
- package/dist/client.js +626 -423
- package/dist/evaluation/evaluate_comparative.cjs +1 -0
- package/dist/evaluation/evaluate_comparative.d.ts +1 -0
- package/dist/evaluation/evaluate_comparative.js +1 -0
- package/dist/experimental/vercel/index.cjs +120 -21
- package/dist/experimental/vercel/index.d.ts +211 -1
- package/dist/experimental/vercel/index.js +119 -21
- package/dist/experimental/vercel/middleware.cjs +17 -8
- package/dist/experimental/vercel/middleware.d.ts +19 -2
- package/dist/experimental/vercel/middleware.js +17 -8
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/langchain.cjs +4 -0
- package/dist/langchain.d.ts +1 -0
- package/dist/langchain.js +4 -0
- package/dist/run_trees.cjs +17 -5
- package/dist/run_trees.d.ts +3 -1
- package/dist/run_trees.js +17 -5
- package/dist/singletons/fetch.cjs +5 -1
- package/dist/singletons/fetch.d.ts +1 -0
- package/dist/singletons/fetch.js +3 -0
- package/dist/traceable.cjs +24 -11
- package/dist/traceable.js +24 -11
- package/dist/utils/async_caller.cjs +15 -35
- package/dist/utils/async_caller.d.ts +0 -2
- package/dist/utils/async_caller.js +15 -35
- package/dist/utils/error.cjs +4 -4
- package/dist/utils/error.d.ts +1 -1
- package/dist/utils/error.js +4 -4
- package/package.json +2 -2
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
|
|
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);
|