@langchain/core 0.2.34 → 0.2.35
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/dist/runnables/base.d.ts
CHANGED
|
@@ -485,7 +485,7 @@ export declare class RunnableSequence<RunInput = any, RunOutput = any> extends R
|
|
|
485
485
|
last: Runnable<any, RunOutput>;
|
|
486
486
|
name?: string;
|
|
487
487
|
});
|
|
488
|
-
get steps(): Runnable<any, any, RunnableConfig
|
|
488
|
+
get steps(): Runnable<any, any, RunnableConfig<Record<string, any>>>[];
|
|
489
489
|
invoke(input: RunInput, options?: RunnableConfig): Promise<RunOutput>;
|
|
490
490
|
batch(inputs: RunInput[], options?: Partial<RunnableConfig> | Partial<RunnableConfig>[], batchOptions?: RunnableBatchOptions & {
|
|
491
491
|
returnExceptions?: false;
|
|
@@ -599,7 +599,7 @@ export declare class RunnableWithFallbacks<RunInput, RunOutput> extends Runnable
|
|
|
599
599
|
runnable: Runnable<RunInput, RunOutput>;
|
|
600
600
|
fallbacks: Runnable<RunInput, RunOutput>[];
|
|
601
601
|
});
|
|
602
|
-
runnables(): Generator<Runnable<RunInput, RunOutput, RunnableConfig
|
|
602
|
+
runnables(): Generator<Runnable<RunInput, RunOutput, RunnableConfig<Record<string, any>>>, void, unknown>;
|
|
603
603
|
invoke(input: RunInput, options?: Partial<RunnableConfig>): Promise<RunOutput>;
|
|
604
604
|
_streamIterator(input: RunInput, options?: Partial<RunnableConfig> | undefined): AsyncGenerator<RunOutput>;
|
|
605
605
|
batch(inputs: RunInput[], options?: Partial<RunnableConfig> | Partial<RunnableConfig>[], batchOptions?: RunnableBatchOptions & {
|
|
@@ -15,7 +15,7 @@ export declare class Graph {
|
|
|
15
15
|
*/
|
|
16
16
|
extend(graph: Graph, prefix?: string): ({
|
|
17
17
|
id: string;
|
|
18
|
-
data: RunnableIOSchema | RunnableInterface<any, any, import("./types.js").RunnableConfig
|
|
18
|
+
data: RunnableIOSchema | RunnableInterface<any, any, import("./types.js").RunnableConfig<Record<string, any>>>;
|
|
19
19
|
} | undefined)[];
|
|
20
20
|
trimFirstNode(): void;
|
|
21
21
|
trimLastNode(): void;
|
|
@@ -87,6 +87,6 @@ export declare class RunnableWithMessageHistory<RunInput, RunOutput> extends Run
|
|
|
87
87
|
_getOutputMessages(outputValue: string | BaseMessage | Array<BaseMessage> | Record<string, any>): Array<BaseMessage>;
|
|
88
88
|
_enterHistory(input: any, kwargs?: RunnableConfig): Promise<BaseMessage[]>;
|
|
89
89
|
_exitHistory(run: Run, config: RunnableConfig): Promise<void>;
|
|
90
|
-
_mergeConfig(...configs: Array<RunnableConfig | undefined>): Promise<Partial<RunnableConfig
|
|
90
|
+
_mergeConfig(...configs: Array<RunnableConfig | undefined>): Promise<Partial<RunnableConfig<Record<string, any>>>>;
|
|
91
91
|
}
|
|
92
92
|
export {};
|
|
@@ -41,12 +41,12 @@ export interface Node {
|
|
|
41
41
|
id: string;
|
|
42
42
|
data: RunnableIOSchema | RunnableInterface;
|
|
43
43
|
}
|
|
44
|
-
export interface RunnableConfig extends BaseCallbackConfig {
|
|
44
|
+
export interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Record<string, any>> extends BaseCallbackConfig {
|
|
45
45
|
/**
|
|
46
46
|
* Runtime values for attributes previously made configurable on this Runnable,
|
|
47
47
|
* or sub-Runnables.
|
|
48
48
|
*/
|
|
49
|
-
configurable?:
|
|
49
|
+
configurable?: ConfigurableFieldType;
|
|
50
50
|
/**
|
|
51
51
|
* Maximum number of times a call can recurse. If not provided, defaults to 25.
|
|
52
52
|
*/
|