INNER CODE UNIT · Python

sidebar

VersusControl/devops-ai-guidelines · 03-ai-agent-for-devops/code/10/app.py:148

def sidebar():
    with st.sidebar:
        st.title("AI Logging Agent")
        st.markdown("---")

        st.subheader("Configuration")
        provider = {"gemini": "Gemini", "github": "GitHub Models", "minimax": "MiniMax"}.get(
            Config.LLM_PROVIDER, Config.LLM_PROVIDER,
        )
        st.markdown(f"- Provider: **{provider}**")
        st.markdown(f"- AWS: {'Connected' if Config.is_aws_configured() else 'Placeholder mode'}")
        st.markdown(f"- Slack: {'Connected' if Config.is_slack_configured() else 'Placeholder mode'}")

        st.markdown("---")
        st.subheader("Available Tools")
        st.markdown("""
        **Auto-execute (safe):**
        - `read_log_file` — Read pod log files

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…