@ai-sdk/harness-deepagents 1.0.70 → 1.0.72
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 +20 -0
- package/dist/bridge/index.mjs +44 -44
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +185 -80
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/deepagents-auth.ts +101 -8
- package/src/deepagents-bootstrap.ts +87 -0
- package/src/deepagents-harness.ts +71 -94
- package/src/index.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ai-sdk/harness-deepagents
|
|
2
2
|
|
|
3
|
+
## 1.0.72
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 69bb613: feat(harness): support request transformations in network sandbox abstraction and use it to apply credential brokering when available
|
|
8
|
+
- 52bc889: feat(harness): add `getPortEndpoint()` as more comprehensive replacement to `getPortUrl()` (now deprecated) in `HarnessV1NetworkSandboxSession`
|
|
9
|
+
- 4cd4989: chore(harness): decouple bridge based harness bootstrap recipe logic from dynamic params and enforce unique harnesses in `prepareSandboxForHarness()` helper
|
|
10
|
+
- Updated dependencies [69bb613]
|
|
11
|
+
- Updated dependencies [52bc889]
|
|
12
|
+
- Updated dependencies [4cd4989]
|
|
13
|
+
- @ai-sdk/harness@1.0.72
|
|
14
|
+
|
|
15
|
+
## 1.0.71
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 83fe754: chore(harness): simplify the `auth` param to be a simple string to choose the auth method
|
|
20
|
+
- Updated dependencies [8d717b3]
|
|
21
|
+
- @ai-sdk/harness@1.0.71
|
|
22
|
+
|
|
3
23
|
## 1.0.70
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -474,7 +474,7 @@ import {
|
|
|
474
474
|
} from "@langchain/mcp-adapters";
|
|
475
475
|
import { createDeepAgent } from "deepagents";
|
|
476
476
|
|
|
477
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
477
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/chat_models/universal.js
|
|
478
478
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
479
479
|
import { RunnableBinding, ensureConfig } from "@langchain/core/runnables";
|
|
480
480
|
import { AsyncGeneratorWithSetup, IterableReadableStream } from "@langchain/core/utils/stream";
|
|
@@ -564,33 +564,33 @@ var MODEL_PROVIDER_CONFIG = {
|
|
|
564
564
|
};
|
|
565
565
|
var SUPPORTED_PROVIDERS = Object.keys(MODEL_PROVIDER_CONFIG);
|
|
566
566
|
|
|
567
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
567
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/tools/headless.js
|
|
568
568
|
import { tool } from "@langchain/core/tools";
|
|
569
569
|
|
|
570
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
570
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/errors.js
|
|
571
571
|
import { isGraphBubbleUp } from "@langchain/langgraph";
|
|
572
572
|
|
|
573
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
573
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/responses.js
|
|
574
574
|
import { isInteropZodObject, isInteropZodSchema } from "@langchain/core/utils/types";
|
|
575
575
|
import { Validator, toJsonSchema } from "@langchain/core/utils/json_schema";
|
|
576
576
|
import { isSerializableSchema } from "@langchain/core/utils/standard_schema";
|
|
577
577
|
|
|
578
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
578
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/utils.js
|
|
579
579
|
import { AIMessage, ToolMessage } from "@langchain/core/messages";
|
|
580
580
|
import { isLangChainTool } from "@langchain/core/tools";
|
|
581
581
|
import { convertToOpenAITool } from "@langchain/core/utils/function_calling";
|
|
582
582
|
|
|
583
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
583
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/transformers/tool-call.js
|
|
584
584
|
import { ToolMessage as ToolMessage2 } from "@langchain/core/messages";
|
|
585
585
|
import { StreamChannel } from "@langchain/langgraph";
|
|
586
586
|
|
|
587
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
587
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/transformers/subagent.js
|
|
588
588
|
import { StreamChannel as StreamChannel2, createMessagesTransformer } from "@langchain/langgraph";
|
|
589
589
|
|
|
590
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
590
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/types.js
|
|
591
591
|
var MIDDLEWARE_BRAND = /* @__PURE__ */ Symbol.for("AgentMiddleware");
|
|
592
592
|
|
|
593
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
593
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware.js
|
|
594
594
|
function createMiddleware(config) {
|
|
595
595
|
return {
|
|
596
596
|
[MIDDLEWARE_BRAND]: true,
|
|
@@ -608,25 +608,25 @@ function createMiddleware(config) {
|
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
611
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/tests/utils.js
|
|
612
612
|
import { AIMessage as AIMessage2, HumanMessage } from "@langchain/core/messages";
|
|
613
613
|
import { BaseChatModel as BaseChatModel2 } from "@langchain/core/language_models/chat_models";
|
|
614
614
|
import { RunnableLambda } from "@langchain/core/runnables";
|
|
615
615
|
import "@langchain/core/tools";
|
|
616
616
|
|
|
617
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@
|
|
617
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@o_6f3022e4f3a119ed905d664b3d3736ca/node_modules/@langchain/langgraph-checkpoint/dist/id.js
|
|
618
618
|
import { v5, v6 } from "@langchain/core/utils/uuid";
|
|
619
619
|
|
|
620
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@
|
|
620
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@o_6f3022e4f3a119ed905d664b3d3736ca/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.js
|
|
621
621
|
var ERROR = "__error__";
|
|
622
622
|
var SCHEDULED = "__scheduled__";
|
|
623
623
|
var INTERRUPT = "__interrupt__";
|
|
624
624
|
var RESUME = "__resume__";
|
|
625
625
|
|
|
626
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@
|
|
626
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@o_6f3022e4f3a119ed905d664b3d3736ca/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.js
|
|
627
627
|
import { load } from "@langchain/core/load";
|
|
628
628
|
|
|
629
|
-
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@
|
|
629
|
+
// ../../node_modules/.pnpm/@langchain+langgraph-checkpoint@1.1.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@o_6f3022e4f3a119ed905d664b3d3736ca/node_modules/@langchain/langgraph-checkpoint/dist/base.js
|
|
630
630
|
var WRITES_IDX_MAP = {
|
|
631
631
|
[ERROR]: -1,
|
|
632
632
|
[SCHEDULED]: -2,
|
|
@@ -634,52 +634,52 @@ var WRITES_IDX_MAP = {
|
|
|
634
634
|
[RESUME]: -4
|
|
635
635
|
};
|
|
636
636
|
|
|
637
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
637
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/tests/utils.js
|
|
638
638
|
import "zod/v3";
|
|
639
639
|
|
|
640
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
640
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/annotation.js
|
|
641
641
|
import { MessagesValue, ReducedValue, StateSchema, UntrackedValue } from "@langchain/langgraph";
|
|
642
642
|
import { schemaMetaRegistry } from "@langchain/langgraph/zod";
|
|
643
643
|
import { getInteropZodObjectShape, isInteropZodObject as isInteropZodObject2, isZodSchemaV4 } from "@langchain/core/utils/types";
|
|
644
644
|
|
|
645
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
645
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/utils.js
|
|
646
646
|
import { AIMessage as AIMessage3, AIMessageChunk, SystemMessage, ToolMessage as ToolMessage3 } from "@langchain/core/messages";
|
|
647
647
|
import { Runnable, RunnableBinding as RunnableBinding2, RunnableSequence } from "@langchain/core/runnables";
|
|
648
648
|
import { StateSchema as StateSchema2, isCommand } from "@langchain/langgraph";
|
|
649
649
|
import { interopParse, isInteropZodSchema as isInteropZodSchema2 } from "@langchain/core/utils/types";
|
|
650
650
|
|
|
651
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
651
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/nodes/utils.js
|
|
652
652
|
import { END, ReducedValue as ReducedValue2, StateSchema as StateSchema3 } from "@langchain/langgraph";
|
|
653
653
|
import { getInteropZodObjectShape as getInteropZodObjectShape2, interopSafeParseAsync, interopZodObjectMakeFieldsOptional, interopZodObjectPartial, isInteropZodObject as isInteropZodObject3, isZodSchemaV4 as isZodSchemaV42 } from "@langchain/core/utils/types";
|
|
654
654
|
import { z } from "zod/v4";
|
|
655
655
|
|
|
656
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
656
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/RunnableCallable.js
|
|
657
657
|
import { Runnable as Runnable2, mergeConfigs } from "@langchain/core/runnables";
|
|
658
658
|
import { AsyncLocalStorageProviderSingleton } from "@langchain/core/singletons";
|
|
659
659
|
|
|
660
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
660
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/withAgentName.js
|
|
661
661
|
import { RunnableLambda as RunnableLambda2, RunnableSequence as RunnableSequence2 } from "@langchain/core/runnables";
|
|
662
662
|
|
|
663
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
663
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/nodes/AgentNode.js
|
|
664
664
|
import { AIMessage as AIMessage4, SystemMessage as SystemMessage2, ToolMessage as ToolMessage4 } from "@langchain/core/messages";
|
|
665
665
|
import { raceWithSignal } from "@langchain/core/runnables";
|
|
666
666
|
import { Command, isCommand as isCommand2 } from "@langchain/langgraph";
|
|
667
667
|
import { getSchemaDescription, interopParse as interopParse2 } from "@langchain/core/utils/types";
|
|
668
668
|
|
|
669
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
669
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/nodes/ToolNode.js
|
|
670
670
|
import { AIMessage as AIMessage5, BaseMessage, ToolMessage as ToolMessage5 } from "@langchain/core/messages";
|
|
671
671
|
import { ToolInputParsingException } from "@langchain/core/tools";
|
|
672
672
|
import { Command as Command2, Send, isCommand as isCommand3, isGraphInterrupt } from "@langchain/langgraph";
|
|
673
673
|
|
|
674
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
674
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/nodes/middleware.js
|
|
675
675
|
import { getInteropZodObjectShape as getInteropZodObjectShape3, interopParse as interopParse3, isInteropZodObject as isInteropZodObject4 } from "@langchain/core/utils/types";
|
|
676
676
|
|
|
677
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
677
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/ReactAgent.js
|
|
678
678
|
import { AIMessage as AIMessage6, ToolMessage as ToolMessage6 } from "@langchain/core/messages";
|
|
679
679
|
import { mergeConfigs as mergeConfigs2 } from "@langchain/core/runnables";
|
|
680
680
|
import { Command as Command3, END as END2, START, Send as Send2, StateGraph } from "@langchain/langgraph";
|
|
681
681
|
|
|
682
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
682
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/hitl.js
|
|
683
683
|
import { AIMessage as AIMessage7, ToolMessage as ToolMessage7 } from "@langchain/core/messages";
|
|
684
684
|
import { interrupt } from "@langchain/langgraph";
|
|
685
685
|
import { interopParse as interopParse4 } from "@langchain/core/utils/types";
|
|
@@ -789,7 +789,7 @@ var contextSchema = z2.object({
|
|
|
789
789
|
descriptionPrefix: z2.string().default("Tool execution requires approval")
|
|
790
790
|
});
|
|
791
791
|
|
|
792
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
792
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/summarization.js
|
|
793
793
|
import { AIMessage as AIMessage8, HumanMessage as HumanMessage2, RemoveMessage, SystemMessage as SystemMessage3, ToolMessage as ToolMessage8, getBufferString, trimMessages } from "@langchain/core/messages";
|
|
794
794
|
import { mergeConfigs as mergeConfigs3, pickRunnableConfigKeys } from "@langchain/core/runnables";
|
|
795
795
|
import { REMOVE_ALL_MESSAGES } from "@langchain/langgraph";
|
|
@@ -916,10 +916,10 @@ var contextSchema2 = z$1.object({
|
|
|
916
916
|
messagesToKeep: z$1.number().optional()
|
|
917
917
|
});
|
|
918
918
|
|
|
919
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
919
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.js
|
|
920
920
|
import { SystemMessage as SystemMessage4 } from "@langchain/core/messages";
|
|
921
921
|
|
|
922
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
922
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/llmToolSelector.js
|
|
923
923
|
import { HumanMessage as HumanMessage3 } from "@langchain/core/messages";
|
|
924
924
|
import { mergeConfigs as mergeConfigs4, pickRunnableConfigKeys as pickRunnableConfigKeys2 } from "@langchain/core/runnables";
|
|
925
925
|
import { z as z4 } from "zod/v3";
|
|
@@ -945,7 +945,7 @@ var LLMToolSelectorOptionsSchema = z4.object({
|
|
|
945
945
|
alwaysInclude: z4.array(z4.string()).optional()
|
|
946
946
|
});
|
|
947
947
|
|
|
948
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
948
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/pii.js
|
|
949
949
|
import { AIMessage as AIMessage9, HumanMessage as HumanMessage4, ToolMessage as ToolMessage9 } from "@langchain/core/messages";
|
|
950
950
|
import { z as z5 } from "zod/v3";
|
|
951
951
|
import { sha256 } from "@langchain/core/utils/hash";
|
|
@@ -964,7 +964,7 @@ var contextSchema3 = z5.object({
|
|
|
964
964
|
applyToToolResults: z5.boolean().optional()
|
|
965
965
|
});
|
|
966
966
|
|
|
967
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
967
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/piiRedaction.js
|
|
968
968
|
import { AIMessage as AIMessage10, HumanMessage as HumanMessage5, RemoveMessage as RemoveMessage2, SystemMessage as SystemMessage5, ToolMessage as ToolMessage10 } from "@langchain/core/messages";
|
|
969
969
|
import { z as z6 } from "zod/v3";
|
|
970
970
|
var contextSchema4 = z6.object({
|
|
@@ -975,10 +975,10 @@ var contextSchema4 = z6.object({
|
|
|
975
975
|
rules: z6.record(z6.string(), z6.instanceof(RegExp).describe("Regular expression pattern to match PII")).optional()
|
|
976
976
|
});
|
|
977
977
|
|
|
978
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
978
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/contextEditing.js
|
|
979
979
|
import { AIMessage as AIMessage11, SystemMessage as SystemMessage6, ToolMessage as ToolMessage11 } from "@langchain/core/messages";
|
|
980
980
|
|
|
981
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
981
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/toolCallLimit.js
|
|
982
982
|
import { AIMessage as AIMessage12, ToolMessage as ToolMessage12 } from "@langchain/core/messages";
|
|
983
983
|
import { z as z7 } from "zod/v4";
|
|
984
984
|
import { z as z$12 } from "zod/v3";
|
|
@@ -1021,7 +1021,7 @@ var stateSchema = z$12.object({
|
|
|
1021
1021
|
runToolCallCount: z$12.record(z$12.string(), z$12.number()).default({})
|
|
1022
1022
|
});
|
|
1023
1023
|
|
|
1024
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1024
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/todoListMiddleware.js
|
|
1025
1025
|
import { AIMessage as AIMessage13, ToolMessage as ToolMessage13 } from "@langchain/core/messages";
|
|
1026
1026
|
import { tool as tool2 } from "@langchain/core/tools";
|
|
1027
1027
|
import { Command as Command4 } from "@langchain/langgraph";
|
|
@@ -1037,7 +1037,7 @@ var TodoSchema = z8.object({
|
|
|
1037
1037
|
});
|
|
1038
1038
|
var stateSchema2 = z8.object({ todos: z8.array(TodoSchema).default([]) });
|
|
1039
1039
|
|
|
1040
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1040
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/modelCallLimit.js
|
|
1041
1041
|
import { AIMessage as AIMessage14 } from "@langchain/core/messages";
|
|
1042
1042
|
import { z as z9 } from "zod/v3";
|
|
1043
1043
|
var contextSchema5 = z9.object({
|
|
@@ -1062,7 +1062,7 @@ var stateSchema3 = z9.object({
|
|
|
1062
1062
|
runModelCallCount: z9.number().default(0)
|
|
1063
1063
|
});
|
|
1064
1064
|
|
|
1065
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1065
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/constants.js
|
|
1066
1066
|
import { z as z10 } from "zod/v3";
|
|
1067
1067
|
var RetrySchema = z10.object({
|
|
1068
1068
|
/**
|
|
@@ -1098,10 +1098,10 @@ var RetrySchema = z10.object({
|
|
|
1098
1098
|
jitter: z10.boolean().default(true)
|
|
1099
1099
|
});
|
|
1100
1100
|
|
|
1101
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1101
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/error.js
|
|
1102
1102
|
import { z as z11 } from "zod/v4";
|
|
1103
1103
|
|
|
1104
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1104
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/modelRetry.js
|
|
1105
1105
|
import { AIMessage as AIMessage15 } from "@langchain/core/messages";
|
|
1106
1106
|
import { z as z12 } from "zod/v3";
|
|
1107
1107
|
var ModelRetryMiddlewareOptionsSchema = z12.object({
|
|
@@ -1120,7 +1120,7 @@ var ModelRetryMiddlewareOptionsSchema = z12.object({
|
|
|
1120
1120
|
]).default("continue")
|
|
1121
1121
|
}).merge(RetrySchema);
|
|
1122
1122
|
|
|
1123
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1123
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/toolRetry.js
|
|
1124
1124
|
import { ToolMessage as ToolMessage14 } from "@langchain/core/messages";
|
|
1125
1125
|
import { z as z13 } from "zod/v3";
|
|
1126
1126
|
var ToolRetryMiddlewareOptionsSchema = z13.object({
|
|
@@ -1155,16 +1155,16 @@ var ToolRetryMiddlewareOptionsSchema = z13.object({
|
|
|
1155
1155
|
]).default("continue")
|
|
1156
1156
|
}).merge(RetrySchema);
|
|
1157
1157
|
|
|
1158
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1158
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/toolEmulator.js
|
|
1159
1159
|
import { HumanMessage as HumanMessage6, ToolMessage as ToolMessage15 } from "@langchain/core/messages";
|
|
1160
1160
|
|
|
1161
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1161
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/providerToolSearch.js
|
|
1162
1162
|
import { isLangChainTool as isLangChainTool2 } from "@langchain/core/utils/function_calling";
|
|
1163
1163
|
|
|
1164
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1164
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.js
|
|
1165
1165
|
import { AIMessage as AIMessage16, HumanMessage as HumanMessage7, ToolMessage as ToolMessage16 } from "@langchain/core/messages";
|
|
1166
1166
|
|
|
1167
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1167
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.js
|
|
1168
1168
|
import { z as z14 } from "zod/v3";
|
|
1169
1169
|
var contextSchema6 = z14.object({
|
|
1170
1170
|
/**
|
|
@@ -1196,7 +1196,7 @@ var contextSchema6 = z14.object({
|
|
|
1196
1196
|
]).optional()
|
|
1197
1197
|
});
|
|
1198
1198
|
|
|
1199
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1199
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/agents/middleware/provider/aws/promptCaching.js
|
|
1200
1200
|
import { z as z15 } from "zod/v3";
|
|
1201
1201
|
var contextSchema7 = z15.object({
|
|
1202
1202
|
/**
|
|
@@ -1228,7 +1228,7 @@ var contextSchema7 = z15.object({
|
|
|
1228
1228
|
]).optional()
|
|
1229
1229
|
});
|
|
1230
1230
|
|
|
1231
|
-
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-
|
|
1231
|
+
// ../../node_modules/.pnpm/langchain@1.5.3_@langchain+core@1.2.3_@opentelemetry+api@1.9.1_@opentelemetry+exporter-_a0dbd4fc7a66247dcd0e899a4ff3ea34/node_modules/langchain/dist/index.js
|
|
1232
1232
|
import { AIMessage as AIMessage17, AIMessageChunk as AIMessageChunk2, BaseMessage as BaseMessage2, BaseMessageChunk, HumanMessage as HumanMessage8, HumanMessageChunk, SystemMessage as SystemMessage7, SystemMessageChunk, ToolMessage as ToolMessage17, ToolMessageChunk, filterMessages, trimMessages as trimMessages2 } from "@langchain/core/messages";
|
|
1233
1233
|
import { DynamicStructuredTool, DynamicTool, StructuredTool, Tool } from "@langchain/core/tools";
|
|
1234
1234
|
import { context } from "@langchain/core/utils/context";
|