Python/agent/application/states/create_conversation.py

22 lines
435 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
"""
新建会话状态
"""
import reflex as rx
class CreateConversationState(rx.State):
"""
新建会话状态
"""
# 新建会话模态窗打开状态True表示打开False表示关闭
is_modal_open: bool = False
@rx.event
def toggle_modal(self) -> None:
"""
打开/关闭新建会话模态窗
"""
self.is_modal_open = not self.is_modal_open