AI / Apache Burr Interview questions
What is Typing State in Burr?
Typing State lets you attach a schema — currently built on Pydantic — to your application’s state, so you get self-documenting actions, IDE autocompletion, and a way to inspect state shape ahead of execution.
It works at the application level (with_typing(PydanticTypingSystem(MyModel)) plus with_state(MyModel())) and/or at the action level (using @action.pydantic(reads=..., writes=...), where you mutate the passed-in model in place and return it). The two can be combined as long as their field types don’t conflict.
More Related questions...