Optional
inputLoads memory variables from the input values.
Input values.
Promise that resolves with the loaded memory variables.
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.
Input values.
Output values.
Promise that resolves when the context has been saved.
Memory used to save agent output and intermediate steps.