addEventsToMemory
Adds an explicit list of events to the memory service, scoped to the current session's app/user/session ids.
Unlike addSessionToMemory, this persists only the given events (e.g. the latest turn) as an incremental update rather than re-ingesting the full session.
Parameters
events
The events to add to memory.
customMetadata
Optional, portable metadata forwarded to the memory service.
Throws
if no memory service is configured on the invocation.