Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 637 Bytes

extractAttributes.md

File metadata and controls

27 lines (14 loc) · 637 Bytes

@elizaos/core v0.25.8 / extractAttributes

Function: extractAttributes()

extractAttributes(response, attributesToExtract?): object

Extracts specific attributes (e.g., user, text, action) from a JSON-like string using regex.

Parameters

response: string

The cleaned string response to extract attributes from.

attributesToExtract?: string[]

An array of attribute names to extract.

Returns

object

An object containing the extracted attributes.

Defined in

packages/core/src/parsing.ts:194