INNER CODE UNIT · Python

history

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

            history = to_langchain(st.session_state.messages[:-1])

            try:
                response = st.session_state.agent.process_query(
                    user_input=prompt,
                    chat_history=history,
                    callbacks=progress,
                )
                if not response or not response.strip():
                    response = "No response generated. Try a different question."
                progress.complete()
            except Exception as e:
                progress.error(str(e))
                response = f"Error: {e}"

            st.markdown(response)

        st.session_state.messages.append({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…