What Is an Operator?
An operator is a stateless function that receives data, computes something, and returns a result. Every computation in ClyptQ — from a simple moving average to an LLM-powered sentiment score — is an operator.- TaggedArray in, TaggedArray out — All inputs are TaggedArrays buffered by RollingBuffers. Output is always a TaggedArray.
- Stateless — No mutable state between ticks. The StatefulGraph manages all state.
- Declare inputs upfront — Each input is declared via
Input(source, timeframe, lookback)at graph registration time.
14 Operator Roles
Every operator declares arole that describes its purpose:
How Operators Compose
Operators connect into a DAG (Directed Acyclic Graph) inside a StatefulGraph. Each operator’s output becomes another operator’s input:Creating Custom Operators
Inherit fromBaseOperator, set a role, implement compute():
compute() — NumPy, PyTorch, XGBoost, scikit-learn, HuggingFace, scipy.
Ephemeral Operators
Operators that call external APIs (LLM, web search) are markedephemeral = True. They:
- Cannot reproduce outputs for the same historical input
- Skip backtest validation
- Only run in paper/live mode
Next Steps
Operator Protocol
Detailed protocol: roles, self-referencing, ML/DL integration, ComputeContext
Browse Operators
Complete catalog across 14 roles

