AI / Apache Burr Interview questions
Define an Action in Burr?
An Action is the core unit of compute in Burr. It has two responsibilities: run, which computes a result, and update, which uses that result to produce the new state. Burr calls the run part a Function and the update part a Reducer — a naming borrowed loosely from Redux.
Every action declares which state keys it reads and which it writes, so the framework knows exactly what data it depends on and can subset state accordingly before the action runs.
Actions can be synchronous or asynchronous (async actions must override is_async to return True), and Burr does all the heavy lifting of a workflow inside actions — transitions only decide where to go next.
More Related questions...