forked from jgravelle/AutoGrok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
session_variables.py
65 lines (43 loc) · 2.05 KB
/
session_variables.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# session_variables.py
import streamlit as st
from base_models.project_base_model import ProjectBaseModel
from configs.config_local import LLM_PROVIDER
def initialize_session_variables():
if "agent_name_input" not in st.session_state:
st.session_state.agent_name_input = ""
if "available_models" not in st.session_state:
st.session_state.available_models = []
if "current_agent" not in st.session_state:
st.session_state.current_agent = None
if "current_framework" not in st.session_state:
st.session_state.current_framework = None
if "current_project" not in st.session_state:
st.session_state.current_project = None
if "current_tool" not in st.session_state:
st.session_state.current_tool = None
if "current_workflow" not in st.session_state:
st.session_state.current_workflow = None
if "default_llm" not in st.session_state:
st.session_state.default_llm = ""
if "default_provider" not in st.session_state:
st.session_state.default_provider = LLM_PROVIDER
if "default_provider_key" not in st.session_state:
st.session_state.default_provider_key = None
if "file_content" not in st.session_state:
st.session_state.file_content = ""
if "project_dropdown" not in st.session_state:
st.session_state.project_dropdown = "Select..."
if "project_model" not in st.session_state:
st.session_state.project_model = ProjectBaseModel()
if "project_name_input" not in st.session_state:
st.session_state.project_name_input = ""
if "provider" not in st.session_state:
st.session_state.provider = ""
if "reengineer" not in st.session_state:
st.session_state.reengineer = True
if "tool_name_input" not in st.session_state:
st.session_state.tool_name_input = ""
if "workflow_dropdown" not in st.session_state:
st.session_state.workflow_dropdown = "Select..."
if "workflow_name_input" not in st.session_state:
st.session_state.workflow_name_input = ""