WorkersDebug
Display
📸 Screenshots
Here are visual examples of this section:
Display - Worker Configuration Interface
1. Overview and Purpose
The Display worker is a debugging utility that allows you to visualize data flowing through your workflow. It simply passes the input value directly to the output without any transformation, making it useful for inspecting data at specific points in your pipeline.
2. Configuration Parameters
This worker does not require any configuration parameters.
3. Input/Output Handles
input: Input handle - accepts any type of data for displayoutput: Output handle - returns the exact same data that was received on the input
4. Usage Examples with Code
// The Display worker simply passes input to output
// Useful for debugging data flow in complex workflows
const displayWorker = agent.initializeWorker(
{ type: "display" },
[
{ type: "unknown", direction: "input", title: "Input", name: "input" },
{ type: "unknown", direction: "output", title: "Output", name: "output" }
]
);5. Integration Examples
Place Display workers at key points in your workflow to monitor data transformation between processing steps. They're particularly useful when debugging complex multi-worker pipelines.
6. Best Practices
- Use Display workers temporarily during development and remove them in production
- Place them before and after complex transformations to verify data integrity
- Connect multiple Display workers in sequence to trace data flow
- Label your Display workers clearly to identify their purpose in complex workflows
7. Troubleshooting Tips
- If no data appears, check that the input connection is properly established
- Verify that upstream workers are executing successfully
- Use browser developer tools to inspect the actual data values being passed
- Remember that Display workers show data exactly as received - formatting issues may indicate upstream problems
