langchain 1.5.15 → 1.5.17
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 +16 -0
- package/dist/agents/ReactAgent.cjs +1 -1
- package/dist/agents/ReactAgent.cjs.map +1 -1
- package/dist/agents/ReactAgent.d.cts +1 -2
- package/dist/agents/ReactAgent.d.cts.map +1 -1
- package/dist/agents/ReactAgent.d.ts +1 -2
- package/dist/agents/ReactAgent.d.ts.map +1 -1
- package/dist/agents/ReactAgent.js +2 -2
- package/dist/agents/ReactAgent.js.map +1 -1
- package/dist/agents/constants.d.cts +2 -3
- package/dist/agents/constants.d.cts.map +1 -1
- package/dist/agents/constants.d.ts +2 -3
- package/dist/agents/constants.d.ts.map +1 -1
- package/dist/agents/errors.d.cts +5 -6
- package/dist/agents/errors.d.cts.map +1 -1
- package/dist/agents/errors.d.ts +5 -6
- package/dist/agents/errors.d.ts.map +1 -1
- package/dist/agents/index.d.cts +14 -14
- package/dist/agents/index.d.cts.map +1 -1
- package/dist/agents/index.d.ts +14 -14
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/middleware/contextEditing.d.cts +5 -6
- package/dist/agents/middleware/contextEditing.d.cts.map +1 -1
- package/dist/agents/middleware/contextEditing.d.ts +5 -6
- package/dist/agents/middleware/contextEditing.d.ts.map +1 -1
- package/dist/agents/middleware/dynamicSystemPrompt.d.cts +2 -3
- package/dist/agents/middleware/dynamicSystemPrompt.d.cts.map +1 -1
- package/dist/agents/middleware/dynamicSystemPrompt.d.ts +2 -3
- package/dist/agents/middleware/dynamicSystemPrompt.d.ts.map +1 -1
- package/dist/agents/middleware/hitl.cjs +24 -8
- package/dist/agents/middleware/hitl.cjs.map +1 -1
- package/dist/agents/middleware/hitl.d.cts +40 -30
- package/dist/agents/middleware/hitl.d.cts.map +1 -1
- package/dist/agents/middleware/hitl.d.ts +40 -30
- package/dist/agents/middleware/hitl.d.ts.map +1 -1
- package/dist/agents/middleware/hitl.js +24 -8
- package/dist/agents/middleware/hitl.js.map +1 -1
- package/dist/agents/middleware/index.d.cts +2 -2
- package/dist/agents/middleware/index.d.ts +2 -2
- package/dist/agents/middleware/llmToolSelector.d.cts +3 -4
- package/dist/agents/middleware/llmToolSelector.d.cts.map +1 -1
- package/dist/agents/middleware/llmToolSelector.d.ts +3 -4
- package/dist/agents/middleware/llmToolSelector.d.ts.map +1 -1
- package/dist/agents/middleware/modelCallLimit.d.cts +2 -3
- package/dist/agents/middleware/modelCallLimit.d.cts.map +1 -1
- package/dist/agents/middleware/modelCallLimit.d.ts +2 -3
- package/dist/agents/middleware/modelCallLimit.d.ts.map +1 -1
- package/dist/agents/middleware/modelFallback.d.cts +1 -2
- package/dist/agents/middleware/modelFallback.d.cts.map +1 -1
- package/dist/agents/middleware/modelFallback.d.ts +1 -2
- package/dist/agents/middleware/modelFallback.d.ts.map +1 -1
- package/dist/agents/middleware/modelRetry.d.cts +3 -4
- package/dist/agents/middleware/modelRetry.d.cts.map +1 -1
- package/dist/agents/middleware/modelRetry.d.ts +3 -4
- package/dist/agents/middleware/modelRetry.d.ts.map +1 -1
- package/dist/agents/middleware/pii.d.cts +17 -18
- package/dist/agents/middleware/pii.d.cts.map +1 -1
- package/dist/agents/middleware/pii.d.ts +17 -18
- package/dist/agents/middleware/pii.d.ts.map +1 -1
- package/dist/agents/middleware/piiRedaction.d.cts +2 -3
- package/dist/agents/middleware/piiRedaction.d.cts.map +1 -1
- package/dist/agents/middleware/piiRedaction.d.ts +2 -3
- package/dist/agents/middleware/piiRedaction.d.ts.map +1 -1
- package/dist/agents/middleware/provider/anthropic/promptCaching.d.cts +2 -3
- package/dist/agents/middleware/provider/anthropic/promptCaching.d.cts.map +1 -1
- package/dist/agents/middleware/provider/anthropic/promptCaching.d.ts +2 -3
- package/dist/agents/middleware/provider/anthropic/promptCaching.d.ts.map +1 -1
- package/dist/agents/middleware/provider/aws/promptCaching.d.cts +2 -3
- package/dist/agents/middleware/provider/aws/promptCaching.d.cts.map +1 -1
- package/dist/agents/middleware/provider/aws/promptCaching.d.ts +2 -3
- package/dist/agents/middleware/provider/aws/promptCaching.d.ts.map +1 -1
- package/dist/agents/middleware/provider/openai/moderation.d.cts +2 -3
- package/dist/agents/middleware/provider/openai/moderation.d.cts.map +1 -1
- package/dist/agents/middleware/provider/openai/moderation.d.ts +2 -3
- package/dist/agents/middleware/provider/openai/moderation.d.ts.map +1 -1
- package/dist/agents/middleware/providerToolSearch.d.cts +3 -4
- package/dist/agents/middleware/providerToolSearch.d.cts.map +1 -1
- package/dist/agents/middleware/providerToolSearch.d.ts +3 -4
- package/dist/agents/middleware/providerToolSearch.d.ts.map +1 -1
- package/dist/agents/middleware/summarization.d.cts +7 -8
- package/dist/agents/middleware/summarization.d.cts.map +1 -1
- package/dist/agents/middleware/summarization.d.ts +7 -8
- package/dist/agents/middleware/summarization.d.ts.map +1 -1
- package/dist/agents/middleware/todoListMiddleware.d.cts +4 -5
- package/dist/agents/middleware/todoListMiddleware.d.cts.map +1 -1
- package/dist/agents/middleware/todoListMiddleware.d.ts +4 -5
- package/dist/agents/middleware/todoListMiddleware.d.ts.map +1 -1
- package/dist/agents/middleware/toolCallLimit.d.cts +4 -5
- package/dist/agents/middleware/toolCallLimit.d.cts.map +1 -1
- package/dist/agents/middleware/toolCallLimit.d.ts +4 -5
- package/dist/agents/middleware/toolCallLimit.d.ts.map +1 -1
- package/dist/agents/middleware/toolEmulator.d.cts +2 -3
- package/dist/agents/middleware/toolEmulator.d.cts.map +1 -1
- package/dist/agents/middleware/toolEmulator.d.ts +2 -3
- package/dist/agents/middleware/toolEmulator.d.ts.map +1 -1
- package/dist/agents/middleware/toolError.d.cts +3 -4
- package/dist/agents/middleware/toolError.d.cts.map +1 -1
- package/dist/agents/middleware/toolError.d.ts +3 -4
- package/dist/agents/middleware/toolError.d.ts.map +1 -1
- package/dist/agents/middleware/toolRetry.d.cts +3 -4
- package/dist/agents/middleware/toolRetry.d.cts.map +1 -1
- package/dist/agents/middleware/toolRetry.d.ts +3 -4
- package/dist/agents/middleware/toolRetry.d.ts.map +1 -1
- package/dist/agents/middleware/types.d.cts +42 -43
- package/dist/agents/middleware/types.d.cts.map +1 -1
- package/dist/agents/middleware/types.d.ts +42 -43
- package/dist/agents/middleware/types.d.ts.map +1 -1
- package/dist/agents/middleware/utils.d.cts +1 -2
- package/dist/agents/middleware/utils.d.cts.map +1 -1
- package/dist/agents/middleware/utils.d.ts +1 -2
- package/dist/agents/middleware/utils.d.ts.map +1 -1
- package/dist/agents/middleware.d.cts +1 -2
- package/dist/agents/middleware.d.cts.map +1 -1
- package/dist/agents/middleware.d.ts +1 -2
- package/dist/agents/middleware.d.ts.map +1 -1
- package/dist/agents/model.d.cts +1 -2
- package/dist/agents/model.d.cts.map +1 -1
- package/dist/agents/model.d.ts +1 -2
- package/dist/agents/model.d.ts.map +1 -1
- package/dist/agents/nodes/types.d.cts +1 -2
- package/dist/agents/nodes/types.d.cts.map +1 -1
- package/dist/agents/nodes/types.d.ts +1 -2
- package/dist/agents/nodes/types.d.ts.map +1 -1
- package/dist/agents/responses.d.cts +18 -19
- package/dist/agents/responses.d.cts.map +1 -1
- package/dist/agents/responses.d.ts +18 -19
- package/dist/agents/responses.d.ts.map +1 -1
- package/dist/agents/runtime.d.cts +6 -6
- package/dist/agents/runtime.d.cts.map +1 -1
- package/dist/agents/runtime.d.ts +6 -6
- package/dist/agents/runtime.d.ts.map +1 -1
- package/dist/agents/tests/utils.d.cts +1 -2
- package/dist/agents/tests/utils.d.cts.map +1 -1
- package/dist/agents/tests/utils.d.ts +1 -2
- package/dist/agents/tests/utils.d.ts.map +1 -1
- package/dist/agents/transformers/subagent.d.cts +1 -2
- package/dist/agents/transformers/subagent.d.cts.map +1 -1
- package/dist/agents/transformers/subagent.d.ts +1 -2
- package/dist/agents/transformers/subagent.d.ts.map +1 -1
- package/dist/agents/transformers/tool-call.d.cts +1 -2
- package/dist/agents/transformers/tool-call.d.cts.map +1 -1
- package/dist/agents/transformers/tool-call.d.ts +1 -2
- package/dist/agents/transformers/tool-call.d.ts.map +1 -1
- package/dist/agents/transformers/types.d.cts +4 -5
- package/dist/agents/transformers/types.d.cts.map +1 -1
- package/dist/agents/transformers/types.d.ts +4 -5
- package/dist/agents/transformers/types.d.ts.map +1 -1
- package/dist/agents/types.d.cts +30 -30
- package/dist/agents/types.d.cts.map +1 -1
- package/dist/agents/types.d.ts +30 -30
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/chat_models/universal.d.cts +11 -12
- package/dist/chat_models/universal.d.cts.map +1 -1
- package/dist/chat_models/universal.d.ts +11 -12
- package/dist/chat_models/universal.d.ts.map +1 -1
- package/dist/hub/base.d.cts +1 -2
- package/dist/hub/base.d.cts.map +1 -1
- package/dist/hub/base.d.ts +1 -2
- package/dist/hub/base.d.ts.map +1 -1
- package/dist/hub/index.d.cts +2 -2
- package/dist/hub/index.d.cts.map +1 -1
- package/dist/hub/index.d.ts +2 -2
- package/dist/hub/index.d.ts.map +1 -1
- package/dist/hub/node.d.cts +3 -3
- package/dist/hub/node.d.cts.map +1 -1
- package/dist/hub/node.d.ts +3 -3
- package/dist/hub/node.d.ts.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/load/import_type.d.cts +1 -2
- package/dist/load/import_type.d.cts.map +1 -1
- package/dist/load/import_type.d.ts +1 -2
- package/dist/load/import_type.d.ts.map +1 -1
- package/dist/load/index.d.cts +1 -2
- package/dist/load/index.d.cts.map +1 -1
- package/dist/load/index.d.ts +1 -2
- package/dist/load/index.d.ts.map +1 -1
- package/dist/storage/encoder_backed.d.cts +2 -3
- package/dist/storage/encoder_backed.d.cts.map +1 -1
- package/dist/storage/encoder_backed.d.ts +2 -3
- package/dist/storage/encoder_backed.d.ts.map +1 -1
- package/dist/storage/file_system.d.cts +1 -2
- package/dist/storage/file_system.d.cts.map +1 -1
- package/dist/storage/file_system.d.ts +1 -2
- package/dist/storage/file_system.d.ts.map +1 -1
- package/dist/tools/headless.d.cts +4 -4
- package/dist/tools/headless.d.cts.map +1 -1
- package/dist/tools/headless.d.ts +4 -4
- package/dist/tools/headless.d.ts.map +1 -1
- package/package.json +19 -19
|
@@ -13,7 +13,6 @@ import { BaseMessage } from "@langchain/core/messages";
|
|
|
13
13
|
* LangChain tool instances are converted to OpenAI tool format before counting.
|
|
14
14
|
* @returns Approximate token count
|
|
15
15
|
*/
|
|
16
|
-
declare function countTokensApproximately(messages: BaseMessage[], tools?: Array<Record<string, any>> | null): number;
|
|
16
|
+
export declare function countTokensApproximately(messages: BaseMessage[], tools?: Array<Record<string, any>> | null): number;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { countTokensApproximately };
|
|
19
18
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/agents/middleware/utils.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/agents/middleware/utils.ts"],"mappings":";;;;;;;;;;;;;;;wBA0BgB,yBACd,UAAU,eAEV,QAAQ,MAAM"}
|
|
@@ -57,7 +57,7 @@ import { StateDefinitionInit, StreamTransformer } from "@langchain/langgraph";
|
|
|
57
57
|
* });
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
declare function createMiddleware<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []>(config: {
|
|
60
|
+
export declare function createMiddleware<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []>(config: {
|
|
61
61
|
/**
|
|
62
62
|
* The name of the middleware
|
|
63
63
|
*/
|
|
@@ -206,5 +206,4 @@ declare function createMiddleware<TSchema extends StateDefinitionInit | undefine
|
|
|
206
206
|
}): AgentMiddleware<TSchema, TContextSchema, NormalizeContextSchema<TContextSchema>, TTools, TStreamTransformers>;
|
|
207
207
|
type NormalizeContextSchema<TContextSchema extends InteropZodObject | undefined = undefined> = TContextSchema extends InteropZodObject ? InferInteropZodOutput<TContextSchema> : unknown;
|
|
208
208
|
//#endregion
|
|
209
|
-
export { createMiddleware };
|
|
210
209
|
//# sourceMappingURL=middleware.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/agents/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/agents/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2EgB,iBACd,gBAAgB,6CAChB,uBAAuB,gDACjB,yBAAyB,aAAa,0BACxC,aACA,qBAEE,4BAA4B,oBAE1B,uCAER;;;;EAIA;;;;;;;;EAQA,cAAc;;;;;;;;EAQd,gBAAgB;;;;EAIhB,QAAQ;;;;;EAKR,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDrB,eAAe,iBACb,SACA,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCzB,gBAAgB,kBACd,SACA,uBAAuB;;;;;;;;;EAUzB,cAAc,gBACZ,SACA,uBAAuB;;;;;;;;;EAWzB,cAAc,gBACZ,SACA,uBAAuB;;;;;;;;;EAWzB,aAAa,eAAe,SAAS,uBAAuB;;;;;;;;;EAU5D,aAAa,eAAe,SAAS,uBAAuB;IAC1D,gBACF,SACA,gBACA,uBAAuB,iBACvB,QACA;KA0BG,uBACH,uBAAuB,4CACrB,uBAAuB,mBACvB,sBAAsB"}
|
|
@@ -57,7 +57,7 @@ import { InferInteropZodOutput, InteropZodObject } from "@langchain/core/utils/t
|
|
|
57
57
|
* });
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
declare function createMiddleware<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []>(config: {
|
|
60
|
+
export declare function createMiddleware<TSchema extends StateDefinitionInit | undefined = undefined, TContextSchema extends InteropZodObject | undefined = undefined, const TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []>(config: {
|
|
61
61
|
/**
|
|
62
62
|
* The name of the middleware
|
|
63
63
|
*/
|
|
@@ -206,5 +206,4 @@ declare function createMiddleware<TSchema extends StateDefinitionInit | undefine
|
|
|
206
206
|
}): AgentMiddleware<TSchema, TContextSchema, NormalizeContextSchema<TContextSchema>, TTools, TStreamTransformers>;
|
|
207
207
|
type NormalizeContextSchema<TContextSchema extends InteropZodObject | undefined = undefined> = TContextSchema extends InteropZodObject ? InferInteropZodOutput<TContextSchema> : unknown;
|
|
208
208
|
//#endregion
|
|
209
|
-
export { createMiddleware };
|
|
210
209
|
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/agents/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","names":[],"sources":["../../src/agents/middleware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2EgB,iBACd,gBAAgB,6CAChB,uBAAuB,gDACjB,yBAAyB,aAAa,0BACxC,aACA,qBAEE,4BAA4B,oBAE1B,uCAER;;;;EAIA;;;;;;;;EAQA,cAAc;;;;;;;;EAQd,gBAAgB;;;;EAIhB,QAAQ;;;;;EAKR,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDrB,eAAe,iBACb,SACA,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCzB,gBAAgB,kBACd,SACA,uBAAuB;;;;;;;;;EAUzB,cAAc,gBACZ,SACA,uBAAuB;;;;;;;;;EAWzB,cAAc,gBACZ,SACA,uBAAuB;;;;;;;;;EAWzB,aAAa,eAAe,SAAS,uBAAuB;;;;;;;;;EAU5D,aAAa,eAAe,SAAS,uBAAuB;IAC1D,gBACF,SACA,gBACA,uBAAuB,iBACvB,QACA;KA0BG,uBACH,uBAAuB,4CACrB,uBAAuB,mBACvB,sBAAsB"}
|
package/dist/agents/model.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { BaseLanguageModelInput, LanguageModelOutput } from "@langchain/core/lan
|
|
|
2
2
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
3
3
|
import { RunnableInterface } from "@langchain/core/runnables";
|
|
4
4
|
//#region src/agents/model.d.ts
|
|
5
|
-
type AgentLanguageModelLike = RunnableInterface<BaseLanguageModelInput, LanguageModelOutput>;
|
|
5
|
+
export type AgentLanguageModelLike = RunnableInterface<BaseLanguageModelInput, LanguageModelOutput>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { AgentLanguageModelLike };
|
|
8
7
|
//# sourceMappingURL=model.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.cts","names":[],"sources":["../../src/agents/model.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"model.d.cts","names":[],"sources":["../../src/agents/model.ts"],"mappings":";;;;YAOY,yBAAyB,kBACnC,wBACA"}
|
package/dist/agents/model.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
|
2
2
|
import { RunnableInterface } from "@langchain/core/runnables";
|
|
3
3
|
import { BaseLanguageModelInput, LanguageModelOutput } from "@langchain/core/language_models/base";
|
|
4
4
|
//#region src/agents/model.d.ts
|
|
5
|
-
type AgentLanguageModelLike = RunnableInterface<BaseLanguageModelInput, LanguageModelOutput>;
|
|
5
|
+
export type AgentLanguageModelLike = RunnableInterface<BaseLanguageModelInput, LanguageModelOutput>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { AgentLanguageModelLike };
|
|
8
7
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/agents/model.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/agents/model.ts"],"mappings":";;;;YAOY,yBAAyB,kBACnC,wBACA"}
|
|
@@ -11,7 +11,7 @@ import { ClientTool, ServerTool } from "@langchain/core/tools";
|
|
|
11
11
|
* @template TState - The agent's state type, must extend Record<string, unknown>. Defaults to Record<string, unknown>.
|
|
12
12
|
* @template TContext - The runtime context type for accessing metadata and control flow. Defaults to unknown.
|
|
13
13
|
*/
|
|
14
|
-
interface ModelRequest<TState extends Record<string, unknown> = Record<string, unknown>, TContext = unknown, TResponseFormat extends ResponseFormatInput = ResponseFormatInput> {
|
|
14
|
+
export interface ModelRequest<TState extends Record<string, unknown> = Record<string, unknown>, TContext = unknown, TResponseFormat extends ResponseFormatInput = ResponseFormatInput> {
|
|
15
15
|
/**
|
|
16
16
|
* The model to use for this step.
|
|
17
17
|
*/
|
|
@@ -108,5 +108,4 @@ interface ModelRequest<TState extends Record<string, unknown> = Record<string, u
|
|
|
108
108
|
modelSettings?: Record<string, unknown>;
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
-
export { ModelRequest };
|
|
112
111
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/agents/nodes/types.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":["LanguageModelLike"],"sources":["../../../src/agents/nodes/types.ts"],"mappings":";;;;;;;;;;;;;iBAciB,aACf,eAAe,0BAA0B,yBACzC,oBACA,wBAAwB,sBAAsB;;;;EAK9C,OAAOA;;;;EAIP,UAAU;;;;;;;EAOV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,eAAe;;;;;;;;;EASf;IAIM;IAAkB;MAAY;;;;;;EAKpC,QAAQ,aAAa;;;;EAKrB,OAAO,SAAS;;;;;EAMhB,iBAAiB;;;;EAKjB,SAAS,QAAQ;;;;;;;;;;;;;;;EAgBjB,gBAAgB"}
|
|
@@ -11,7 +11,7 @@ import { ClientTool, ServerTool } from "@langchain/core/tools";
|
|
|
11
11
|
* @template TState - The agent's state type, must extend Record<string, unknown>. Defaults to Record<string, unknown>.
|
|
12
12
|
* @template TContext - The runtime context type for accessing metadata and control flow. Defaults to unknown.
|
|
13
13
|
*/
|
|
14
|
-
interface ModelRequest<TState extends Record<string, unknown> = Record<string, unknown>, TContext = unknown, TResponseFormat extends ResponseFormatInput = ResponseFormatInput> {
|
|
14
|
+
export interface ModelRequest<TState extends Record<string, unknown> = Record<string, unknown>, TContext = unknown, TResponseFormat extends ResponseFormatInput = ResponseFormatInput> {
|
|
15
15
|
/**
|
|
16
16
|
* The model to use for this step.
|
|
17
17
|
*/
|
|
@@ -108,5 +108,4 @@ interface ModelRequest<TState extends Record<string, unknown> = Record<string, u
|
|
|
108
108
|
modelSettings?: Record<string, unknown>;
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
-
export { ModelRequest };
|
|
112
111
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/agents/nodes/types.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":["LanguageModelLike"],"sources":["../../../src/agents/nodes/types.ts"],"mappings":";;;;;;;;;;;;;iBAciB,aACf,eAAe,0BAA0B,yBACzC,oBACA,wBAAwB,sBAAsB;;;;EAK9C,OAAOA;;;;EAIP,UAAU;;;;;;;EAOV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,eAAe;;;;;;;;;EASf;IAIM;IAAkB;MAAY;;;;;;EAKpC,QAAQ,aAAa;;;;EAKrB,OAAO,SAAS;;;;;EAMhB,iBAAiB;;;;EAKjB,SAAS,QAAQ;;;;;;;;;;;;;;;EAgBjB,gBAAgB"}
|
|
@@ -9,7 +9,7 @@ import { SerializableSchema } from "@langchain/core/utils/standard_schema";
|
|
|
9
9
|
* Special type to indicate that no response format is provided.
|
|
10
10
|
* When this type is used, the structuredResponse property should not be present in the result.
|
|
11
11
|
*/
|
|
12
|
-
type ResponseFormatUndefined = {
|
|
12
|
+
export type ResponseFormatUndefined = {
|
|
13
13
|
__responseFormatUndefined: true;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -18,7 +18,7 @@ type ResponseFormatUndefined = {
|
|
|
18
18
|
* via tool calls, including the original schema, its type classification, and the
|
|
19
19
|
* corresponding tool implementation used by the tools strategy.
|
|
20
20
|
*/
|
|
21
|
-
declare class ToolStrategy<_T = unknown> {
|
|
21
|
+
export declare class ToolStrategy<_T = unknown> {
|
|
22
22
|
/**
|
|
23
23
|
* The original JSON Schema provided for structured output
|
|
24
24
|
*/
|
|
@@ -48,7 +48,7 @@ declare class ToolStrategy<_T = unknown> {
|
|
|
48
48
|
*/
|
|
49
49
|
parse(toolArgs: Record<string, unknown>): Record<string, unknown>;
|
|
50
50
|
}
|
|
51
|
-
declare class ProviderStrategy<T = unknown> {
|
|
51
|
+
export declare class ProviderStrategy<T = unknown> {
|
|
52
52
|
private _schemaType?;
|
|
53
53
|
/**
|
|
54
54
|
* The schema to use for the provider strategy
|
|
@@ -71,16 +71,16 @@ declare class ProviderStrategy<T = unknown> {
|
|
|
71
71
|
*/
|
|
72
72
|
parse(response: AIMessage): any;
|
|
73
73
|
}
|
|
74
|
-
type ResponseFormat = ToolStrategy<any> | ProviderStrategy<any>;
|
|
75
|
-
type ResponseFormatInput<StructuredResponseType extends Record<string, any> = Record<string, any>> = InteropZodType<StructuredResponseType> | InteropZodType<unknown>[] | SerializableSchema<StructuredResponseType> | SerializableSchema[] | JsonSchemaFormat | JsonSchemaFormat[] | ResponseFormat | ResponseFormat[] | TypedToolStrategy<StructuredResponseType> | ToolStrategy<StructuredResponseType> | ProviderStrategy<StructuredResponseType> | ResponseFormatUndefined;
|
|
74
|
+
export type ResponseFormat = ToolStrategy<any> | ProviderStrategy<any>;
|
|
75
|
+
export type ResponseFormatInput<StructuredResponseType extends Record<string, any> = Record<string, any>> = InteropZodType<StructuredResponseType> | InteropZodType<unknown>[] | SerializableSchema<StructuredResponseType> | SerializableSchema[] | JsonSchemaFormat | JsonSchemaFormat[] | ResponseFormat | ResponseFormat[] | TypedToolStrategy<StructuredResponseType> | ToolStrategy<StructuredResponseType> | ProviderStrategy<StructuredResponseType> | ResponseFormatUndefined;
|
|
76
76
|
/**
|
|
77
77
|
* Branded type for ToolStrategy arrays that preserves type information
|
|
78
78
|
*/
|
|
79
|
-
interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
79
|
+
export interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
80
80
|
_schemaType?: T;
|
|
81
81
|
}
|
|
82
|
-
type ToolStrategyError = StructuredOutputParsingError | MultipleStructuredOutputsError;
|
|
83
|
-
interface ToolStrategyOptions {
|
|
82
|
+
export type ToolStrategyError = StructuredOutputParsingError | MultipleStructuredOutputsError;
|
|
83
|
+
export interface ToolStrategyOptions {
|
|
84
84
|
/**
|
|
85
85
|
* Allows you to customize the message that appears in the conversation history when structured
|
|
86
86
|
* output is generated.
|
|
@@ -102,12 +102,12 @@ interface ToolStrategyOptions {
|
|
|
102
102
|
*/
|
|
103
103
|
handleError?: boolean | string | ((error: ToolStrategyError) => Promise<string> | string);
|
|
104
104
|
}
|
|
105
|
-
declare function toolStrategy<T extends InteropZodType<any>>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
106
|
-
declare function toolStrategy<T extends readonly InteropZodType<any>[]>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<{ [K in keyof T]: T[K] extends InteropZodType<infer U> ? U : never; }[number]>;
|
|
107
|
-
declare function toolStrategy(responseFormat: SerializableSchema, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
108
|
-
declare function toolStrategy(responseFormat: SerializableSchema[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
109
|
-
declare function toolStrategy(responseFormat: JsonSchemaFormat, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
110
|
-
declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
105
|
+
export declare function toolStrategy<T extends InteropZodType<any>>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
106
|
+
export declare function toolStrategy<T extends readonly InteropZodType<any>[]>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<{ [K in keyof T]: T[K] extends InteropZodType<infer U> ? U : never; }[number]>;
|
|
107
|
+
export declare function toolStrategy(responseFormat: SerializableSchema, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
108
|
+
export declare function toolStrategy(responseFormat: SerializableSchema[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
109
|
+
export declare function toolStrategy(responseFormat: JsonSchemaFormat, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
110
|
+
export declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
111
111
|
/**
|
|
112
112
|
* Creates a provider strategy for structured output using native JSON schema support.
|
|
113
113
|
*
|
|
@@ -155,15 +155,15 @@ declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: Tool
|
|
|
155
155
|
* });
|
|
156
156
|
* ```
|
|
157
157
|
*/
|
|
158
|
-
declare function providerStrategy<T extends InteropZodType<unknown>>(responseFormat: T | {
|
|
158
|
+
export declare function providerStrategy<T extends InteropZodType<unknown>>(responseFormat: T | {
|
|
159
159
|
schema: T;
|
|
160
160
|
strict?: boolean;
|
|
161
161
|
}): ProviderStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
162
|
-
declare function providerStrategy(responseFormat: SerializableSchema | {
|
|
162
|
+
export declare function providerStrategy(responseFormat: SerializableSchema | {
|
|
163
163
|
schema: SerializableSchema;
|
|
164
164
|
strict?: boolean;
|
|
165
165
|
}): ProviderStrategy<Record<string, unknown>>;
|
|
166
|
-
declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
166
|
+
export declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
167
167
|
schema: JsonSchemaFormat;
|
|
168
168
|
strict?: boolean;
|
|
169
169
|
}): ProviderStrategy<Record<string, unknown>>;
|
|
@@ -171,7 +171,7 @@ declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
|
171
171
|
* Type representing a JSON Schema object format.
|
|
172
172
|
* This is a strict type that excludes ToolStrategy and ProviderStrategy instances.
|
|
173
173
|
*/
|
|
174
|
-
type JsonSchemaFormat = {
|
|
174
|
+
export type JsonSchemaFormat = {
|
|
175
175
|
type: "null" | "boolean" | "object" | "array" | "number" | "string" | "integer";
|
|
176
176
|
properties?: Record<string, unknown>;
|
|
177
177
|
required?: string[];
|
|
@@ -181,5 +181,4 @@ type JsonSchemaFormat = {
|
|
|
181
181
|
__brand?: never;
|
|
182
182
|
};
|
|
183
183
|
//#endregion
|
|
184
|
-
export { JsonSchemaFormat, ProviderStrategy, ResponseFormat, ResponseFormatInput, ResponseFormatUndefined, ToolStrategy, ToolStrategyError, ToolStrategyOptions, TypedToolStrategy, providerStrategy, toolStrategy };
|
|
185
184
|
//# sourceMappingURL=responses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.cts","names":[],"sources":["../../src/agents/responses.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"responses.d.cts","names":[],"sources":["../../src/agents/responses.ts"],"mappings":";;;;;;;;;;;YA2BY;EACV;;;;;;;;qBAyBW,aAAa;;;;WAKN,QAAQ;;;;WAKR;IACd;IACA,UAAU;;;;;WAMI,UAAU;UAjBrB;MAoBH;SAIG,WAAW,UAAU,kBAC1B,QAAQ,GACR,gBAAgB,sBACf,aAAa,UAAU,qBAAqB,KAAK;SAE7C,WACL,QAAQ,oBACR,gBAAgB,sBACf,aAAa;SAET,WACL,QAAQ,yBACR,gBAAgB,sBACf,aAAa;;;;;;;;EA2DhB,MAAM,UAAU,0BAA0B;;qBAa/B,iBAAiB;UAEpB;;;;WAKQ,QAAQ;;;;WAKR;UAET;UAIA;SAyBA,WAAW,GAChB,QAAQ,eAAe,IACvB,mBACC,iBAAiB;SAEb,WACL,QAAQ,oBACR,mBACC,iBAAiB;SAEb,WACL,QAAQ,yBACR,mBACC,iBAAiB;;;;;;;EAkBpB,MAAM,UAAU;;YAqDN,iBAAiB,oBAAoB;YAErC,oBACV,+BAA+B,sBAAsB,uBAEnD,eAAe,0BACf,4BACA,mBAAmB,0BACnB,uBACA,mBACA,qBACA,iBACA,mBACA,kBAAkB,0BAClB,aAAa,0BACb,iBAAiB,0BACjB;;;;iBAyIa,kBAAkB,qBAAqB,MACtD;EAEA,cAAc;;YAEJ,oBACR,+BACA;iBACa;;;;;EAKf;;;;;;;;;;;;;;;EAeA,mCAGM,OAAO,sBAAsB;;wBAGrB,aAAa,UAAU,qBACrC,gBAAgB,GAChB,UAAU,sBACT,kBAAkB,UAAU,qBAAqB,KAAK;wBACzC,aAAa,mBAAmB,uBAC9C,gBAAgB,GAChB,UAAU,sBACT,qBACE,WAAW,IAAI,EAAE,WAAW,qBAAqB,KAAK;wBAE3C,aACd,gBAAgB,oBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,sBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,kBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,oBAChB,UAAU,sBACT,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgHL,iBAAiB,UAAU,yBACzC,gBAAgB;EAAM,QAAQ;EAAG;IAChC,iBAAiB,UAAU,qBAAqB,KAAK;wBACxC,iBACd,gBACI;EACE,QAAQ;EAAoB;IACjC,iBAAiB;wBACJ,iBACd,gBACI;EACE,QAAQ;EAAkB;IAC/B,iBAAiB;;;;;YA4CR;EACV;EAQA,aAAa;EACb;EACA;GACC;;EAGD"}
|
|
@@ -9,7 +9,7 @@ import { FunctionDefinition } from "@langchain/core/language_models/base";
|
|
|
9
9
|
* Special type to indicate that no response format is provided.
|
|
10
10
|
* When this type is used, the structuredResponse property should not be present in the result.
|
|
11
11
|
*/
|
|
12
|
-
type ResponseFormatUndefined = {
|
|
12
|
+
export type ResponseFormatUndefined = {
|
|
13
13
|
__responseFormatUndefined: true;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -18,7 +18,7 @@ type ResponseFormatUndefined = {
|
|
|
18
18
|
* via tool calls, including the original schema, its type classification, and the
|
|
19
19
|
* corresponding tool implementation used by the tools strategy.
|
|
20
20
|
*/
|
|
21
|
-
declare class ToolStrategy<_T = unknown> {
|
|
21
|
+
export declare class ToolStrategy<_T = unknown> {
|
|
22
22
|
/**
|
|
23
23
|
* The original JSON Schema provided for structured output
|
|
24
24
|
*/
|
|
@@ -48,7 +48,7 @@ declare class ToolStrategy<_T = unknown> {
|
|
|
48
48
|
*/
|
|
49
49
|
parse(toolArgs: Record<string, unknown>): Record<string, unknown>;
|
|
50
50
|
}
|
|
51
|
-
declare class ProviderStrategy<T = unknown> {
|
|
51
|
+
export declare class ProviderStrategy<T = unknown> {
|
|
52
52
|
private _schemaType?;
|
|
53
53
|
/**
|
|
54
54
|
* The schema to use for the provider strategy
|
|
@@ -71,16 +71,16 @@ declare class ProviderStrategy<T = unknown> {
|
|
|
71
71
|
*/
|
|
72
72
|
parse(response: AIMessage): any;
|
|
73
73
|
}
|
|
74
|
-
type ResponseFormat = ToolStrategy<any> | ProviderStrategy<any>;
|
|
75
|
-
type ResponseFormatInput<StructuredResponseType extends Record<string, any> = Record<string, any>> = InteropZodType<StructuredResponseType> | InteropZodType<unknown>[] | SerializableSchema<StructuredResponseType> | SerializableSchema[] | JsonSchemaFormat | JsonSchemaFormat[] | ResponseFormat | ResponseFormat[] | TypedToolStrategy<StructuredResponseType> | ToolStrategy<StructuredResponseType> | ProviderStrategy<StructuredResponseType> | ResponseFormatUndefined;
|
|
74
|
+
export type ResponseFormat = ToolStrategy<any> | ProviderStrategy<any>;
|
|
75
|
+
export type ResponseFormatInput<StructuredResponseType extends Record<string, any> = Record<string, any>> = InteropZodType<StructuredResponseType> | InteropZodType<unknown>[] | SerializableSchema<StructuredResponseType> | SerializableSchema[] | JsonSchemaFormat | JsonSchemaFormat[] | ResponseFormat | ResponseFormat[] | TypedToolStrategy<StructuredResponseType> | ToolStrategy<StructuredResponseType> | ProviderStrategy<StructuredResponseType> | ResponseFormatUndefined;
|
|
76
76
|
/**
|
|
77
77
|
* Branded type for ToolStrategy arrays that preserves type information
|
|
78
78
|
*/
|
|
79
|
-
interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
79
|
+
export interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
80
80
|
_schemaType?: T;
|
|
81
81
|
}
|
|
82
|
-
type ToolStrategyError = StructuredOutputParsingError | MultipleStructuredOutputsError;
|
|
83
|
-
interface ToolStrategyOptions {
|
|
82
|
+
export type ToolStrategyError = StructuredOutputParsingError | MultipleStructuredOutputsError;
|
|
83
|
+
export interface ToolStrategyOptions {
|
|
84
84
|
/**
|
|
85
85
|
* Allows you to customize the message that appears in the conversation history when structured
|
|
86
86
|
* output is generated.
|
|
@@ -102,12 +102,12 @@ interface ToolStrategyOptions {
|
|
|
102
102
|
*/
|
|
103
103
|
handleError?: boolean | string | ((error: ToolStrategyError) => Promise<string> | string);
|
|
104
104
|
}
|
|
105
|
-
declare function toolStrategy<T extends InteropZodType<any>>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
106
|
-
declare function toolStrategy<T extends readonly InteropZodType<any>[]>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<{ [K in keyof T]: T[K] extends InteropZodType<infer U> ? U : never; }[number]>;
|
|
107
|
-
declare function toolStrategy(responseFormat: SerializableSchema, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
108
|
-
declare function toolStrategy(responseFormat: SerializableSchema[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
109
|
-
declare function toolStrategy(responseFormat: JsonSchemaFormat, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
110
|
-
declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
105
|
+
export declare function toolStrategy<T extends InteropZodType<any>>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
106
|
+
export declare function toolStrategy<T extends readonly InteropZodType<any>[]>(responseFormat: T, options?: ToolStrategyOptions): TypedToolStrategy<{ [K in keyof T]: T[K] extends InteropZodType<infer U> ? U : never; }[number]>;
|
|
107
|
+
export declare function toolStrategy(responseFormat: SerializableSchema, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
108
|
+
export declare function toolStrategy(responseFormat: SerializableSchema[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
109
|
+
export declare function toolStrategy(responseFormat: JsonSchemaFormat, options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
110
|
+
export declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: ToolStrategyOptions): TypedToolStrategy<Record<string, unknown>>;
|
|
111
111
|
/**
|
|
112
112
|
* Creates a provider strategy for structured output using native JSON schema support.
|
|
113
113
|
*
|
|
@@ -155,15 +155,15 @@ declare function toolStrategy(responseFormat: JsonSchemaFormat[], options?: Tool
|
|
|
155
155
|
* });
|
|
156
156
|
* ```
|
|
157
157
|
*/
|
|
158
|
-
declare function providerStrategy<T extends InteropZodType<unknown>>(responseFormat: T | {
|
|
158
|
+
export declare function providerStrategy<T extends InteropZodType<unknown>>(responseFormat: T | {
|
|
159
159
|
schema: T;
|
|
160
160
|
strict?: boolean;
|
|
161
161
|
}): ProviderStrategy<T extends InteropZodType<infer U> ? U : never>;
|
|
162
|
-
declare function providerStrategy(responseFormat: SerializableSchema | {
|
|
162
|
+
export declare function providerStrategy(responseFormat: SerializableSchema | {
|
|
163
163
|
schema: SerializableSchema;
|
|
164
164
|
strict?: boolean;
|
|
165
165
|
}): ProviderStrategy<Record<string, unknown>>;
|
|
166
|
-
declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
166
|
+
export declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
167
167
|
schema: JsonSchemaFormat;
|
|
168
168
|
strict?: boolean;
|
|
169
169
|
}): ProviderStrategy<Record<string, unknown>>;
|
|
@@ -171,7 +171,7 @@ declare function providerStrategy(responseFormat: JsonSchemaFormat | {
|
|
|
171
171
|
* Type representing a JSON Schema object format.
|
|
172
172
|
* This is a strict type that excludes ToolStrategy and ProviderStrategy instances.
|
|
173
173
|
*/
|
|
174
|
-
type JsonSchemaFormat = {
|
|
174
|
+
export type JsonSchemaFormat = {
|
|
175
175
|
type: "null" | "boolean" | "object" | "array" | "number" | "string" | "integer";
|
|
176
176
|
properties?: Record<string, unknown>;
|
|
177
177
|
required?: string[];
|
|
@@ -181,5 +181,4 @@ type JsonSchemaFormat = {
|
|
|
181
181
|
__brand?: never;
|
|
182
182
|
};
|
|
183
183
|
//#endregion
|
|
184
|
-
export { JsonSchemaFormat, ProviderStrategy, ResponseFormat, ResponseFormatInput, ResponseFormatUndefined, ToolStrategy, ToolStrategyError, ToolStrategyOptions, TypedToolStrategy, providerStrategy, toolStrategy };
|
|
185
184
|
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","names":[],"sources":["../../src/agents/responses.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"responses.d.ts","names":[],"sources":["../../src/agents/responses.ts"],"mappings":";;;;;;;;;;;YA2BY;EACV;;;;;;;;qBAyBW,aAAa;;;;WAKN,QAAQ;;;;WAKR;IACd;IACA,UAAU;;;;;WAMI,UAAU;UAjBrB;MAoBH;SAIG,WAAW,UAAU,kBAC1B,QAAQ,GACR,gBAAgB,sBACf,aAAa,UAAU,qBAAqB,KAAK;SAE7C,WACL,QAAQ,oBACR,gBAAgB,sBACf,aAAa;SAET,WACL,QAAQ,yBACR,gBAAgB,sBACf,aAAa;;;;;;;;EA2DhB,MAAM,UAAU,0BAA0B;;qBAa/B,iBAAiB;UAEpB;;;;WAKQ,QAAQ;;;;WAKR;UAET;UAIA;SAyBA,WAAW,GAChB,QAAQ,eAAe,IACvB,mBACC,iBAAiB;SAEb,WACL,QAAQ,oBACR,mBACC,iBAAiB;SAEb,WACL,QAAQ,yBACR,mBACC,iBAAiB;;;;;;;EAkBpB,MAAM,UAAU;;YAqDN,iBAAiB,oBAAoB;YAErC,oBACV,+BAA+B,sBAAsB,uBAEnD,eAAe,0BACf,4BACA,mBAAmB,0BACnB,uBACA,mBACA,qBACA,iBACA,mBACA,kBAAkB,0BAClB,aAAa,0BACb,iBAAiB,0BACjB;;;;iBAyIa,kBAAkB,qBAAqB,MACtD;EAEA,cAAc;;YAEJ,oBACR,+BACA;iBACa;;;;;EAKf;;;;;;;;;;;;;;;EAeA,mCAGM,OAAO,sBAAsB;;wBAGrB,aAAa,UAAU,qBACrC,gBAAgB,GAChB,UAAU,sBACT,kBAAkB,UAAU,qBAAqB,KAAK;wBACzC,aAAa,mBAAmB,uBAC9C,gBAAgB,GAChB,UAAU,sBACT,qBACE,WAAW,IAAI,EAAE,WAAW,qBAAqB,KAAK;wBAE3C,aACd,gBAAgB,oBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,sBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,kBAChB,UAAU,sBACT,kBAAkB;wBACL,aACd,gBAAgB,oBAChB,UAAU,sBACT,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgHL,iBAAiB,UAAU,yBACzC,gBAAgB;EAAM,QAAQ;EAAG;IAChC,iBAAiB,UAAU,qBAAqB,KAAK;wBACxC,iBACd,gBACI;EACE,QAAQ;EAAoB;IACjC,iBAAiB;wBACJ,iBACd,gBACI;EACE,QAAQ;EAAkB;IAC/B,iBAAiB;;;;;YA4CR;EACV;EAQA,aAAa;EACb;EACA;GACC;;EAGD"}
|
|
@@ -7,7 +7,7 @@ import { PregelOptions, Runtime, StreamMode } from "@langchain/langgraph";
|
|
|
7
7
|
/**
|
|
8
8
|
* Type for the agent's built-in state properties.
|
|
9
9
|
*/
|
|
10
|
-
type AgentBuiltInState = {
|
|
10
|
+
export type AgentBuiltInState = {
|
|
11
11
|
/**
|
|
12
12
|
* Array of messages representing the conversation history.
|
|
13
13
|
*
|
|
@@ -40,7 +40,7 @@ type AgentBuiltInState = {
|
|
|
40
40
|
*/
|
|
41
41
|
type IsOptionalZodObject<T> = T extends InteropZodOptional<any> ? true : false;
|
|
42
42
|
type IsDefaultZodObject<T> = T extends InteropZodDefault<any> ? true : false;
|
|
43
|
-
type WithMaybeContext<TContext> = undefined extends TContext ? {
|
|
43
|
+
export type WithMaybeContext<TContext> = undefined extends TContext ? {
|
|
44
44
|
readonly context?: TContext;
|
|
45
45
|
} : IsOptionalZodObject<TContext> extends true ? {
|
|
46
46
|
readonly context?: TContext;
|
|
@@ -69,7 +69,7 @@ type ExtractNonUndefined<T> = T extends undefined ? never : T;
|
|
|
69
69
|
/**
|
|
70
70
|
* Helper type to check if all properties of a type are optional
|
|
71
71
|
*/
|
|
72
|
-
type IsAllOptional<T> = undefined extends T ? true : IsOptionalType<T> extends true ? true : ExtractNonUndefined<T> extends Record<string, any> ? {} extends ExtractNonUndefined<T> ? true : false : IsOptionalType<T>;
|
|
72
|
+
export type IsAllOptional<T> = undefined extends T ? true : IsOptionalType<T> extends true ? true : ExtractNonUndefined<T> extends Record<string, any> ? {} extends ExtractNonUndefined<T> ? true : false : IsOptionalType<T>;
|
|
73
73
|
/**
|
|
74
74
|
* Pregel options that are propagated to the agent
|
|
75
75
|
*/
|
|
@@ -81,7 +81,7 @@ type CreateAgentPregelStreamOptions = "encoding" | "streamMode";
|
|
|
81
81
|
/**
|
|
82
82
|
* Decide whether provided configuration requires a context
|
|
83
83
|
*/
|
|
84
|
-
type InvokeConfiguration<ContextSchema extends Record<string, any>> =
|
|
84
|
+
export type InvokeConfiguration<ContextSchema extends Record<string, any>> =
|
|
85
85
|
/**
|
|
86
86
|
* If the context schema is a default object, `context` can be optional
|
|
87
87
|
*/
|
|
@@ -90,7 +90,7 @@ ContextSchema extends InteropZodDefault<any> ? BaseCallbackConfig & Partial<Pick
|
|
|
90
90
|
} : IsAllOptional<ContextSchema> extends true ? BaseCallbackConfig & Partial<Pick<PregelOptions<any, any, any>, CreateAgentPregelOptions>> & {
|
|
91
91
|
context?: Partial<ContextSchema>;
|
|
92
92
|
} : BaseCallbackConfig & Partial<Pick<PregelOptions<any, any, any>, CreateAgentPregelOptions>> & WithMaybeContext<ContextSchema>;
|
|
93
|
-
type StreamConfiguration<ContextSchema extends Record<string, any>, TStreamMode extends StreamMode | StreamMode[] | undefined, TSubgraphs extends boolean, TEncoding extends "text/event-stream" | undefined> =
|
|
93
|
+
export type StreamConfiguration<ContextSchema extends Record<string, any>, TStreamMode extends StreamMode | StreamMode[] | undefined, TSubgraphs extends boolean, TEncoding extends "text/event-stream" | undefined> =
|
|
94
94
|
/**
|
|
95
95
|
* If the context schema is a default object, `context` can be optional
|
|
96
96
|
*/
|
|
@@ -100,5 +100,5 @@ ContextSchema extends InteropZodDefault<any> ? Partial<Pick<PregelOptions<any, a
|
|
|
100
100
|
context?: Partial<ContextSchema>;
|
|
101
101
|
} : Partial<Pick<PregelOptions<any, any, any, TStreamMode, TSubgraphs, TEncoding>, CreateAgentPregelOptions | CreateAgentPregelStreamOptions>> & WithMaybeContext<ContextSchema>;
|
|
102
102
|
//#endregion
|
|
103
|
-
export {
|
|
103
|
+
export { Runtime$1 as Runtime };
|
|
104
104
|
//# sourceMappingURL=runtime.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../../src/agents/runtime.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"runtime.d.cts","names":["Runtime","LangGraphRuntime"],"sources":["../../src/agents/runtime.ts"],"mappings":";;;;;;;;;YAgBY;;;;;;;;;;;;;EAaV,UAAU;;;;;;;;;;;;;EAaV,qBAAqB;;;;;KAMlB,oBAAoB,KAAK,UAAU;KACnC,mBAAmB,KAAK,UAAU;YAE3B,iBAAiB,8BAA8B;WAC5C,UAAU;IACrB,oBAAoB;WACP,UAAU;IACrB,mBAAmB;WACN,UAAU;;WACV,SAAS;;;;;KAKhBA,UAAQ,sBAAsB,QACxC,KAAKC,QAAiB,0CAEtB,iBAAiB;EACf;IACE;KACC;;;;;;KAkBF,eAAe,uBAAuB;;;;KAKtC,oBAAoB,KAAK,8BAA8B;;;;YAKhD,cAAc,uBAEN,WAEd,eAAe,yBAEb,oBAAoB,WAAW,iCAClB,oBAAoB,oBAG/B,eAAe;;;;KAKpB;;;;KAeA;;;;YAKO,oBAAoB,sBAAsB;;;;AAIpD,sBAAsB,yBAClB,qBACE,QACE,KAAK,8BAA8B;EAEnC,UAAU,QAAQ;IAKtB,cAAc,8BACZ,qBACE,QACE,KAAK,8BAA8B;EAEnC,UAAU,QAAQ;IAEtB,qBACE,QACE,KAAK,8BAA8B,6BAErC,iBAAiB;YAEf,oBACV,sBAAsB,qBACtB,oBAAoB,aAAa,0BACjC,4BACA;;;;AAKA,sBAAsB,yBAClB,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B;EAG7B,UAAU,QAAQ;IAKpB,cAAc,8BACZ,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B;EAG7B,UAAU,QAAQ;IAEpB,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B,mCAG7B,iBAAiB"}
|
package/dist/agents/runtime.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { BaseCallbackConfig } from "@langchain/core/callbacks/manager";
|
|
|
7
7
|
/**
|
|
8
8
|
* Type for the agent's built-in state properties.
|
|
9
9
|
*/
|
|
10
|
-
type AgentBuiltInState = {
|
|
10
|
+
export type AgentBuiltInState = {
|
|
11
11
|
/**
|
|
12
12
|
* Array of messages representing the conversation history.
|
|
13
13
|
*
|
|
@@ -40,7 +40,7 @@ type AgentBuiltInState = {
|
|
|
40
40
|
*/
|
|
41
41
|
type IsOptionalZodObject<T> = T extends InteropZodOptional<any> ? true : false;
|
|
42
42
|
type IsDefaultZodObject<T> = T extends InteropZodDefault<any> ? true : false;
|
|
43
|
-
type WithMaybeContext<TContext> = undefined extends TContext ? {
|
|
43
|
+
export type WithMaybeContext<TContext> = undefined extends TContext ? {
|
|
44
44
|
readonly context?: TContext;
|
|
45
45
|
} : IsOptionalZodObject<TContext> extends true ? {
|
|
46
46
|
readonly context?: TContext;
|
|
@@ -69,7 +69,7 @@ type ExtractNonUndefined<T> = T extends undefined ? never : T;
|
|
|
69
69
|
/**
|
|
70
70
|
* Helper type to check if all properties of a type are optional
|
|
71
71
|
*/
|
|
72
|
-
type IsAllOptional<T> = undefined extends T ? true : IsOptionalType<T> extends true ? true : ExtractNonUndefined<T> extends Record<string, any> ? {} extends ExtractNonUndefined<T> ? true : false : IsOptionalType<T>;
|
|
72
|
+
export type IsAllOptional<T> = undefined extends T ? true : IsOptionalType<T> extends true ? true : ExtractNonUndefined<T> extends Record<string, any> ? {} extends ExtractNonUndefined<T> ? true : false : IsOptionalType<T>;
|
|
73
73
|
/**
|
|
74
74
|
* Pregel options that are propagated to the agent
|
|
75
75
|
*/
|
|
@@ -81,7 +81,7 @@ type CreateAgentPregelStreamOptions = "encoding" | "streamMode";
|
|
|
81
81
|
/**
|
|
82
82
|
* Decide whether provided configuration requires a context
|
|
83
83
|
*/
|
|
84
|
-
type InvokeConfiguration<ContextSchema extends Record<string, any>> =
|
|
84
|
+
export type InvokeConfiguration<ContextSchema extends Record<string, any>> =
|
|
85
85
|
/**
|
|
86
86
|
* If the context schema is a default object, `context` can be optional
|
|
87
87
|
*/
|
|
@@ -90,7 +90,7 @@ ContextSchema extends InteropZodDefault<any> ? BaseCallbackConfig & Partial<Pick
|
|
|
90
90
|
} : IsAllOptional<ContextSchema> extends true ? BaseCallbackConfig & Partial<Pick<PregelOptions<any, any, any>, CreateAgentPregelOptions>> & {
|
|
91
91
|
context?: Partial<ContextSchema>;
|
|
92
92
|
} : BaseCallbackConfig & Partial<Pick<PregelOptions<any, any, any>, CreateAgentPregelOptions>> & WithMaybeContext<ContextSchema>;
|
|
93
|
-
type StreamConfiguration<ContextSchema extends Record<string, any>, TStreamMode extends StreamMode | StreamMode[] | undefined, TSubgraphs extends boolean, TEncoding extends "text/event-stream" | undefined> =
|
|
93
|
+
export type StreamConfiguration<ContextSchema extends Record<string, any>, TStreamMode extends StreamMode | StreamMode[] | undefined, TSubgraphs extends boolean, TEncoding extends "text/event-stream" | undefined> =
|
|
94
94
|
/**
|
|
95
95
|
* If the context schema is a default object, `context` can be optional
|
|
96
96
|
*/
|
|
@@ -100,5 +100,5 @@ ContextSchema extends InteropZodDefault<any> ? Partial<Pick<PregelOptions<any, a
|
|
|
100
100
|
context?: Partial<ContextSchema>;
|
|
101
101
|
} : Partial<Pick<PregelOptions<any, any, any, TStreamMode, TSubgraphs, TEncoding>, CreateAgentPregelOptions | CreateAgentPregelStreamOptions>> & WithMaybeContext<ContextSchema>;
|
|
102
102
|
//#endregion
|
|
103
|
-
export {
|
|
103
|
+
export { Runtime$1 as Runtime };
|
|
104
104
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../src/agents/runtime.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":["Runtime","LangGraphRuntime"],"sources":["../../src/agents/runtime.ts"],"mappings":";;;;;;;;;YAgBY;;;;;;;;;;;;;EAaV,UAAU;;;;;;;;;;;;;EAaV,qBAAqB;;;;;KAMlB,oBAAoB,KAAK,UAAU;KACnC,mBAAmB,KAAK,UAAU;YAE3B,iBAAiB,8BAA8B;WAC5C,UAAU;IACrB,oBAAoB;WACP,UAAU;IACrB,mBAAmB;WACN,UAAU;;WACV,SAAS;;;;;KAKhBA,UAAQ,sBAAsB,QACxC,KAAKC,QAAiB,0CAEtB,iBAAiB;EACf;IACE;KACC;;;;;;KAkBF,eAAe,uBAAuB;;;;KAKtC,oBAAoB,KAAK,8BAA8B;;;;YAKhD,cAAc,uBAEN,WAEd,eAAe,yBAEb,oBAAoB,WAAW,iCAClB,oBAAoB,oBAG/B,eAAe;;;;KAKpB;;;;KAeA;;;;YAKO,oBAAoB,sBAAsB;;;;AAIpD,sBAAsB,yBAClB,qBACE,QACE,KAAK,8BAA8B;EAEnC,UAAU,QAAQ;IAKtB,cAAc,8BACZ,qBACE,QACE,KAAK,8BAA8B;EAEnC,UAAU,QAAQ;IAEtB,qBACE,QACE,KAAK,8BAA8B,6BAErC,iBAAiB;YAEf,oBACV,sBAAsB,qBACtB,oBAAoB,aAAa,0BACjC,4BACA;;;;AAKA,sBAAsB,yBAClB,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B;EAG7B,UAAU,QAAQ;IAKpB,cAAc,8BACZ,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B;EAG7B,UAAU,QAAQ;IAEpB,QACE,KACE,6BAA6B,aAAa,YAAY,YACtD,2BAA2B,mCAG7B,iBAAiB"}
|
|
@@ -24,7 +24,7 @@ interface FakeToolCallingModelFields {
|
|
|
24
24
|
/**
|
|
25
25
|
* Fake chat model for testing tool calling functionality
|
|
26
26
|
*/
|
|
27
|
-
declare class FakeToolCallingModel extends BaseChatModel {
|
|
27
|
+
export declare class FakeToolCallingModel extends BaseChatModel {
|
|
28
28
|
toolCalls: ToolCall$1[][];
|
|
29
29
|
toolStyle: "openai" | "anthropic";
|
|
30
30
|
private indexRef;
|
|
@@ -46,5 +46,4 @@ declare class FakeToolCallingModel extends BaseChatModel {
|
|
|
46
46
|
_generate(messages: BaseMessage[], _options?: this["ParsedCallOptions"], _runManager?: CallbackManagerForLLMRun): Promise<ChatResult>;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
export { FakeToolCallingModel };
|
|
50
49
|
//# sourceMappingURL=utils.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../../src/agents/tests/utils.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":["ToolCall"],"sources":["../../../src/agents/tests/utils.ts"],"mappings":";;;;;;;;;;;UA2UUA;EACR;EACA,MAAM;EACN;EACA;;UAGQ;EACR,YAAYA;EACZ;EACA;EACA;;;;;qBAWW,6BAA6B;EACxC,WAAWA;EAEX;UAGQ;EAER;UAEQ;EAER,cACE,WACA,WACA,OACA,oBACA,aACG,SACF;IAA+B;MAAa;;;MAU3C;MAIA,MAAM;EAIV;EAIA;EAIA,UACE,OAAO,mBAEL,uBACA;IAGU,cAAc;;EAa5B,qBAAqB,eAAY,6BAAA,eAAA;EAQ3B,UACJ,UAAU,eACV,sCACA,cAAc,2BACb,QAAQ"}
|
|
@@ -24,7 +24,7 @@ interface FakeToolCallingModelFields {
|
|
|
24
24
|
/**
|
|
25
25
|
* Fake chat model for testing tool calling functionality
|
|
26
26
|
*/
|
|
27
|
-
declare class FakeToolCallingModel extends BaseChatModel {
|
|
27
|
+
export declare class FakeToolCallingModel extends BaseChatModel {
|
|
28
28
|
toolCalls: ToolCall$1[][];
|
|
29
29
|
toolStyle: "openai" | "anthropic";
|
|
30
30
|
private indexRef;
|
|
@@ -46,5 +46,4 @@ declare class FakeToolCallingModel extends BaseChatModel {
|
|
|
46
46
|
_generate(messages: BaseMessage[], _options?: this["ParsedCallOptions"], _runManager?: CallbackManagerForLLMRun): Promise<ChatResult>;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
export { FakeToolCallingModel };
|
|
50
49
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/agents/tests/utils.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":["ToolCall"],"sources":["../../../src/agents/tests/utils.ts"],"mappings":";;;;;;;;;;;UA2UUA;EACR;EACA,MAAM;EACN;EACA;;UAGQ;EACR,YAAYA;EACZ;EACA;EACA;;;;;qBAWW,6BAA6B;EACxC,WAAWA;EAEX;UAGQ;EAER;UAEQ;EAER,cACE,WACA,WACA,OACA,oBACA,aACG,SACF;IAA+B;MAAa;;;MAU3C;MAIA,MAAM;EAIV;EAIA;EAIA,UACE,OAAO,mBAEL,uBACA;IAGU,cAAc;;EAa5B,qBAAqB,eAAY,6BAAA,eAAA;EAQ3B,UACJ,UAAU,eACV,sCACA,cAAc,2BACb,QAAQ"}
|
|
@@ -27,7 +27,6 @@ interface SubagentProjection {
|
|
|
27
27
|
* uses `[]`; nested handles use their subagent's namespace, so grandchild
|
|
28
28
|
* subagents are discovered recursively.
|
|
29
29
|
*/
|
|
30
|
-
declare function createSubagentTransformer(scope?: Namespace): () => NativeStreamTransformer<SubagentProjection>;
|
|
30
|
+
export declare function createSubagentTransformer(scope?: Namespace): () => NativeStreamTransformer<SubagentProjection>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { createSubagentTransformer };
|
|
33
32
|
//# sourceMappingURL=subagent.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent.d.cts","names":[],"sources":["../../../src/agents/transformers/subagent.ts"],"mappings":";;;UAYU;EACR,WAAW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"subagent.d.cts","names":[],"sources":["../../../src/agents/transformers/subagent.ts"],"mappings":";;;UAYU;EACR,WAAW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;wBAkEX,0BACd,QAAO,kBACA,wBAAwB"}
|
|
@@ -27,7 +27,6 @@ interface SubagentProjection {
|
|
|
27
27
|
* uses `[]`; nested handles use their subagent's namespace, so grandchild
|
|
28
28
|
* subagents are discovered recursively.
|
|
29
29
|
*/
|
|
30
|
-
declare function createSubagentTransformer(scope?: Namespace): () => NativeStreamTransformer<SubagentProjection>;
|
|
30
|
+
export declare function createSubagentTransformer(scope?: Namespace): () => NativeStreamTransformer<SubagentProjection>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { createSubagentTransformer };
|
|
33
32
|
//# sourceMappingURL=subagent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent.d.ts","names":[],"sources":["../../../src/agents/transformers/subagent.ts"],"mappings":";;;UAYU;EACR,WAAW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"subagent.d.ts","names":[],"sources":["../../../src/agents/transformers/subagent.ts"],"mappings":";;;UAYU;EACR,WAAW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;wBAkEX,0BACd,QAAO,kBACA,wBAAwB"}
|
|
@@ -10,7 +10,6 @@ interface ToolCallProjection {
|
|
|
10
10
|
* Marked `__native: true` — projection keys land directly on the
|
|
11
11
|
* `GraphRunStream` instance as `run.toolCalls`.
|
|
12
12
|
*/
|
|
13
|
-
declare function createToolCallTransformer(path: Namespace): () => NativeStreamTransformer<ToolCallProjection>;
|
|
13
|
+
export declare function createToolCallTransformer(path: Namespace): () => NativeStreamTransformer<ToolCallProjection>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { createToolCallTransformer };
|
|
16
15
|
//# sourceMappingURL=tool-call.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.d.cts","names":[],"sources":["../../../src/agents/transformers/tool-call.ts"],"mappings":";;UAWU;EACR,WAAW,cAAc;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tool-call.d.cts","names":[],"sources":["../../../src/agents/transformers/tool-call.ts"],"mappings":";;UAWU;EACR,WAAW,cAAc;;;;;;;;;wBAkGX,0BACd,MAAM,kBACC,wBAAwB"}
|
|
@@ -10,7 +10,6 @@ interface ToolCallProjection {
|
|
|
10
10
|
* Marked `__native: true` — projection keys land directly on the
|
|
11
11
|
* `GraphRunStream` instance as `run.toolCalls`.
|
|
12
12
|
*/
|
|
13
|
-
declare function createToolCallTransformer(path: Namespace): () => NativeStreamTransformer<ToolCallProjection>;
|
|
13
|
+
export declare function createToolCallTransformer(path: Namespace): () => NativeStreamTransformer<ToolCallProjection>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { createToolCallTransformer };
|
|
16
15
|
//# sourceMappingURL=tool-call.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.d.ts","names":[],"sources":["../../../src/agents/transformers/tool-call.ts"],"mappings":";;UAWU;EACR,WAAW,cAAc;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tool-call.d.ts","names":[],"sources":["../../../src/agents/transformers/tool-call.ts"],"mappings":";;UAWU;EACR,WAAW,cAAc;;;;;;;;;wBAkGX,0BACd,MAAM,kBACC,wBAAwB"}
|