Bases: SimpleNamespace
States used in this page.
Note
For the frontend and backend states, the state classes are generated dynamically using type()
The type hint for the Vars is used because that's how they behave at runtime (even though they are
technically class objects). This is a quirk of reflex.
For each frontend var, it creates a new class that inherits from the vars class and rx.State to make a stateful
instance (reflex handles the state management).
Collected together in a SimpleNamespace to avoid having the states be directly linked to each other in a way that
would result in them being loaded in one block by reflex.
assistant_selection_state = assistant_selector.State
class-attribute
instance-attribute
assistant_selector = AssistantCombinedSelectComponent.create(id_user='main_user_assistant_selector', id_global='main_global_assistant_selector', options_loader=AllLoaders.get_assistant_options_loader)
class-attribute
instance-attribute
backend_state = BackendState
class-attribute
instance-attribute
control_panel_state = ControlPanelState
class-attribute
instance-attribute
conversation_list_loader_component = ConversationListLoaderComponent.create(mode='vstack', on_select_handlers=[event_handler.handle_load_conversation], max_num_conversations_to_load=50)
class-attribute
instance-attribute
conversation_list_loader_state = conversation_list_loader_component.State
class-attribute
instance-attribute
event_handler = AppPageEvents
class-attribute
instance-attribute
on_load_events = [conversation_list_loader_state.load_conversation_list_handler, assistant_selection_state.handle_load, event_handler.handle_on_load]
class-attribute
instance-attribute
previous_messages_state = PreviousMessagesState
class-attribute
instance-attribute
run_message_state = RunMessagesState
class-attribute
instance-attribute
submission_state = SubmissionState
class-attribute
instance-attribute