Immediately terminate an instruction with a given set of results.
Ordinarily, the results of an instruction are based on the last statement to execute; RETURN allows you to do this at any point in an instruction. In contrast to EVALUATE (which means “break out of this instruction if the preceding statement returned no results),
The instruction exits successfully, with an exit code of 0 if the results have content, and 1 if they have no content.
Take care to ensure the results returned have the same shape as the results returned by other parts of the instructions, as described in Agent Language User Guide - Inconsistent branching results.