Spaces:
Sleeping
Sleeping
Project structure
Browse files- README.md +1 -1
- app.py +0 -0
- src/__init__.py +0 -0
- src/langgraph_agenticai/LLMS/__init__.py +0 -0
- src/langgraph_agenticai/LLMS/groqllm.py +0 -0
- src/langgraph_agenticai/__init__.py +0 -0
- src/langgraph_agenticai/graph/__init__.py +0 -0
- src/langgraph_agenticai/main.py +0 -0
- src/langgraph_agenticai/nodes/__init__.py +0 -0
- src/langgraph_agenticai/state/__init__.py +0 -0
- src/langgraph_agenticai/tools/__init__.py +0 -0
- src/langgraph_agenticai/ui/__init__.py +0 -0
- src/langgraph_agenticai/ui/streamlit_ui/display_result.py +0 -0
- src/langgraph_agenticai/ui/streamlit_ui/loadui.py +12 -0
- src/langgraph_agenticai/ui/uiconfigfile.ini +5 -0
- src/langgraph_agenticai/ui/uiconfigfile.py +18 -0
- src/langgraph_agenticai/vectorestore/__init__.py +0 -0
README.md
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
#
|
|
|
|
| 1 |
+
# Agentic AI usecases using Langgraph
|
app.py
ADDED
|
File without changes
|
src/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/LLMS/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/LLMS/groqllm.py
ADDED
|
File without changes
|
src/langgraph_agenticai/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/graph/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/main.py
ADDED
|
File without changes
|
src/langgraph_agenticai/nodes/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/state/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/tools/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/ui/__init__.py
ADDED
|
File without changes
|
src/langgraph_agenticai/ui/streamlit_ui/display_result.py
ADDED
|
File without changes
|
src/langgraph_agenticai/ui/streamlit_ui/loadui.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import os
|
| 3 |
+
from datetime import date
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
from langchain_core.messages import AIMessage, HumanMessage
|
| 7 |
+
from src.langgraph_agenticai.ui.uiconfigfile import Config
|
| 8 |
+
|
| 9 |
+
class LoadStreamlitUI:
|
| 10 |
+
def __init__(self):
|
| 11 |
+
self.config = Config() # config
|
| 12 |
+
self.user_controls = {}
|
src/langgraph_agenticai/ui/uiconfigfile.ini
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[DEFAULT]
|
| 2 |
+
PAGE_TITLE = LangGraph AgenticAI Application
|
| 3 |
+
LLM_OPTIONS = Groq, OpenAI
|
| 4 |
+
USECASE_OPTIONS = Basic Chatbot, Chatbot with Tools, Travel Planner, AI News, SDLC Workflow, Blog Generator, Appointment Receptionist
|
| 5 |
+
GROQ_MODEL_OPTIONS = mixtral-8x7b-32768, llama3-8b-8192, llama3-70b-8192, gemma-7b-i
|
src/langgraph_agenticai/ui/uiconfigfile.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from configparser import ConfigParser
|
| 2 |
+
|
| 3 |
+
class Config:
|
| 4 |
+
def __init__(self,config_file=".src/langgraph_agenticai/ui/uiconfigfile.py"):
|
| 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')
|
src/langgraph_agenticai/vectorestore/__init__.py
ADDED
|
File without changes
|