Load ui configuration
Browse files- app.py +0 -0
- src/__init__.py +0 -0
- src/langgraphagenticai/LLMS/__init__.py +0 -0
- src/langgraphagenticai/LLMS/groqllm.py +0 -0
- src/langgraphagenticai/__init__.py +0 -0
- src/langgraphagenticai/graph/__init__.py +0 -0
- src/langgraphagenticai/main.py +0 -0
- src/langgraphagenticai/nodes/__init__.py +0 -0
- src/langgraphagenticai/state/__init__.py +0 -0
- src/langgraphagenticai/tools/__init__.py +0 -0
- src/langgraphagenticai/ui/__init__.py +0 -0
- src/langgraphagenticai/ui/streamlitui/display_result.py +0 -0
- src/langgraphagenticai/ui/streamlitui/loadui.py +11 -0
- src/langgraphagenticai/ui/uiconfigfile.ini +5 -0
- src/langgraphagenticai/ui/uiconfigfile.py +20 -0
- src/langgraphagenticai/vectorstore/__init__.py +0 -0
app.py
ADDED
|
File without changes
|
src/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/LLMS/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/LLMS/groqllm.py
ADDED
|
File without changes
|
src/langgraphagenticai/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/graph/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/main.py
ADDED
|
File without changes
|
src/langgraphagenticai/nodes/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/state/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/tools/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/ui/__init__.py
ADDED
|
File without changes
|
src/langgraphagenticai/ui/streamlitui/display_result.py
ADDED
|
File without changes
|
src/langgraphagenticai/ui/streamlitui/loadui.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import os
|
| 3 |
+
from datetime import date
|
| 4 |
+
|
| 5 |
+
from langchain_core.messages import AIMessage,HumanMessage
|
| 6 |
+
from src.langgraphagenticai.ui.uiconfigfile import Config
|
| 7 |
+
|
| 8 |
+
class LoadStreamlitUI:
|
| 9 |
+
def __init__(self):
|
| 10 |
+
self.config=Config()
|
| 11 |
+
self.user_controls={}
|
src/langgraphagenticai/ui/uiconfigfile.ini
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[DEFAULT]
|
| 2 |
+
PAGE_TITLE = Langgraph:Build Stateful Agentic AI graph
|
| 3 |
+
LLM_OPTIONS = Groq
|
| 4 |
+
USECASE_OPTIONS = Basic Chatbot,Chatbot with Tool,Travel Planner,AI News,SLDC Workflows
|
| 5 |
+
GROQ_MODEL_OPTIONS = mixtral-8x7b-32768,llama3-8b-8192,llama3-70b-8192,gemma2-9b-it
|
src/langgraphagenticai/ui/uiconfigfile.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from configparser import ConfigParser
|
| 2 |
+
|
| 3 |
+
class Config:
|
| 4 |
+
def __init__(self,config_file="./src/langgraphagenticai/ui/uiconfigfile.ini"):
|
| 5 |
+
self.config=ConfigParser()
|
| 6 |
+
self.config.read(config_file)
|
| 7 |
+
|
| 8 |
+
def get_llm_options(self):
|
| 9 |
+
return self.config["DEFAULT"].get("LLM_OPTIONS").split(",")
|
| 10 |
+
|
| 11 |
+
def get_usecase_options(self):
|
| 12 |
+
return self.config["DEFAULT"].get("USECASE_OPTIONS").split(",")
|
| 13 |
+
|
| 14 |
+
def get_groq_model_options(self):
|
| 15 |
+
return self.config["DEFAULT"].get("GROQ_MODEL_OPTIONS").split(",")
|
| 16 |
+
|
| 17 |
+
def get_page_title(self):
|
| 18 |
+
return self.config["DEFAULT"].get("PAGE_TITLE")
|
| 19 |
+
|
| 20 |
+
|
src/langgraphagenticai/vectorstore/__init__.py
ADDED
|
File without changes
|