Saves the context of the chat, including user input, AI output, and
intermediate steps. Prunes the chat history if the total token count
exceeds the maximum limit.
Parameters
inputValues: InputValues
Input values.
outputValues: OutputValues
Output values.
Returns Promise<void>
Promise that resolves when the context has been saved.
Memory used to save agent output and intermediate steps.