@langchain/core 0.3.8 → 0.3.9-rc.0

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.
@@ -11,11 +11,11 @@ import { Run } from "../tracers/base.js";
11
11
  import { Graph } from "./graph.js";
12
12
  import { ToolCall } from "../messages/tool.js";
13
13
  export { type RunnableInterface, RunnableBatchOptions };
14
- export type RunnableFunc<RunInput, RunOutput> = (input: RunInput, options: RunnableConfig | Record<string, any> | (Record<string, any> & RunnableConfig)) => RunOutput | Promise<RunOutput>;
14
+ export type RunnableFunc<RunInput, RunOutput, CallOptions extends RunnableConfig = RunnableConfig> = (input: RunInput, options: CallOptions | Record<string, any> | (Record<string, any> & CallOptions)) => RunOutput | Promise<RunOutput>;
15
15
  export type RunnableMapLike<RunInput, RunOutput> = {
16
16
  [K in keyof RunOutput]: RunnableLike<RunInput, RunOutput[K]>;
17
17
  };
18
- export type RunnableLike<RunInput = any, RunOutput = any> = RunnableInterface<RunInput, RunOutput> | RunnableFunc<RunInput, RunOutput> | RunnableMapLike<RunInput, RunOutput>;
18
+ export type RunnableLike<RunInput = any, RunOutput = any, CallOptions extends RunnableConfig = RunnableConfig> = RunnableInterface<RunInput, RunOutput, CallOptions> | RunnableFunc<RunInput, RunOutput, CallOptions> | RunnableMapLike<RunInput, RunOutput>;
19
19
  export type RunnableRetryFailedAttemptHandler = (error: any, input: any) => any;
20
20
  export declare function _coerceToDict(value: any, defaultKey: string): any;
21
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.3.8",
3
+ "version": "0.3.9-rc.0",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {