-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (22 loc) · 870 Bytes
/
Copy pathmain.py
File metadata and controls
33 lines (22 loc) · 870 Bytes
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
import streamlit as st
from agents.planner import PlannerAgent
from agents.executor import ExecutorAgent
from agents.verifier import VerifierAgent
st.set_page_config(page_title="AI Ops Assistant", layout="centered")
st.title("🤖 AI Operations Assistant")
st.caption("Planner → Executor → Verifier | Powered by Groq")
task = st.text_input("Enter your task:", "Hey, get me some info on OpenClaw.")
if st.button("Run Assistant"):
planner = PlannerAgent()
executor = ExecutorAgent()
verifier = VerifierAgent()
with st.spinner("Planning..."):
plan = planner.plan(task)
st.subheader("🧠 Plan")
st.json(plan)
with st.spinner("Executing tools..."):
raw = executor.execute(plan)
with st.spinner("Verifying output..."):
final = verifier.verify(raw)
st.subheader("✅ Final Result")
st.json(final)