Steps Output Access
Model
Learn how to access the output of a model step in subsequent steps.
Output Structure
Model steps produce a structured output with specific properties:
JSON Response
When Response
is set to JSON
in the model step configuration, the model’s response is automatically parsed into a JavaScript object:
So, you can access the properties directly from the output object in subsequent steps, without needing to use JSON.parse()
.
In code steps:
CODE_STEP
For non-code steps like model messages, http request URLs, request bodies, and other configuration fields:
Common Patterns
CODE_STEP
Was this page helpful?