File size: 783 Bytes
1ee2b87
 
 
ed1a17b
1ee2b87
20cac53
1ee2b87
 
 
 
 
 
 
 
 
 
0e49bbd
 
 
1ee2b87
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from configparser import ConfigParser

class Config:
    def __init__(self, config_file="./src/langgraphagenticai/ui/streamlitui/uiconfigfile.ini"):
        self.config = ConfigParser()
        self.config.read(config_file)

    def get_llm_options(self):
        return self.config["DEFAULT"].get("LLM_OPTIONS", "").split(",")

    def get_usecase_options(self):
        return self.config["DEFAULT"].get("USECASE_OPTIONS", "").split(",")
    
    def get_groq_model_options(self):
        return self.config["DEFAULT"].get("GROQ_MODEL_OPTIONS", "").split(",")
    
    def get_gemini_model_options(self):
        return self.config["DEFAULT"].get("GEMINI_MODEL_OPTIONS", "").split(",")
    
    def get_page_title(self):
        return self.config["DEFAULT"].get("PAGE_TITLE")