Agent Builder - Exported Python Agent SDK code is incorrect

Context: When the End node’s structured output schema includes an object.
Observed behavior: The generated code contains an empty object rather than referencing the object produced in the previous step.
Expected behavior: The exported code should reference the previously created object.