@elizaos/core v0.25.8 / extractAttributes
extractAttributes(
response
,attributesToExtract
?):object
Extracts specific attributes (e.g., user, text, action) from a JSON-like string using regex.
• response: string
The cleaned string response to extract attributes from.
• attributesToExtract?: string
[]
An array of attribute names to extract.
object
An object containing the extracted attributes.