languagereply-to-json
ai-research-agent / agents/languagereply-to-json
Generate
convertLanguageReplyToJSON()
function convertLanguageReplyToJSON(text, key?): Object[]
This function extracts and cleans content between XML-style tags and returns a JSON object.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
|
|
| Input text to parse |
|
|
| Tag name to look for |
Returns
Object
[]
Array of objects containing cleaned content items