@langchain/core
Advanced tools
Comparing version 0.1.60 to 0.1.61
@@ -183,3 +183,5 @@ import type { TiktokenModel } from "js-tiktoken/lite"; | ||
*/ | ||
protected _getSerializedCacheKeyParametersForCall(callOptions: CallOptions): string; | ||
protected _getSerializedCacheKeyParametersForCall({ config, ...callOptions }: CallOptions & { | ||
config?: RunnableConfig; | ||
}): string; | ||
/** | ||
@@ -186,0 +188,0 @@ * @deprecated |
@@ -215,3 +215,5 @@ import { InMemoryCache } from "../caches.js"; | ||
*/ | ||
_getSerializedCacheKeyParametersForCall(callOptions) { | ||
_getSerializedCacheKeyParametersForCall( | ||
// TODO: Fix when we remove the RunnableLambda backwards compatibility shim. | ||
{ config, ...callOptions }) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -218,0 +220,0 @@ const params = { |
@@ -36,2 +36,4 @@ import { BaseCallbackConfig, CallbackManagerForRetrieverRun, Callbacks } from "../callbacks/manager.js"; | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Main method used to retrieve relevant documents. It takes a query | ||
@@ -38,0 +40,0 @@ * string and an optional configuration object, and returns a promise that |
@@ -53,2 +53,4 @@ import { CallbackManager, parseCallbackConfigArg, } from "../callbacks/manager.js"; | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Main method used to retrieve relevant documents. It takes a query | ||
@@ -55,0 +57,0 @@ * string and an optional configuration object, and returns a promise that |
export { type RunnableFunc, type RunnableLike, type RunnableRetryFailedAttemptHandler, Runnable, type RunnableBindingArgs, RunnableBinding, RunnableEach, RunnableRetry, RunnableSequence, RunnableMap, RunnableParallel, RunnableLambda, RunnableWithFallbacks, RunnableAssign, RunnablePick, _coerceToRunnable, } from "./base.js"; | ||
export { type RunnableBatchOptions, type RunnableInterface, type RunnableIOSchema, } from "./types.js"; | ||
export { type RunnableConfig, getCallbackManagerForConfig, patchConfig, ensureConfig, } from "./config.js"; | ||
export { type RunnableConfig, getCallbackManagerForConfig, patchConfig, ensureConfig, mergeConfigs, } from "./config.js"; | ||
export { RunnablePassthrough } from "./passthrough.js"; | ||
@@ -5,0 +5,0 @@ export { type RouterInput, RouterRunnable } from "./router.js"; |
export { Runnable, RunnableBinding, RunnableEach, RunnableRetry, RunnableSequence, RunnableMap, RunnableParallel, RunnableLambda, RunnableWithFallbacks, RunnableAssign, RunnablePick, _coerceToRunnable, } from "./base.js"; | ||
export { getCallbackManagerForConfig, patchConfig, ensureConfig, } from "./config.js"; | ||
export { getCallbackManagerForConfig, patchConfig, ensureConfig, mergeConfigs, } from "./config.js"; | ||
export { RunnablePassthrough } from "./passthrough.js"; | ||
@@ -4,0 +4,0 @@ export { RouterRunnable } from "./router.js"; |
@@ -24,2 +24,4 @@ import { z } from "zod"; | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument, configuration, and tags. It | ||
@@ -56,2 +58,4 @@ * parses the input according to the schema, handles any errors, and | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument, configuration, and tags. It | ||
@@ -74,2 +78,4 @@ * parses the input according to the schema, handles any errors, and | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument and callbacks. It handles | ||
@@ -98,2 +104,4 @@ * string inputs specifically. | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument and callbacks. It handles | ||
@@ -134,2 +142,5 @@ * string inputs specifically. | ||
constructor(fields: DynamicToolInput); | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
*/ | ||
call(arg: string | undefined | z.input<this["schema"]>, configArg?: RunnableConfig | Callbacks): Promise<string>; | ||
@@ -152,2 +163,5 @@ /** @ignore */ | ||
constructor(fields: DynamicStructuredToolInput<T>); | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
*/ | ||
call(arg: z.output<T>, configArg?: RunnableConfig | Callbacks, | ||
@@ -154,0 +168,0 @@ /** @deprecated */ |
@@ -48,2 +48,4 @@ import { z } from "zod"; | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument, configuration, and tags. It | ||
@@ -99,2 +101,4 @@ * parses the input according to the schema, handles any errors, and | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
* | ||
* Calls the tool with the provided argument and callbacks. It handles | ||
@@ -142,2 +146,5 @@ * string inputs specifically. | ||
} | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
*/ | ||
async call(arg, configArg) { | ||
@@ -197,2 +204,5 @@ const config = parseCallbackConfigArg(configArg); | ||
} | ||
/** | ||
* @deprecated Use .invoke() instead. Will be removed in 0.3.0. | ||
*/ | ||
async call(arg, configArg, | ||
@@ -199,0 +209,0 @@ /** @deprecated */ |
{ | ||
"name": "@langchain/core", | ||
"version": "0.1.60", | ||
"version": "0.1.61", | ||
"description": "Core LangChain.js abstractions and schemas", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1795935
44703