Parse an agent's stdout into an AgentAction. Lenient: non-JSON or an unrecognised shape becomes a final message carrying the raw text, so even a plain answer is scoreable.
final
Parse an agent's stdout into an AgentAction. Lenient: non-JSON or an unrecognised shape becomes a
finalmessage carrying the raw text, so even a plain answer is scoreable.