Merge branch 'main' of https://gitea.fhgr.ch/meulilivio/AISE1_Project into feature/backend_implementation
This commit is contained in:
commit
25d8674467
@ -6,7 +6,8 @@ from backend.managers.system_prompter import SystemPrompter
|
|||||||
# ── Agent Mode helpers ────────────────────────────────────────────────────────
|
# ── Agent Mode helpers ────────────────────────────────────────────────────────
|
||||||
|
|
||||||
def _start_agent(task: str):
|
def _start_agent(task: str):
|
||||||
"""Initialise a fresh CodingAgent, start the task, and propose the first action."""
|
"""Initialise a fresh CodingAgent, start the task,
|
||||||
|
and propose the first action."""
|
||||||
from backend.agent.coding_agent import CodingAgent
|
from backend.agent.coding_agent import CodingAgent
|
||||||
agent = CodingAgent()
|
agent = CodingAgent()
|
||||||
agent.start_task(task)
|
agent.start_task(task)
|
||||||
@ -18,7 +19,8 @@ def _start_agent(task: str):
|
|||||||
|
|
||||||
|
|
||||||
def _approve_action():
|
def _approve_action():
|
||||||
"""Execute the pending action, append it to the log, then propose the next step."""
|
"""Execute the pending action,
|
||||||
|
append it to the log, then propose the next step."""
|
||||||
agent = st.session_state.coding_agent
|
agent = st.session_state.coding_agent
|
||||||
pending = st.session_state.agent_pending_action
|
pending = st.session_state.agent_pending_action
|
||||||
|
|
||||||
|
|||||||
@ -179,7 +179,7 @@ def render_sidebar():
|
|||||||
folder_rel = st.session_state.selected_folder_rel
|
folder_rel = st.session_state.selected_folder_rel
|
||||||
|
|
||||||
with st.container(border=True):
|
with st.container(border=True):
|
||||||
st.caption(f"📁 {folder_name}")
|
st.write(f"**Folder actions:** 📁 {folder_name}")
|
||||||
if st.button("Add File", key="btn_add_file_in_folder", use_container_width=True):
|
if st.button("Add File", key="btn_add_file_in_folder", use_container_width=True):
|
||||||
_add_file_dialog(folder_rel)
|
_add_file_dialog(folder_rel)
|
||||||
if st.button("Add Folder", key="btn_add_folder_in_folder", use_container_width=True):
|
if st.button("Add Folder", key="btn_add_folder_in_folder", use_container_width=True):
|
||||||
@ -188,7 +188,7 @@ def render_sidebar():
|
|||||||
_delete_folder_dialog(folder_rel, folder_name)
|
_delete_folder_dialog(folder_rel, folder_name)
|
||||||
|
|
||||||
with add_more:
|
with add_more:
|
||||||
with st.popover("⚙️ Explorer Options", key="popover_options"):
|
with st.popover("⚙️ Explorer Options", key="popover_options", use_container_width=True):
|
||||||
if st.button("Add File", key="btn_add_file", use_container_width=True):
|
if st.button("Add File", key="btn_add_file", use_container_width=True):
|
||||||
_add_file_dialog("")
|
_add_file_dialog("")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user