httpResponse
Collects data produced by upstream nodes and emits it as the HTTP response payload. This is a flow exit point (is_output: true). It accepts any fields from upstream nodes and returns all of them as a flat dict under results.
Parameters
Accepts any fields (extra="allow"). There are no declared named fields. All fields delivered by upstream nodes are accepted and passed through.
| Param | Type | Description |
|---|---|---|
| (any key) | any | Any field from upstream nodes. All fields are included in the output |
Output
| Field | Type | Description |
|---|---|---|
results | object | All fields passed in, returned as a flat dict via model_dump() |
Example
Upstream nodes deliver:
{
"messages": [{ "role": "assistant", "content": "CRISPR is..." }],
"sources": ["doi:10.1234/..."]
}
Node output:
{
"results": {
"messages": [{ "role": "assistant", "content": "CRISPR is..." }],
"sources": ["doi:10.1234/..."]
}
}
This node is typically the last node in an HTTP-type workflow, wired to receive the final output and return it to the API caller.