We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c825f7b commit 058f20aCopy full SHA for 058f20a
langchain/src/agents/agent.ts
@@ -282,7 +282,7 @@ export abstract class Agent extends BaseSingleActionAgent {
282
inputs: ChainValues,
283
suffix?: string
284
): Promise<AgentAction | AgentFinish> {
285
- const thoughts = this.constructScratchPad(steps);
+ const thoughts = await this.constructScratchPad(steps);
286
const newInputs: ChainValues = {
287
...inputs,
288
agent_scratchpad: suffix ? `${thoughts}${suffix}` : thoughts,
0 commit comments