Sure, the parse function can be simplified or dropped completely depending on how the agent output is formatted. For example, the approach with string_table[0][0]
won’t work if the agent output looks like this (which is also valid JSON):
<<<my_section:sep(0)>>>
{
"field1": "value1",
"field2": 42,
"field3": "value with spaces"
}
In this case you first need to join the lines into one big string.