Skip to content

Commit

Permalink
clear react agent scratchpad too
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Jan 14, 2025
1 parent e19ad47 commit bc6d150
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,7 @@ async def finalize(
start_idx = output.response.index("Answer:")
output.response = output.response[start_idx + len("Answer:") :].strip()

# clear scratchpad
await ctx.set(self.reasoning_key, [])

return output

0 comments on commit bc6d150

Please sign in to comment.