text: Title: [Feature request] Agent returns JSON
  Body: It would be cool if ActionResult could return also JSON apart from only text. Sure I can use text to feed into GPT-4o, but when I am using openai, te newer models use JSON response, which is super handy. 