Skip to content

Commit c6825ba

Browse files
author
harry_squater
committed
fix linting errors
1 parent b06f4ac commit c6825ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/src/chains/simple_sequential_chain.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const overallChain = new SimpleSequentialChain({
3535
verbose: true,
3636
});
3737
const review = await overallChain.run("Tragedy at sunset on the beach");
38+
console.log(review);
3839
/*
3940
variable review contains the generated play review based on the input title and synopsis generated in the first step:
4041

langchain/src/chains/simple_sequential_chain.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ export class SimpleSequentialChain
5353
implements SimpleSequentialChainInput
5454
{
5555
chains: Array<BaseChain>;
56+
5657
inputKey = "input";
58+
5759
outputKey = "output";
60+
5861
trimOutputs: boolean;
5962

6063
get inputKeys() {
@@ -87,7 +90,7 @@ export class SimpleSequentialChain
8790
if (this.trimOutputs) {
8891
input = input.trim();
8992
}
90-
this.callbackManager.handleText(input, this.verbose);
93+
await this.callbackManager.handleText(input, this.verbose);
9194
}
9295
return { [this.outputKey]: input };
9396
}

0 commit comments

Comments
 (0)