AI / Apache Burr Interview questions
Describe the State object in Burr?
Burr’s State is how actions talk to each other, and it is entirely immutable — you can only create a new state from an old one, never modify one in place.
It extends Python’s Mapping interface for reads, so normal dictionary-style access works, plus extras like state.subset([...]) and state.get_all(). Writes always go through explicit operations such as state.update(...), and each one returns a brand-new State instance that you must capture and use.
State also keeps a set of private, double-underscore-prefixed keys (like __SEQUENCE_ID) that Burr uses internally — modifying those yourself is undefined behavior.
More Related questions...