Signpost AI Logo
WorkersDebug

Mock

📸 Screenshots

Here are visual examples of this section:

Mock - Worker Configuration Interface Mock - Worker Configuration Interface

1. Overview and Purpose

The Mock worker is a debugging utility that passes input data directly to its output when debug mode is disabled. It's designed for testing workflows and simulating data flow without performing actual processing operations.

2. Configuration Parameters

This worker does not require any configuration parameters. It operates automatically based on the debug mode setting.

3. Input/Output Handles

  • input: Input handle - accepts any type of data for mocking purposes
  • output: Output handle - returns the same data that was provided to the input (when not in debug mode)

4. Usage Examples with Code

// The mock worker automatically passes input to output
// No manual configuration needed - it handles data flow internally
const mockWorker = agent.initializeWorker(
  { type: "mock" },
  [
    { type: "unknown", direction: "input", title: "Input", name: "input" },
    { type: "unknown", direction: "output", title: "Output", name: "output" }
  ]
);

5. Integration Examples

The Mock worker is typically used during development and testing phases to simulate data flow in complex workflows before implementing actual processing logic.

6. Best Practices

  • Use Mock workers to test workflow connections before adding complex processing logic
  • Place Mock workers strategically to isolate and debug specific parts of your workflow
  • Remember that Mock workers only pass data through when not in debug mode
  • Remove or replace Mock workers with actual processing workers in production workflows

7. Troubleshooting Tips

  • If no output is generated, check if debug mode is enabled (Mock workers don't output in debug mode)
  • Verify that input data is properly connected to the Mock worker's input handle
  • Use Mock workers to identify data flow issues by placing them at different points in your workflow
  • Check the data type compatibility between the Mock worker and connected workers