Overview of UDF (User Defined Functions)
canaryThe UDF library provides a configuration-driven approach to customizing calculations based on input shape. It is designed to process arbitrary JSON bodies (such as those from OpenAI, Anthropic, or Gemini) using pattern matching and custom formulas.
Pattern matching is performed via Breadth-First Search (BFS). For each function (override), the immediate children array is processed, and the first matching child is selected. This continues until the path through the override tree is exhausted.