Hi everyone!
I'm trying to integrate AI with NPCs. The question is:
When I send the message to the model, it returns a text similar to the following:
Response:
I'm worried about what's going on! map@[emotion=angry;action=think]
Actions and emotions have variations depending on the AI response
The question is, from this returned message, is there a way to extract the text map@[emotion=angry;action=think]?
The idea is that the response the character receives does not have the map
"map@[emotion=angry;action=think]" and that he can use this map to perform actions with the NPC.
I get the AI response through a webget:
- ~webget <[url]> data:<[data].to_json> headers:<[headers]> save:response
And I get it through the following flag
<util.parse_yaml[<entry[response].result>].get[textResponse]>
Thank you for your time and sorry if my English is bad.