Returns metadata as callers see it, without internal keys.
metadata
Use it where events leave ADK. Removal there is routine, so nothing is logged.
A customMetadata value. It is not modified.
customMetadata
A new object without internal keys, or undefined if nothing is left. A value that is not a plain object is returned unchanged.
undefined
Returns
metadataas callers see it, without internal keys.Use it where events leave ADK. Removal there is routine, so nothing is logged.