Skip to content

Commit

Permalink
fix: missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrosenthal committed Apr 19, 2023
1 parent c825f7b commit 058f20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/src/agents/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export abstract class Agent extends BaseSingleActionAgent {
inputs: ChainValues,
suffix?: string
): Promise<AgentAction | AgentFinish> {
const thoughts = this.constructScratchPad(steps);
const thoughts = await this.constructScratchPad(steps);
const newInputs: ChainValues = {
...inputs,
agent_scratchpad: suffix ? `${thoughts}${suffix}` : thoughts,
Expand Down

0 comments on commit 058f20a

Please sign in to comment.