@langchain/classic 1.0.19 → 1.0.21
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/CHANGELOG.md +14 -0
- package/dist/agents/mrkl/outputParser.d.cts +1 -1
- package/dist/chat_models/universal.cjs +3 -3
- package/dist/chat_models/universal.cjs.map +1 -1
- package/dist/chat_models/universal.js +3 -3
- package/dist/chat_models/universal.js.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/client.d.cts +203 -3
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.cts.map +1 -0
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/client.d.ts +203 -3
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.ts.map +1 -0
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluator.d.cts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluator.d.cts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluator.d.ts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluator.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/run_trees.d.cts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/run_trees.d.cts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/run_trees.d.ts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/run_trees.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/schemas.d.cts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/schemas.d.cts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/schemas.d.ts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/schemas.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/traceable.d.cts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/traceable.d.cts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/traceable.d.ts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/traceable.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/types.d.cts +1 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/singletons/types.d.cts.map +1 -0
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/singletons/types.d.ts +1 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/singletons/types.d.ts.map +1 -0
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/async_caller.d.cts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/async_caller.d.cts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/async_caller.d.ts +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/async_caller.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/prompt_cache/index.d.cts +1 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/utils/prompt_cache/index.d.cts.map +1 -0
- package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/prompt_cache/index.d.ts +1 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/utils/prompt_cache/index.d.ts.map +1 -0
- package/dist/smith/config.d.cts +2 -2
- package/dist/smith/config.d.ts +2 -2
- package/dist/smith/runner_utils.d.cts +2 -2
- package/dist/smith/runner_utils.d.ts +2 -2
- package/package.json +21 -21
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/singletons/types.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/singletons/types.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/utils/prompt_cache/index.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/utils/prompt_cache/index.d.ts.map +0 -1
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/_runner.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/_runner.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluate_comparative.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/evaluate_comparative.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/index.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/index.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/string_evaluator.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/evaluation/string_evaluator.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/index.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/index.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/p-queue.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/dist/utils/p-queue.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/evaluation.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/evaluation.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/singletons/traceable.d.cts +0 -0
- /package/dist/node_modules/.pnpm/{langsmith@0.5.4_@opentelemetry_api@1.9.0_openai@5.23.2_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_ → langsmith@0.5.7_@opentelemetry_api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_}/node_modules/langsmith/singletons/traceable.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import { AsyncCallerParams } from "./utils/async_caller.cjs";
|
|
|
3
3
|
import { EvaluationResult, EvaluationResults } from "./evaluation/evaluator.cjs";
|
|
4
4
|
import { PromptCache } from "./utils/prompt_cache/index.cjs";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/langsmith@0.5.
|
|
6
|
+
//#region ../../node_modules/.pnpm/langsmith@0.5.7_@opentelemetry+api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.ts
|
|
7
7
|
interface ClientConfig {
|
|
8
8
|
apiUrl?: string;
|
|
9
9
|
apiKey?: string;
|
|
@@ -235,6 +235,24 @@ interface GroupRunsParams {
|
|
|
235
235
|
*/
|
|
236
236
|
offset?: number;
|
|
237
237
|
}
|
|
238
|
+
interface ReadThreadParams {
|
|
239
|
+
threadId: string;
|
|
240
|
+
projectId?: string;
|
|
241
|
+
projectName?: string;
|
|
242
|
+
isRoot?: boolean;
|
|
243
|
+
limit?: number;
|
|
244
|
+
filter?: string;
|
|
245
|
+
order?: "asc" | "desc";
|
|
246
|
+
}
|
|
247
|
+
interface ListThreadsParams {
|
|
248
|
+
projectId?: string;
|
|
249
|
+
projectName?: string;
|
|
250
|
+
limit?: number;
|
|
251
|
+
offset?: number;
|
|
252
|
+
filter?: string;
|
|
253
|
+
startTime?: Date;
|
|
254
|
+
isRoot?: boolean;
|
|
255
|
+
}
|
|
238
256
|
interface UploadCSVParams {
|
|
239
257
|
csvFile: Blob;
|
|
240
258
|
fileName: string;
|
|
@@ -300,11 +318,15 @@ type Thread = {
|
|
|
300
318
|
latency_p50: number;
|
|
301
319
|
latency_p99: number;
|
|
302
320
|
feedback_stats: any | null;
|
|
303
|
-
|
|
321
|
+
thread_id: string;
|
|
304
322
|
first_inputs: string;
|
|
305
323
|
last_outputs: string;
|
|
306
324
|
last_error: string | null;
|
|
307
325
|
};
|
|
326
|
+
/** Item returned by {@link Client.listThreads}. */
|
|
327
|
+
interface ListThreadsItem extends Thread {
|
|
328
|
+
runs: Run[];
|
|
329
|
+
}
|
|
308
330
|
declare class Client implements LangSmithTracingClientInterface {
|
|
309
331
|
private apiKey?;
|
|
310
332
|
private apiUrl;
|
|
@@ -340,6 +362,9 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
340
362
|
private multipartStreamingDisabled;
|
|
341
363
|
private _multipartDisabled;
|
|
342
364
|
private _runCompressionDisabled;
|
|
365
|
+
private failedTracesDir;
|
|
366
|
+
private failedTracesMaxBytes;
|
|
367
|
+
private static _fallbackDirsCreated;
|
|
343
368
|
debug: boolean;
|
|
344
369
|
constructor(config?: ClientConfig);
|
|
345
370
|
static getDefaultClientConfig(): {
|
|
@@ -368,6 +393,19 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
368
393
|
private _getBatchSizeLimit;
|
|
369
394
|
private _getDatasetExamplesMultiPartSupport;
|
|
370
395
|
private drainAutoBatchQueue;
|
|
396
|
+
/**
|
|
397
|
+
* Persist a failed trace payload to a local fallback directory.
|
|
398
|
+
*
|
|
399
|
+
* Saves a self-contained JSON file containing the endpoint path, the HTTP
|
|
400
|
+
* headers required for replay, and the base64-encoded request body.
|
|
401
|
+
* Can be replayed later with a simple POST:
|
|
402
|
+
*
|
|
403
|
+
* POST /<endpoint>
|
|
404
|
+
* Content-Type: <value from saved headers>
|
|
405
|
+
* [Content-Encoding: <value from saved headers>]
|
|
406
|
+
* <decoded body>
|
|
407
|
+
*/
|
|
408
|
+
private static _writeTraceToFallbackDir;
|
|
371
409
|
private _processBatch;
|
|
372
410
|
private _sendBatchToOTELTranslator;
|
|
373
411
|
private processRunOperation;
|
|
@@ -523,6 +561,8 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
523
561
|
*/
|
|
524
562
|
listRuns(props: ListRunsParams): AsyncIterable<Run>;
|
|
525
563
|
listGroupRuns(props: GroupRunsParams): AsyncIterable<Thread>;
|
|
564
|
+
readThread(props: ReadThreadParams): AsyncIterable<Run>;
|
|
565
|
+
listThreads(props: ListThreadsParams): Promise<ListThreadsItem[]>;
|
|
526
566
|
getRunStats({
|
|
527
567
|
id,
|
|
528
568
|
trace,
|
|
@@ -1169,23 +1209,183 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
1169
1209
|
protected _getLatestCommitHash(promptOwnerAndName: string): Promise<string | undefined>;
|
|
1170
1210
|
protected _likeOrUnlikePrompt(promptIdentifier: string, like: boolean): Promise<LikePromptResponse>;
|
|
1171
1211
|
protected _getPromptUrl(promptIdentifier: string): Promise<string>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Check if a prompt exists.
|
|
1214
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1215
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1216
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1217
|
+
* @returns A Promise that resolves to true if the prompt exists, false otherwise
|
|
1218
|
+
* @example
|
|
1219
|
+
* ```typescript
|
|
1220
|
+
* // Check if a prompt exists before creating a commit
|
|
1221
|
+
* if (await client.promptExists("my-prompt")) {
|
|
1222
|
+
* await client.createCommit("my-prompt", template);
|
|
1223
|
+
* } else {
|
|
1224
|
+
* await client.createPrompt("my-prompt");
|
|
1225
|
+
* }
|
|
1226
|
+
* ```
|
|
1227
|
+
*/
|
|
1172
1228
|
promptExists(promptIdentifier: string): Promise<boolean>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Like a prompt.
|
|
1231
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1232
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1233
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1234
|
+
* @returns A Promise that resolves to the like response containing the updated like count
|
|
1235
|
+
* @example
|
|
1236
|
+
* ```typescript
|
|
1237
|
+
* // Like a prompt
|
|
1238
|
+
* const response = await client.likePrompt("owner/useful-prompt");
|
|
1239
|
+
* console.log(`Prompt now has ${response.likes} likes`);
|
|
1240
|
+
* ```
|
|
1241
|
+
*/
|
|
1173
1242
|
likePrompt(promptIdentifier: string): Promise<LikePromptResponse>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Unlike a prompt (remove a previously added like).
|
|
1245
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1246
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1247
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1248
|
+
* @returns A Promise that resolves to the like response containing the updated like count
|
|
1249
|
+
* @example
|
|
1250
|
+
* ```typescript
|
|
1251
|
+
* // Unlike a prompt
|
|
1252
|
+
* const response = await client.unlikePrompt("owner/useful-prompt");
|
|
1253
|
+
* console.log(`Prompt now has ${response.likes} likes`);
|
|
1254
|
+
* ```
|
|
1255
|
+
*/
|
|
1174
1256
|
unlikePrompt(promptIdentifier: string): Promise<LikePromptResponse>;
|
|
1175
|
-
|
|
1257
|
+
/**
|
|
1258
|
+
* List all commits for a prompt.
|
|
1259
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1260
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1261
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1262
|
+
* - "promptName:commitHash" (commit hash is ignored, all commits are returned)
|
|
1263
|
+
* @returns An async iterable iterator of PromptCommit objects
|
|
1264
|
+
* @example
|
|
1265
|
+
* ```typescript
|
|
1266
|
+
* // List commits for a private prompt
|
|
1267
|
+
* for await (const commit of client.listCommits("my-prompt")) {
|
|
1268
|
+
* console.log(commit);
|
|
1269
|
+
* }
|
|
1270
|
+
*
|
|
1271
|
+
* // List commits for a prompt with explicit owner
|
|
1272
|
+
* for await (const commit of client.listCommits("owner/my-prompt")) {
|
|
1273
|
+
* console.log(commit);
|
|
1274
|
+
* }
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
listCommits(promptIdentifier: string): AsyncIterableIterator<PromptCommit>;
|
|
1278
|
+
/**
|
|
1279
|
+
* List prompts by filter.
|
|
1280
|
+
* @param options - Optional filters for listing prompts
|
|
1281
|
+
* @param options.isPublic - Filter by public/private prompts. If undefined, returns all prompts.
|
|
1282
|
+
* @param options.isArchived - Filter by archived status. Defaults to false (non-archived prompts only).
|
|
1283
|
+
* @param options.sortField - Field to sort by. Defaults to "updated_at".
|
|
1284
|
+
* @param options.query - Search query to filter prompts by name or description.
|
|
1285
|
+
* @returns An async iterable iterator of Prompt objects
|
|
1286
|
+
* @example
|
|
1287
|
+
* ```typescript
|
|
1288
|
+
* // List all prompts
|
|
1289
|
+
* for await (const prompt of client.listPrompts()) {
|
|
1290
|
+
* console.log(prompt);
|
|
1291
|
+
* }
|
|
1292
|
+
*
|
|
1293
|
+
* // List only public prompts
|
|
1294
|
+
* for await (const prompt of client.listPrompts({ isPublic: true })) {
|
|
1295
|
+
* console.log(prompt);
|
|
1296
|
+
* }
|
|
1297
|
+
*
|
|
1298
|
+
* // Search for prompts
|
|
1299
|
+
* for await (const prompt of client.listPrompts({ query: "translation" })) {
|
|
1300
|
+
* console.log(prompt);
|
|
1301
|
+
* }
|
|
1302
|
+
* ```
|
|
1303
|
+
*/
|
|
1176
1304
|
listPrompts(options?: {
|
|
1177
1305
|
isPublic?: boolean;
|
|
1178
1306
|
isArchived?: boolean;
|
|
1179
1307
|
sortField?: PromptSortField;
|
|
1180
1308
|
query?: string;
|
|
1181
1309
|
}): AsyncIterableIterator<Prompt>;
|
|
1310
|
+
/**
|
|
1311
|
+
* Get a prompt by its identifier.
|
|
1312
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1313
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1314
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1315
|
+
* - "promptName:commitHash" (commit hash is ignored, latest version is returned)
|
|
1316
|
+
* @returns A Promise that resolves to the Prompt object, or null if not found
|
|
1317
|
+
* @example
|
|
1318
|
+
* ```typescript
|
|
1319
|
+
* // Get a private prompt
|
|
1320
|
+
* const prompt = await client.getPrompt("my-prompt");
|
|
1321
|
+
*
|
|
1322
|
+
* // Get a public prompt
|
|
1323
|
+
* const publicPrompt = await client.getPrompt("owner/public-prompt");
|
|
1324
|
+
* ```
|
|
1325
|
+
*/
|
|
1182
1326
|
getPrompt(promptIdentifier: string): Promise<Prompt | null>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Create a new prompt.
|
|
1329
|
+
* @param promptIdentifier - The identifier for the new prompt. Can be in the format:
|
|
1330
|
+
* - "promptName" (creates a private prompt)
|
|
1331
|
+
* - "owner/promptName" (creates a prompt under a specific owner, must match your tenant)
|
|
1332
|
+
* @param options - Optional configuration for the prompt
|
|
1333
|
+
* @param options.description - A description of the prompt
|
|
1334
|
+
* @param options.readme - Markdown content for the prompt's README
|
|
1335
|
+
* @param options.tags - Array of tags to categorize the prompt
|
|
1336
|
+
* @param options.isPublic - Whether the prompt should be public. Requires a LangChain Hub handle.
|
|
1337
|
+
* @returns A Promise that resolves to the created Prompt object
|
|
1338
|
+
* @throws {Error} If creating a public prompt without a LangChain Hub handle, or if owner doesn't match current tenant
|
|
1339
|
+
* @example
|
|
1340
|
+
* ```typescript
|
|
1341
|
+
* // Create a private prompt
|
|
1342
|
+
* const prompt = await client.createPrompt("my-new-prompt", {
|
|
1343
|
+
* description: "A prompt for translations",
|
|
1344
|
+
* tags: ["translation", "language"]
|
|
1345
|
+
* });
|
|
1346
|
+
*
|
|
1347
|
+
* // Create a public prompt
|
|
1348
|
+
* const publicPrompt = await client.createPrompt("my-public-prompt", {
|
|
1349
|
+
* description: "A public translation prompt",
|
|
1350
|
+
* isPublic: true
|
|
1351
|
+
* });
|
|
1352
|
+
* ```
|
|
1353
|
+
*/
|
|
1183
1354
|
createPrompt(promptIdentifier: string, options?: {
|
|
1184
1355
|
description?: string;
|
|
1185
1356
|
readme?: string;
|
|
1186
1357
|
tags?: string[];
|
|
1187
1358
|
isPublic?: boolean;
|
|
1188
1359
|
}): Promise<Prompt>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Create a new commit for an existing prompt.
|
|
1362
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1363
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1364
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1365
|
+
* @param object - The prompt object/manifest to commit (e.g., ChatPromptTemplate, messages array, etc.)
|
|
1366
|
+
* @param options - Optional configuration for the commit
|
|
1367
|
+
* @param options.parentCommitHash - The parent commit hash. Defaults to "latest" (the most recent commit).
|
|
1368
|
+
* @returns A Promise that resolves to the URL of the newly created commit
|
|
1369
|
+
* @throws {Error} If the prompt does not exist
|
|
1370
|
+
* @example
|
|
1371
|
+
* ```typescript
|
|
1372
|
+
* import { ChatPromptTemplate } from "@langchain/core/prompts";
|
|
1373
|
+
*
|
|
1374
|
+
* // Create a commit with a new version of the prompt
|
|
1375
|
+
* const template = ChatPromptTemplate.fromMessages([
|
|
1376
|
+
* ["system", "You are a helpful assistant."],
|
|
1377
|
+
* ["human", "{input}"]
|
|
1378
|
+
* ]);
|
|
1379
|
+
*
|
|
1380
|
+
* const commitUrl = await client.createCommit("my-prompt", template);
|
|
1381
|
+
* console.log(`Commit created: ${commitUrl}`);
|
|
1382
|
+
*
|
|
1383
|
+
* // Create a commit based on a specific parent commit
|
|
1384
|
+
* const commitUrl2 = await client.createCommit("my-prompt", template, {
|
|
1385
|
+
* parentCommitHash: "abc123def456"
|
|
1386
|
+
* });
|
|
1387
|
+
* ```
|
|
1388
|
+
*/
|
|
1189
1389
|
createCommit(promptIdentifier: string, object: any, options?: {
|
|
1190
1390
|
parentCommitHash?: string;
|
|
1191
1391
|
}): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.cts","names":["OTELContext","AsyncCallerParams","ComparativeExperiment","DataType","Dataset","DatasetDiffInfo","DatasetShareSchema","Example","ExampleCreate","ExampleUpdate","ExampleUpdateWithoutId","Feedback","FeedbackConfig","FeedbackIngestToken","KVMap","LangChainBaseMessage","LangSmithSettings","LikePromptResponse","Prompt","PromptCommit","PromptSortField","Run","RunCreate","RunUpdate","ScoreType","ExampleSearch","TimeDelta","TracerSession","TracerSessionResult","ValueType","AnnotationQueue","RunWithAnnotationQueueInfo","Attachments","UploadExamplesResponse","UpdateExamplesResponse","DatasetVersion","AnnotationQueueWithDetails","AnnotationQueueRubricItem","FeedbackConfigSchema","EvaluationResult","EvaluationResults","PromptCache","ClientConfig","Promise","RequestInit","fetch","apiUrl","apiKey","callerOptions","timeout_ms","webUrl","anonymizer","values","hideInputs","inputs","hideOutputs","outputs","omitTracedRuntimeInfo","autoBatchTracing","batchSizeBytesLimit","batchSizeLimit","maxIngestMemoryBytes","blockOnRootRunFinalization","traceBatchConcurrency","fetchOptions","manualFlushMode","tracingSamplingRate","debug","workspaceId","fetchImplementation","disablePromptCache","cache","ListRunsParams","Date","projectId","projectName","traceId","isRoot","executionOrder","parentRunId","order","referenceExampleId","startTime","runType","error","id","limit","query","filter","traceFilter","treeFilter","select","GroupRunsParams","groupBy","endTime","offset","ReadThreadParams","threadId","ListThreadsParams","UploadCSVParams","Blob","csvFile","fileName","inputKeys","outputKeys","description","dataType","name","CreateRunParams","run_type","start_time","end_time","extra","serialized","reference_example_id","child_runs","parent_run_id","project_name","revision_id","trace_id","dotted_order","attachments","ProjectOptions","RecordStringAny","Record","FeedbackSourceType","CreateExampleOptions","datasetId","datasetName","createdAt","exampleId","metadata","split","sourceRunId","useSourceRunIO","useSourceRunAttachments","CreateProjectParams","upsert","projectExtra","referenceDatasetId","AutoBatchQueueItem","action","item","otelContext","size","Thread","count","total_tokens","total_cost","min_start_time","max_start_time","latency_p50","latency_p99","feedback_stats","thread_id","first_inputs","last_outputs","last_error","ListThreadsItem","runs","mergeRuntimeEnvIntoRun","T","run","cachedEnvVars","DEFAULT_UNCOMPRESSED_BATCH_SIZE_LIMIT_BYTES","DEFAULT_MAX_SIZE_BYTES","AutoBatchQueue","upToSizeBytes","upToSize","items","payload","itemPromiseResolve","itemPromise","sizeBytes","maxSizeBytes","constructor","peek","push","pop","Client","runCreates","runUpdates","loadChildRuns","runId","projectOpts","AsyncIterable","trace","parentRun","projectNames","projectIds","referenceExampleIds","dataSourceType","shareId","runIds","includeStats","nameContains","referenceDatasetName","datasetVersion","referenceFree","inputsSchema","outputsSchema","fromVersion","toVersion","datasetIds","datasetNameContains","tag","Array","exampleIds","asOf","splits","inlineS3Urls","includeAttachments","splitName","remove","score","value","correction","comment","sourceInfo","feedbackSourceType","feedbackId","feedbackConfig","comparativeExperimentId","sessionId","feedbackKeys","feedbackSourceTypes","expiration","experimentIds","AsyncIterableIterator","Error","LangSmithTracingClientInterface","caller","batchIngestCaller","_tenantId","tracingSampleRate","filteredPostUuids","autoBatchQueue","autoBatchTimeout","autoBatchAggregationDelayMs","settings","_serverInfo","_getServerInfoPromise","langSmithToOTELTranslator","cachedLSEnvVarsForMetadata","_promptCache","_fetch","multipartStreamingDisabled","_multipartDisabled","_runCompressionDisabled","failedTracesDir","failedTracesMaxBytes","_fallbackDirsCreated","config","getDefaultClientConfig","getHostUrl","headers","_getPlatformEndpointPath","processInputs","processOutputs","prepareRunCreateOrUpdateInputs","_getResponse","_get","_getPaginated","_getCursorPaginatedList","_shouldSample","_filterForSampling","_getBatchSizeLimitBytes","_getBatchSizeLimit","_getDatasetExamplesMultiPartSupport","drainAutoBatchQueue","_writeTraceToFallbackDir","_processBatch","_sendBatchToOTELTranslator","processRunOperation","_getServerInfo","_ensureServerInfo","_getSettings","flush","_cloneCurrentOTELContext","createRun","options","batchIngestRuns","_postBatchIngestRuns","multipartIngestRuns","useGzip","_createNodeFetchBody","_createMultipartStream","_sendMultipartRequest","updateRun","readRun","getRunUrl","_loadChildRuns","listRuns","props","listGroupRuns","readThread","listThreads","getRunStats","shareRun","unshareRun","readRunSharedLink","listSharedRuns","shareToken","readDatasetSharedSchema","shareDataset","unshareDataset","readSharedDataset","listSharedExamples","createProject","updateProject","hasProject","readProject","getProjectUrl","getDatasetUrl","_getTenantId","listProjects","deleteProject","uploadCsv","createDataset","readDataset","hasDataset","diffDatasetVersions","readDatasetOpenaiFinetuning","listDatasets","updateDataset","updateDatasetTag","deleteDataset","indexDataset","similarExamples","createExample","update","createExamples","uploads","sourceRunIds","useSourceRunIOs","createLLMExample","input","generation","createChatExample","generations","readExample","listExamples","deleteExample","deleteExamples","hardDelete","updateExample","updateExamples","readDatasetVersion","listDatasetSplits","updateDatasetSplits","createFeedback","key","eager","updateFeedback","readFeedback","deleteFeedback","listFeedback","createPresignedFeedbackToken","feedbackKey","createComparativeExperiment","listPresignedFeedbackTokens","_selectEvalResults","results","_logEvaluationFeedback","evaluatorResponse","feedbacks","logEvaluationFeedback","createFeedbackConfig","isLowerScoreBetter","listFeedbackConfigs","updateFeedbackConfig","deleteFeedbackConfig","listAnnotationQueues","queueIds","createAnnotationQueue","queueId","rubricInstructions","rubricItems","readAnnotationQueue","updateAnnotationQueue","deleteAnnotationQueue","addRunsToAnnotationQueue","getRunFromAnnotationQueue","index","deleteRunFromAnnotationQueue","queueRunId","getSizeFromAnnotationQueue","_currentTenantIsOwner","owner","_ownerConflictError","_getLatestCommitHash","promptOwnerAndName","_likeOrUnlikePrompt","promptIdentifier","like","_getPromptUrl","promptExists","likePrompt","unlikePrompt","listCommits","listPrompts","isPublic","isArchived","sortField","getPrompt","createPrompt","readme","tags","createCommit","object","parentCommitHash","updateExamplesMultipart","updates","_updateExamplesMultipart","uploadExamplesMultipart","_uploadExamplesMultipart","updatePrompt","deletePrompt","_getPromptCacheKey","_fetchPromptFromApi","pullPromptCommit","includeModel","skipCache","_pullPrompt","pushPrompt","clonePublicDataset","tokenOrUrl","sourceApiUrl","parseTokenOrUrl","cleanup","awaitPendingTraceBatches"],"sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.7_@opentelemetry+api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;UAKiB0C,YAAAA;EACbI,MAAAA;EACAC,MAAAA;EACAC,aAAAA,GAAgB/C,iBAAAA;EAChBgD,UAAAA;EACAC,MAAAA;EACAC,UAAAA,IAAcC,MAAAA,EAAQtC,KAAAA,KAAUA,KAAAA,GAAQ6B,OAAAA,CAAQ7B,KAAAA;EAChDuC,UAAAA,eAAyBC,MAAAA,EAAQxC,KAAAA,KAAUA,KAAAA,GAAQ6B,OAAAA,CAAQ7B,KAAAA;EAC3DyC,WAAAA,eAA0BC,OAAAA,EAAS1C,KAAAA,KAAUA,KAAAA,GAAQ6B,OAAAA,CAAQ7B,KAAAA;EAD5BA;;;;;;EAQjC2C,qBAAAA;EACAC,gBAAAA;EAYed;EAVfe,mBAAAA;EA8DkBlB;EA5DlBmB,cAAAA;EA4D6B;;;;EAvD7BC,oBAAAA;EACAC,0BAAAA;EACAC,qBAAAA;EACAC,YAAAA,GAAepB,WAAAA;EAtBO9B;;;;EA2BtBmD,eAAAA;EACAC,mBAAAA;EA3BiCpD;;;EA+BjCqD,KAAAA;EA/B2DrD;;;EAmC3DsD,WAAAA;EAlC6CtD;;;EAsC7CuD,mBAAAA,UAA6BxB,KAAAA;EA9B7Ba;;;;EAmCAY,kBAAAA;EAxBAP;;;;;;;;;;;;;;AAsDH;;;;;;;;;;;;;;EADGQ,KAAAA,aAAkB9B,WAAAA;AAAAA;;;;UAKZ+B,cA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A;EAzdRsK;;;;;EA+dJ8O,WAAAA,CAAY9B,gBAAAA,UAA0BjH,OAAAA;IAClC6I,YAAAA;IACAC,SAAAA;EAAAA,IACA3X,OAAAA;EACJ6X,UAAAA,CAAW/B,gBAAAA,UAA0BjH,OAAAA;IACjCiI,MAAAA;IACAC,gBAAAA;IACAT,QAAAA;IACAxS,WAAAA;IACA6S,MAAAA;IACAC,IAAAA;EAAAA,IACA5W,OAAAA;EA3dU+R;;;;;;;;;;EAued+F,kBAAAA,CAAmBC,UAAAA,UAAoBlJ,OAAAA;IACnCmJ,YAAAA;IACA3S,WAAAA;EAAAA,IACArF,OAAAA;EAAAA,QACIiY,eAAAA;EA3dJ5S;;;;EAgeJ6S,OAAAA,CAAAA;EA7dY1Y;;;;;;;;;;;;;;;;;;;;;EAmfZ2Y,wBAAAA,CAAAA,GAA4BnY,OAAAA;AAAAA;AAAAA,UAEf2L,+BAAAA;EACbiD,SAAAA,GAAYrH,GAAAA,EAAKtD,eAAAA,KAAoBjE,OAAAA;EACrCqP,SAAAA,GAAYzG,KAAAA,UAAerB,GAAAA,EAAK3I,SAAAA,KAAcoB,OAAAA;AAAAA"}
|
|
@@ -3,7 +3,7 @@ import { AsyncCallerParams } from "./utils/async_caller.js";
|
|
|
3
3
|
import { EvaluationResult, EvaluationResults } from "./evaluation/evaluator.js";
|
|
4
4
|
import { PromptCache } from "./utils/prompt_cache/index.js";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/langsmith@0.5.
|
|
6
|
+
//#region ../../node_modules/.pnpm/langsmith@0.5.7_@opentelemetry+api@1.9.0_openai@6.25.0_ws@8.19.0_bufferutil@4.1.0__zod@4.3.6_/node_modules/langsmith/dist/client.d.ts
|
|
7
7
|
interface ClientConfig {
|
|
8
8
|
apiUrl?: string;
|
|
9
9
|
apiKey?: string;
|
|
@@ -235,6 +235,24 @@ interface GroupRunsParams {
|
|
|
235
235
|
*/
|
|
236
236
|
offset?: number;
|
|
237
237
|
}
|
|
238
|
+
interface ReadThreadParams {
|
|
239
|
+
threadId: string;
|
|
240
|
+
projectId?: string;
|
|
241
|
+
projectName?: string;
|
|
242
|
+
isRoot?: boolean;
|
|
243
|
+
limit?: number;
|
|
244
|
+
filter?: string;
|
|
245
|
+
order?: "asc" | "desc";
|
|
246
|
+
}
|
|
247
|
+
interface ListThreadsParams {
|
|
248
|
+
projectId?: string;
|
|
249
|
+
projectName?: string;
|
|
250
|
+
limit?: number;
|
|
251
|
+
offset?: number;
|
|
252
|
+
filter?: string;
|
|
253
|
+
startTime?: Date;
|
|
254
|
+
isRoot?: boolean;
|
|
255
|
+
}
|
|
238
256
|
interface UploadCSVParams {
|
|
239
257
|
csvFile: Blob;
|
|
240
258
|
fileName: string;
|
|
@@ -300,11 +318,15 @@ type Thread = {
|
|
|
300
318
|
latency_p50: number;
|
|
301
319
|
latency_p99: number;
|
|
302
320
|
feedback_stats: any | null;
|
|
303
|
-
|
|
321
|
+
thread_id: string;
|
|
304
322
|
first_inputs: string;
|
|
305
323
|
last_outputs: string;
|
|
306
324
|
last_error: string | null;
|
|
307
325
|
};
|
|
326
|
+
/** Item returned by {@link Client.listThreads}. */
|
|
327
|
+
interface ListThreadsItem extends Thread {
|
|
328
|
+
runs: Run[];
|
|
329
|
+
}
|
|
308
330
|
declare class Client implements LangSmithTracingClientInterface {
|
|
309
331
|
private apiKey?;
|
|
310
332
|
private apiUrl;
|
|
@@ -340,6 +362,9 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
340
362
|
private multipartStreamingDisabled;
|
|
341
363
|
private _multipartDisabled;
|
|
342
364
|
private _runCompressionDisabled;
|
|
365
|
+
private failedTracesDir;
|
|
366
|
+
private failedTracesMaxBytes;
|
|
367
|
+
private static _fallbackDirsCreated;
|
|
343
368
|
debug: boolean;
|
|
344
369
|
constructor(config?: ClientConfig);
|
|
345
370
|
static getDefaultClientConfig(): {
|
|
@@ -368,6 +393,19 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
368
393
|
private _getBatchSizeLimit;
|
|
369
394
|
private _getDatasetExamplesMultiPartSupport;
|
|
370
395
|
private drainAutoBatchQueue;
|
|
396
|
+
/**
|
|
397
|
+
* Persist a failed trace payload to a local fallback directory.
|
|
398
|
+
*
|
|
399
|
+
* Saves a self-contained JSON file containing the endpoint path, the HTTP
|
|
400
|
+
* headers required for replay, and the base64-encoded request body.
|
|
401
|
+
* Can be replayed later with a simple POST:
|
|
402
|
+
*
|
|
403
|
+
* POST /<endpoint>
|
|
404
|
+
* Content-Type: <value from saved headers>
|
|
405
|
+
* [Content-Encoding: <value from saved headers>]
|
|
406
|
+
* <decoded body>
|
|
407
|
+
*/
|
|
408
|
+
private static _writeTraceToFallbackDir;
|
|
371
409
|
private _processBatch;
|
|
372
410
|
private _sendBatchToOTELTranslator;
|
|
373
411
|
private processRunOperation;
|
|
@@ -523,6 +561,8 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
523
561
|
*/
|
|
524
562
|
listRuns(props: ListRunsParams): AsyncIterable<Run>;
|
|
525
563
|
listGroupRuns(props: GroupRunsParams): AsyncIterable<Thread>;
|
|
564
|
+
readThread(props: ReadThreadParams): AsyncIterable<Run>;
|
|
565
|
+
listThreads(props: ListThreadsParams): Promise<ListThreadsItem[]>;
|
|
526
566
|
getRunStats({
|
|
527
567
|
id,
|
|
528
568
|
trace,
|
|
@@ -1169,23 +1209,183 @@ declare class Client implements LangSmithTracingClientInterface {
|
|
|
1169
1209
|
protected _getLatestCommitHash(promptOwnerAndName: string): Promise<string | undefined>;
|
|
1170
1210
|
protected _likeOrUnlikePrompt(promptIdentifier: string, like: boolean): Promise<LikePromptResponse>;
|
|
1171
1211
|
protected _getPromptUrl(promptIdentifier: string): Promise<string>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Check if a prompt exists.
|
|
1214
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1215
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1216
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1217
|
+
* @returns A Promise that resolves to true if the prompt exists, false otherwise
|
|
1218
|
+
* @example
|
|
1219
|
+
* ```typescript
|
|
1220
|
+
* // Check if a prompt exists before creating a commit
|
|
1221
|
+
* if (await client.promptExists("my-prompt")) {
|
|
1222
|
+
* await client.createCommit("my-prompt", template);
|
|
1223
|
+
* } else {
|
|
1224
|
+
* await client.createPrompt("my-prompt");
|
|
1225
|
+
* }
|
|
1226
|
+
* ```
|
|
1227
|
+
*/
|
|
1172
1228
|
promptExists(promptIdentifier: string): Promise<boolean>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Like a prompt.
|
|
1231
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1232
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1233
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1234
|
+
* @returns A Promise that resolves to the like response containing the updated like count
|
|
1235
|
+
* @example
|
|
1236
|
+
* ```typescript
|
|
1237
|
+
* // Like a prompt
|
|
1238
|
+
* const response = await client.likePrompt("owner/useful-prompt");
|
|
1239
|
+
* console.log(`Prompt now has ${response.likes} likes`);
|
|
1240
|
+
* ```
|
|
1241
|
+
*/
|
|
1173
1242
|
likePrompt(promptIdentifier: string): Promise<LikePromptResponse>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Unlike a prompt (remove a previously added like).
|
|
1245
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1246
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1247
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1248
|
+
* @returns A Promise that resolves to the like response containing the updated like count
|
|
1249
|
+
* @example
|
|
1250
|
+
* ```typescript
|
|
1251
|
+
* // Unlike a prompt
|
|
1252
|
+
* const response = await client.unlikePrompt("owner/useful-prompt");
|
|
1253
|
+
* console.log(`Prompt now has ${response.likes} likes`);
|
|
1254
|
+
* ```
|
|
1255
|
+
*/
|
|
1174
1256
|
unlikePrompt(promptIdentifier: string): Promise<LikePromptResponse>;
|
|
1175
|
-
|
|
1257
|
+
/**
|
|
1258
|
+
* List all commits for a prompt.
|
|
1259
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1260
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1261
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1262
|
+
* - "promptName:commitHash" (commit hash is ignored, all commits are returned)
|
|
1263
|
+
* @returns An async iterable iterator of PromptCommit objects
|
|
1264
|
+
* @example
|
|
1265
|
+
* ```typescript
|
|
1266
|
+
* // List commits for a private prompt
|
|
1267
|
+
* for await (const commit of client.listCommits("my-prompt")) {
|
|
1268
|
+
* console.log(commit);
|
|
1269
|
+
* }
|
|
1270
|
+
*
|
|
1271
|
+
* // List commits for a prompt with explicit owner
|
|
1272
|
+
* for await (const commit of client.listCommits("owner/my-prompt")) {
|
|
1273
|
+
* console.log(commit);
|
|
1274
|
+
* }
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
listCommits(promptIdentifier: string): AsyncIterableIterator<PromptCommit>;
|
|
1278
|
+
/**
|
|
1279
|
+
* List prompts by filter.
|
|
1280
|
+
* @param options - Optional filters for listing prompts
|
|
1281
|
+
* @param options.isPublic - Filter by public/private prompts. If undefined, returns all prompts.
|
|
1282
|
+
* @param options.isArchived - Filter by archived status. Defaults to false (non-archived prompts only).
|
|
1283
|
+
* @param options.sortField - Field to sort by. Defaults to "updated_at".
|
|
1284
|
+
* @param options.query - Search query to filter prompts by name or description.
|
|
1285
|
+
* @returns An async iterable iterator of Prompt objects
|
|
1286
|
+
* @example
|
|
1287
|
+
* ```typescript
|
|
1288
|
+
* // List all prompts
|
|
1289
|
+
* for await (const prompt of client.listPrompts()) {
|
|
1290
|
+
* console.log(prompt);
|
|
1291
|
+
* }
|
|
1292
|
+
*
|
|
1293
|
+
* // List only public prompts
|
|
1294
|
+
* for await (const prompt of client.listPrompts({ isPublic: true })) {
|
|
1295
|
+
* console.log(prompt);
|
|
1296
|
+
* }
|
|
1297
|
+
*
|
|
1298
|
+
* // Search for prompts
|
|
1299
|
+
* for await (const prompt of client.listPrompts({ query: "translation" })) {
|
|
1300
|
+
* console.log(prompt);
|
|
1301
|
+
* }
|
|
1302
|
+
* ```
|
|
1303
|
+
*/
|
|
1176
1304
|
listPrompts(options?: {
|
|
1177
1305
|
isPublic?: boolean;
|
|
1178
1306
|
isArchived?: boolean;
|
|
1179
1307
|
sortField?: PromptSortField;
|
|
1180
1308
|
query?: string;
|
|
1181
1309
|
}): AsyncIterableIterator<Prompt>;
|
|
1310
|
+
/**
|
|
1311
|
+
* Get a prompt by its identifier.
|
|
1312
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1313
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1314
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1315
|
+
* - "promptName:commitHash" (commit hash is ignored, latest version is returned)
|
|
1316
|
+
* @returns A Promise that resolves to the Prompt object, or null if not found
|
|
1317
|
+
* @example
|
|
1318
|
+
* ```typescript
|
|
1319
|
+
* // Get a private prompt
|
|
1320
|
+
* const prompt = await client.getPrompt("my-prompt");
|
|
1321
|
+
*
|
|
1322
|
+
* // Get a public prompt
|
|
1323
|
+
* const publicPrompt = await client.getPrompt("owner/public-prompt");
|
|
1324
|
+
* ```
|
|
1325
|
+
*/
|
|
1182
1326
|
getPrompt(promptIdentifier: string): Promise<Prompt | null>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Create a new prompt.
|
|
1329
|
+
* @param promptIdentifier - The identifier for the new prompt. Can be in the format:
|
|
1330
|
+
* - "promptName" (creates a private prompt)
|
|
1331
|
+
* - "owner/promptName" (creates a prompt under a specific owner, must match your tenant)
|
|
1332
|
+
* @param options - Optional configuration for the prompt
|
|
1333
|
+
* @param options.description - A description of the prompt
|
|
1334
|
+
* @param options.readme - Markdown content for the prompt's README
|
|
1335
|
+
* @param options.tags - Array of tags to categorize the prompt
|
|
1336
|
+
* @param options.isPublic - Whether the prompt should be public. Requires a LangChain Hub handle.
|
|
1337
|
+
* @returns A Promise that resolves to the created Prompt object
|
|
1338
|
+
* @throws {Error} If creating a public prompt without a LangChain Hub handle, or if owner doesn't match current tenant
|
|
1339
|
+
* @example
|
|
1340
|
+
* ```typescript
|
|
1341
|
+
* // Create a private prompt
|
|
1342
|
+
* const prompt = await client.createPrompt("my-new-prompt", {
|
|
1343
|
+
* description: "A prompt for translations",
|
|
1344
|
+
* tags: ["translation", "language"]
|
|
1345
|
+
* });
|
|
1346
|
+
*
|
|
1347
|
+
* // Create a public prompt
|
|
1348
|
+
* const publicPrompt = await client.createPrompt("my-public-prompt", {
|
|
1349
|
+
* description: "A public translation prompt",
|
|
1350
|
+
* isPublic: true
|
|
1351
|
+
* });
|
|
1352
|
+
* ```
|
|
1353
|
+
*/
|
|
1183
1354
|
createPrompt(promptIdentifier: string, options?: {
|
|
1184
1355
|
description?: string;
|
|
1185
1356
|
readme?: string;
|
|
1186
1357
|
tags?: string[];
|
|
1187
1358
|
isPublic?: boolean;
|
|
1188
1359
|
}): Promise<Prompt>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Create a new commit for an existing prompt.
|
|
1362
|
+
* @param promptIdentifier - The identifier of the prompt. Can be in the format:
|
|
1363
|
+
* - "promptName" (for private prompts, owner defaults to "-")
|
|
1364
|
+
* - "owner/promptName" (for prompts with explicit owner)
|
|
1365
|
+
* @param object - The prompt object/manifest to commit (e.g., ChatPromptTemplate, messages array, etc.)
|
|
1366
|
+
* @param options - Optional configuration for the commit
|
|
1367
|
+
* @param options.parentCommitHash - The parent commit hash. Defaults to "latest" (the most recent commit).
|
|
1368
|
+
* @returns A Promise that resolves to the URL of the newly created commit
|
|
1369
|
+
* @throws {Error} If the prompt does not exist
|
|
1370
|
+
* @example
|
|
1371
|
+
* ```typescript
|
|
1372
|
+
* import { ChatPromptTemplate } from "@langchain/core/prompts";
|
|
1373
|
+
*
|
|
1374
|
+
* // Create a commit with a new version of the prompt
|
|
1375
|
+
* const template = ChatPromptTemplate.fromMessages([
|
|
1376
|
+
* ["system", "You are a helpful assistant."],
|
|
1377
|
+
* ["human", "{input}"]
|
|
1378
|
+
* ]);
|
|
1379
|
+
*
|
|
1380
|
+
* const commitUrl = await client.createCommit("my-prompt", template);
|
|
1381
|
+
* console.log(`Commit created: ${commitUrl}`);
|
|
1382
|
+
*
|
|
1383
|
+
* // Create a commit based on a specific parent commit
|
|
1384
|
+
* const commitUrl2 = await client.createCommit("my-prompt", template, {
|
|
1385
|
+
* parentCommitHash: "abc123def456"
|
|
1386
|
+
* });
|
|
1387
|
+
* ```
|
|
1388
|
+
*/
|
|
1189
1389
|
createCommit(promptIdentifier: string, object: any, options?: {
|
|
1190
1390
|
parentCommitHash?: string;
|
|
1191
1391
|
}): Promise<string>;
|