Optional
inputRetrieves the messages from the chat history.
Promise that resolves with the messages from the chat history.
Loads 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.
Generated using TypeDoc
Memory used to save agent output and intermediate steps.