Spaces:
Sleeping
Sleeping
Commit
·
bbd996b
1
Parent(s):
f986437
Load ui configuration and folder structure
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 +12 -0
- src/langgraphagenticai/ui/uiconfigfile.ini +6 -0
- src/langgraphagenticai/ui/uiconfigfile.py +19 -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,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 9 |
+
class LoadStreamlitUI:
|
| 10 |
+
def __init__(self):
|
| 11 |
+
self.config = Config() # config
|
| 12 |
+
self.user_controls = {}
|
src/langgraphagenticai/ui/uiconfigfile.ini
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[DEFAULT]
|
| 2 |
+
PAGE_TITLE = LangGraph: Build Stateful Agentic AI graph
|
| 3 |
+
LLM_OPTIONS = Groq
|
| 4 |
+
USECASE_OPTIONS = Basic Chatbot
|
| 5 |
+
GROQ_MODEL_OPTIONS = mixtral-8x7b-32768, llama3-8b-8192, llama3-70b-8192, gemma-7b-i
|
| 6 |
+
|
src/langgraphagenticai/ui/uiconfigfile.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_option(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 |
+
|
src/langgraphagenticai/vectorstore/__init__.py
ADDED
|
File without changes
|