mirror of https://github.com/hwchase17/langchain
feat(agents): allow trimming of intermediate steps to last N (#6476)
Added an option to trim intermediate steps to last N steps. This is especially useful for long-running agents. Users can explicitly specify N or provide a function that does custom trimming/manipulation on intermediate steps. I've mimicked the API of the `handle_parsing_errors` parameter.pull/6757/head
parent
92ef77da35
commit
a8bbfb2da3
Loading…
Reference in New Issue