@ai-sdk/harness-deepagents 1.0.118 → 1.0.119
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 +8 -0
- package/dist/bridge/index.mjs +47 -47
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/bridge/package.json +5 -5
- package/dist/bridge/pnpm-lock.yaml +92 -85
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/src/bridge/package.json +5 -5
- package/src/bridge/pnpm-lock.yaml +92 -85
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @ai-sdk/harness-deepagents
|
|
2
2
|
|
|
3
|
+
## 1.0.119
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2adbb77: feat(harness): update underlying harness SDKs to their latest versions
|
|
8
|
+
- Updated dependencies [125f493]
|
|
9
|
+
- @ai-sdk/harness@1.0.119
|
|
10
|
+
|
|
3
11
|
## 1.0.118
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -657,7 +657,7 @@ import {
|
|
|
657
657
|
} from "@langchain/mcp-adapters";
|
|
658
658
|
import { createDeepAgent } from "deepagents";
|
|
659
659
|
|
|
660
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
660
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/chat_models/universal.js
|
|
661
661
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
662
662
|
import { RunnableBinding, ensureConfig } from "@langchain/core/runnables";
|
|
663
663
|
import { AsyncGeneratorWithSetup, IterableReadableStream } from "@langchain/core/utils/stream";
|
|
@@ -753,10 +753,10 @@ var MODEL_PROVIDER_CONFIG = {
|
|
|
753
753
|
};
|
|
754
754
|
var SUPPORTED_PROVIDERS = Object.keys(MODEL_PROVIDER_CONFIG);
|
|
755
755
|
|
|
756
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
756
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/tools/headless.js
|
|
757
757
|
import { tool } from "@langchain/core/tools";
|
|
758
758
|
|
|
759
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
759
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/errors.js
|
|
760
760
|
import { isGraphBubbleUp } from "@langchain/langgraph";
|
|
761
761
|
var StructuredOutputParsingError = class extends Error {
|
|
762
762
|
toolName;
|
|
@@ -769,12 +769,12 @@ var StructuredOutputParsingError = class extends Error {
|
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
772
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/model.js
|
|
773
773
|
function isBaseChatModel(model) {
|
|
774
774
|
return "invoke" in model && typeof model.invoke === "function" && "_streamResponseChunks" in model;
|
|
775
775
|
}
|
|
776
776
|
|
|
777
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
777
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/responses.js
|
|
778
778
|
import { isInteropZodObject, isInteropZodSchema } from "@langchain/core/utils/types";
|
|
779
779
|
import { Validator, toJsonSchema } from "@langchain/core/utils/json_schema";
|
|
780
780
|
import { isSerializableSchema } from "@langchain/core/utils/standard_schema";
|
|
@@ -869,7 +869,7 @@ var ProviderStrategy = class ProviderStrategy2 {
|
|
|
869
869
|
let textContent;
|
|
870
870
|
if (typeof response.content === "string") textContent = response.content;
|
|
871
871
|
else if (Array.isArray(response.content)) {
|
|
872
|
-
for (const block of response.content) if (typeof block === "object" && block !== null && "type" in block && block.type === "text" && "text" in block && typeof block.text === "string") {
|
|
872
|
+
for (const block of response.content) if (typeof block === "object" && block !== null && "type" in block && block.type === "text" && !("thought" in block && block.thought === true) && "text" in block && typeof block.text === "string") {
|
|
873
873
|
textContent = block.text;
|
|
874
874
|
break;
|
|
875
875
|
}
|
|
@@ -908,22 +908,22 @@ function hasSupportForJsonSchemaOutput(model) {
|
|
|
908
908
|
return "structuredOutput" in model.profile && model.profile.structuredOutput === true;
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
911
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/utils.js
|
|
912
912
|
import { AIMessage, ToolMessage } from "@langchain/core/messages";
|
|
913
913
|
import { isLangChainTool } from "@langchain/core/tools";
|
|
914
914
|
import { convertToOpenAITool } from "@langchain/core/utils/function_calling";
|
|
915
915
|
|
|
916
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
916
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/transformers/tool-call.js
|
|
917
917
|
import { ToolMessage as ToolMessage2 } from "@langchain/core/messages";
|
|
918
918
|
import { StreamChannel } from "@langchain/langgraph";
|
|
919
919
|
|
|
920
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
920
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/transformers/subagent.js
|
|
921
921
|
import { StreamChannel as StreamChannel2, createMessagesTransformer } from "@langchain/langgraph";
|
|
922
922
|
|
|
923
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
923
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/types.js
|
|
924
924
|
var MIDDLEWARE_BRAND = /* @__PURE__ */ Symbol.for("AgentMiddleware");
|
|
925
925
|
|
|
926
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
926
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware.js
|
|
927
927
|
function createMiddleware(config) {
|
|
928
928
|
return {
|
|
929
929
|
[MIDDLEWARE_BRAND]: true,
|
|
@@ -941,25 +941,25 @@ function createMiddleware(config) {
|
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
944
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/tests/utils.js
|
|
945
945
|
import { AIMessage as AIMessage2, HumanMessage } from "@langchain/core/messages";
|
|
946
946
|
import { BaseChatModel as BaseChatModel2 } from "@langchain/core/language_models/chat_models";
|
|
947
947
|
import { RunnableLambda } from "@langchain/core/runnables";
|
|
948
948
|
import "@langchain/core/tools";
|
|
949
949
|
|
|
950
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.
|
|
950
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@_ff898d037cda6bb5f88aa9c9d1caaf93/node_modules/@langchain/langgraph-checkpoint/dist/id.js
|
|
951
951
|
import { v5, v6 } from "@langchain/core/utils/uuid";
|
|
952
952
|
|
|
953
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.
|
|
953
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@_ff898d037cda6bb5f88aa9c9d1caaf93/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.js
|
|
954
954
|
var ERROR = "__error__";
|
|
955
955
|
var SCHEDULED = "__scheduled__";
|
|
956
956
|
var INTERRUPT = "__interrupt__";
|
|
957
957
|
var RESUME = "__resume__";
|
|
958
958
|
|
|
959
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.
|
|
959
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@_ff898d037cda6bb5f88aa9c9d1caaf93/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.js
|
|
960
960
|
import { load } from "@langchain/core/load";
|
|
961
961
|
|
|
962
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.
|
|
962
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.5_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@_ff898d037cda6bb5f88aa9c9d1caaf93/node_modules/@langchain/langgraph-checkpoint/dist/base.js
|
|
963
963
|
var WRITES_IDX_MAP = {
|
|
964
964
|
[ERROR]: -1,
|
|
965
965
|
[SCHEDULED]: -2,
|
|
@@ -967,52 +967,52 @@ var WRITES_IDX_MAP = {
|
|
|
967
967
|
[RESUME]: -4
|
|
968
968
|
};
|
|
969
969
|
|
|
970
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
970
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/tests/utils.js
|
|
971
971
|
import "zod/v3";
|
|
972
972
|
|
|
973
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
973
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/annotation.js
|
|
974
974
|
import { MessagesValue, ReducedValue, StateSchema, UntrackedValue } from "@langchain/langgraph";
|
|
975
975
|
import { schemaMetaRegistry } from "@langchain/langgraph/zod";
|
|
976
976
|
import { getInteropZodObjectShape, isInteropZodObject as isInteropZodObject2, isZodSchemaV4 } from "@langchain/core/utils/types";
|
|
977
977
|
|
|
978
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
978
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/utils.js
|
|
979
979
|
import { AIMessage as AIMessage3, AIMessageChunk, SystemMessage, ToolMessage as ToolMessage3 } from "@langchain/core/messages";
|
|
980
980
|
import { Runnable, RunnableBinding as RunnableBinding2, RunnableSequence } from "@langchain/core/runnables";
|
|
981
981
|
import { StateSchema as StateSchema2, isCommand } from "@langchain/langgraph";
|
|
982
982
|
import { interopParse, isInteropZodSchema as isInteropZodSchema2 } from "@langchain/core/utils/types";
|
|
983
983
|
|
|
984
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
984
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/nodes/utils.js
|
|
985
985
|
import { END, ReducedValue as ReducedValue2, StateSchema as StateSchema3 } from "@langchain/langgraph";
|
|
986
986
|
import { getInteropZodObjectShape as getInteropZodObjectShape2, interopSafeParseAsync, interopZodObjectMakeFieldsOptional, interopZodObjectPartial, isInteropZodObject as isInteropZodObject3, isZodSchemaV4 as isZodSchemaV42 } from "@langchain/core/utils/types";
|
|
987
987
|
import { z } from "zod/v4";
|
|
988
988
|
|
|
989
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
989
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/RunnableCallable.js
|
|
990
990
|
import { Runnable as Runnable2, mergeConfigs } from "@langchain/core/runnables";
|
|
991
991
|
import { AsyncLocalStorageProviderSingleton } from "@langchain/core/singletons";
|
|
992
992
|
|
|
993
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
993
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/withAgentName.js
|
|
994
994
|
import { RunnableLambda as RunnableLambda2, RunnableSequence as RunnableSequence2 } from "@langchain/core/runnables";
|
|
995
995
|
|
|
996
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
996
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/nodes/AgentNode.js
|
|
997
997
|
import { AIMessage as AIMessage4, SystemMessage as SystemMessage2, ToolMessage as ToolMessage4 } from "@langchain/core/messages";
|
|
998
998
|
import { raceWithSignal } from "@langchain/core/runnables";
|
|
999
999
|
import { Command, isCommand as isCommand2 } from "@langchain/langgraph";
|
|
1000
1000
|
import { getSchemaDescription, interopParse as interopParse2 } from "@langchain/core/utils/types";
|
|
1001
1001
|
|
|
1002
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1002
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/nodes/ToolNode.js
|
|
1003
1003
|
import { AIMessage as AIMessage5, BaseMessage, ToolMessage as ToolMessage5 } from "@langchain/core/messages";
|
|
1004
1004
|
import { ToolInputParsingException } from "@langchain/core/tools";
|
|
1005
1005
|
import { Command as Command2, Send, isCommand as isCommand3, isGraphInterrupt } from "@langchain/langgraph";
|
|
1006
1006
|
|
|
1007
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1007
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/nodes/middleware.js
|
|
1008
1008
|
import { getInteropZodObjectShape as getInteropZodObjectShape3, interopParse as interopParse3, isInteropZodObject as isInteropZodObject4 } from "@langchain/core/utils/types";
|
|
1009
1009
|
|
|
1010
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1010
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/ReactAgent.js
|
|
1011
1011
|
import { AIMessage as AIMessage6, ToolMessage as ToolMessage6 } from "@langchain/core/messages";
|
|
1012
1012
|
import { mergeConfigs as mergeConfigs2 } from "@langchain/core/runnables";
|
|
1013
1013
|
import { Command as Command3, END as END2, START, Send as Send2, StateGraph } from "@langchain/langgraph";
|
|
1014
1014
|
|
|
1015
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1015
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/hitl.js
|
|
1016
1016
|
import { AIMessage as AIMessage7, ToolMessage as ToolMessage7 } from "@langchain/core/messages";
|
|
1017
1017
|
import { interrupt } from "@langchain/langgraph";
|
|
1018
1018
|
import { interopParse as interopParse4 } from "@langchain/core/utils/types";
|
|
@@ -1122,7 +1122,7 @@ var contextSchema = z2.object({
|
|
|
1122
1122
|
descriptionPrefix: z2.string().default("Tool execution requires approval")
|
|
1123
1123
|
});
|
|
1124
1124
|
|
|
1125
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1125
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/constants.js
|
|
1126
1126
|
import { z as z3 } from "zod/v3";
|
|
1127
1127
|
import { getRetryable } from "@langchain/core/errors";
|
|
1128
1128
|
var RetrySchema = z3.object({
|
|
@@ -1159,7 +1159,7 @@ var RetrySchema = z3.object({
|
|
|
1159
1159
|
jitter: z3.boolean().default(true)
|
|
1160
1160
|
});
|
|
1161
1161
|
|
|
1162
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1162
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/summarization.js
|
|
1163
1163
|
import { AIMessage as AIMessage8, HumanMessage as HumanMessage2, RemoveMessage, SystemMessage as SystemMessage3, ToolMessage as ToolMessage8, getBufferString, trimMessages } from "@langchain/core/messages";
|
|
1164
1164
|
import { mergeConfigs as mergeConfigs3, pickRunnableConfigKeys } from "@langchain/core/runnables";
|
|
1165
1165
|
import { REMOVE_ALL_MESSAGES } from "@langchain/langgraph";
|
|
@@ -1286,10 +1286,10 @@ var contextSchema2 = z$1.object({
|
|
|
1286
1286
|
messagesToKeep: z$1.number().optional()
|
|
1287
1287
|
});
|
|
1288
1288
|
|
|
1289
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1289
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.js
|
|
1290
1290
|
import { SystemMessage as SystemMessage4 } from "@langchain/core/messages";
|
|
1291
1291
|
|
|
1292
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1292
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/llmToolSelector.js
|
|
1293
1293
|
import { HumanMessage as HumanMessage3 } from "@langchain/core/messages";
|
|
1294
1294
|
import { mergeConfigs as mergeConfigs4, pickRunnableConfigKeys as pickRunnableConfigKeys2 } from "@langchain/core/runnables";
|
|
1295
1295
|
import { z as z5 } from "zod/v3";
|
|
@@ -1315,7 +1315,7 @@ var LLMToolSelectorOptionsSchema = z5.object({
|
|
|
1315
1315
|
alwaysInclude: z5.array(z5.string()).optional()
|
|
1316
1316
|
});
|
|
1317
1317
|
|
|
1318
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1318
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/pii.js
|
|
1319
1319
|
import { AIMessage as AIMessage9, HumanMessage as HumanMessage4, ToolMessage as ToolMessage9 } from "@langchain/core/messages";
|
|
1320
1320
|
import { z as z6 } from "zod/v3";
|
|
1321
1321
|
import { sha256 } from "@langchain/core/utils/hash";
|
|
@@ -1334,7 +1334,7 @@ var contextSchema3 = z6.object({
|
|
|
1334
1334
|
applyToToolResults: z6.boolean().optional()
|
|
1335
1335
|
});
|
|
1336
1336
|
|
|
1337
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1337
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/piiRedaction.js
|
|
1338
1338
|
import { AIMessage as AIMessage10, HumanMessage as HumanMessage5, RemoveMessage as RemoveMessage2, SystemMessage as SystemMessage5, ToolMessage as ToolMessage10 } from "@langchain/core/messages";
|
|
1339
1339
|
import { z as z7 } from "zod/v3";
|
|
1340
1340
|
var contextSchema4 = z7.object({
|
|
@@ -1345,10 +1345,10 @@ var contextSchema4 = z7.object({
|
|
|
1345
1345
|
rules: z7.record(z7.string(), z7.instanceof(RegExp).describe("Regular expression pattern to match PII")).optional()
|
|
1346
1346
|
});
|
|
1347
1347
|
|
|
1348
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1348
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/contextEditing.js
|
|
1349
1349
|
import { AIMessage as AIMessage11, SystemMessage as SystemMessage6, ToolMessage as ToolMessage11 } from "@langchain/core/messages";
|
|
1350
1350
|
|
|
1351
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1351
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/toolCallLimit.js
|
|
1352
1352
|
import { AIMessage as AIMessage12, ToolMessage as ToolMessage12 } from "@langchain/core/messages";
|
|
1353
1353
|
import { z as z8 } from "zod/v4";
|
|
1354
1354
|
import { z as z$12 } from "zod/v3";
|
|
@@ -1391,7 +1391,7 @@ var stateSchema = z$12.object({
|
|
|
1391
1391
|
runToolCallCount: z$12.record(z$12.string(), z$12.number()).default({})
|
|
1392
1392
|
});
|
|
1393
1393
|
|
|
1394
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1394
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/todoListMiddleware.js
|
|
1395
1395
|
import { AIMessage as AIMessage13, ToolMessage as ToolMessage13 } from "@langchain/core/messages";
|
|
1396
1396
|
import { tool as tool2 } from "@langchain/core/tools";
|
|
1397
1397
|
import { Command as Command4 } from "@langchain/langgraph";
|
|
@@ -1407,7 +1407,7 @@ var TodoSchema = z9.object({
|
|
|
1407
1407
|
});
|
|
1408
1408
|
var stateSchema2 = z9.object({ todos: z9.array(TodoSchema).default([]) });
|
|
1409
1409
|
|
|
1410
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1410
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/modelCallLimit.js
|
|
1411
1411
|
import { AIMessage as AIMessage14 } from "@langchain/core/messages";
|
|
1412
1412
|
import { z as z10 } from "zod/v3";
|
|
1413
1413
|
var contextSchema5 = z10.object({
|
|
@@ -1432,10 +1432,10 @@ var stateSchema3 = z10.object({
|
|
|
1432
1432
|
runModelCallCount: z10.number().default(0)
|
|
1433
1433
|
});
|
|
1434
1434
|
|
|
1435
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1435
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/error.js
|
|
1436
1436
|
import { z as z11 } from "zod/v4";
|
|
1437
1437
|
|
|
1438
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1438
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/modelRetry.js
|
|
1439
1439
|
import { AIMessage as AIMessage15 } from "@langchain/core/messages";
|
|
1440
1440
|
import { z as z12 } from "zod/v3";
|
|
1441
1441
|
var ModelRetryMiddlewareOptionsSchema = z12.object({
|
|
@@ -1454,7 +1454,7 @@ var ModelRetryMiddlewareOptionsSchema = z12.object({
|
|
|
1454
1454
|
]).default("continue")
|
|
1455
1455
|
}).merge(RetrySchema);
|
|
1456
1456
|
|
|
1457
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1457
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/toolRetry.js
|
|
1458
1458
|
import { ToolMessage as ToolMessage14 } from "@langchain/core/messages";
|
|
1459
1459
|
import { z as z13 } from "zod/v3";
|
|
1460
1460
|
var ToolRetryMiddlewareOptionsSchema = z13.object({
|
|
@@ -1489,21 +1489,21 @@ var ToolRetryMiddlewareOptionsSchema = z13.object({
|
|
|
1489
1489
|
]).default("continue")
|
|
1490
1490
|
}).merge(RetrySchema);
|
|
1491
1491
|
|
|
1492
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1492
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/toolError.js
|
|
1493
1493
|
import { ToolMessage as ToolMessage15 } from "@langchain/core/messages";
|
|
1494
1494
|
import { isGraphBubbleUp as isGraphBubbleUp2 } from "@langchain/langgraph";
|
|
1495
1495
|
|
|
1496
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1496
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/toolEmulator.js
|
|
1497
1497
|
import { HumanMessage as HumanMessage6, ToolMessage as ToolMessage16 } from "@langchain/core/messages";
|
|
1498
1498
|
import { mergeConfigs as mergeConfigs5, pickRunnableConfigKeys as pickRunnableConfigKeys3 } from "@langchain/core/runnables";
|
|
1499
1499
|
|
|
1500
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1500
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/providerToolSearch.js
|
|
1501
1501
|
import { isLangChainTool as isLangChainTool2 } from "@langchain/core/utils/function_calling";
|
|
1502
1502
|
|
|
1503
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1503
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.js
|
|
1504
1504
|
import { AIMessage as AIMessage16, HumanMessage as HumanMessage7, ToolMessage as ToolMessage17 } from "@langchain/core/messages";
|
|
1505
1505
|
|
|
1506
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1506
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.js
|
|
1507
1507
|
import { z as z14 } from "zod/v3";
|
|
1508
1508
|
var contextSchema6 = z14.object({
|
|
1509
1509
|
/**
|
|
@@ -1535,7 +1535,7 @@ var contextSchema6 = z14.object({
|
|
|
1535
1535
|
]).optional()
|
|
1536
1536
|
});
|
|
1537
1537
|
|
|
1538
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1538
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/agents/middleware/provider/aws/promptCaching.js
|
|
1539
1539
|
import { z as z15 } from "zod/v3";
|
|
1540
1540
|
var contextSchema7 = z15.object({
|
|
1541
1541
|
/**
|
|
@@ -1567,7 +1567,7 @@ var contextSchema7 = z15.object({
|
|
|
1567
1567
|
]).optional()
|
|
1568
1568
|
});
|
|
1569
1569
|
|
|
1570
|
-
// ../../node_modules/.pnpm/langchain@1.5.
|
|
1570
|
+
// ../../node_modules/.pnpm/langchain@1.5.11_@langchain+core@1.2.11_@opentelemetry+api@1.9.1_@opentelemetry+exporte_f5289af23b1dceae16b2f90e7460a344/node_modules/langchain/dist/index.js
|
|
1571
1571
|
import { AIMessage as AIMessage17, AIMessageChunk as AIMessageChunk2, BaseMessage as BaseMessage2, BaseMessageChunk, HumanMessage as HumanMessage8, HumanMessageChunk, SystemMessage as SystemMessage7, SystemMessageChunk, ToolMessage as ToolMessage18, ToolMessageChunk, filterMessages, trimMessages as trimMessages2 } from "@langchain/core/messages";
|
|
1572
1572
|
import { DynamicStructuredTool, DynamicTool, StructuredTool, Tool } from "@langchain/core/tools";
|
|
1573
1573
|
import { context } from "@langchain/core/utils/context";
|