Skip to content

Commit 058f20a

Browse files
fix: missing await
1 parent c825f7b commit 058f20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/src/agents/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export abstract class Agent extends BaseSingleActionAgent {
282282
inputs: ChainValues,
283283
suffix?: string
284284
): Promise<AgentAction | AgentFinish> {
285-
const thoughts = this.constructScratchPad(steps);
285+
const thoughts = await this.constructScratchPad(steps);
286286
const newInputs: ChainValues = {
287287
...inputs,
288288
agent_scratchpad: suffix ? `${thoughts}${suffix}` : thoughts,

0 commit comments

Comments
 (0)