100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
Fix podcast script failure check using or instead of and
midasstack421cb5b45783
diff --git a/advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong/agents/script_agent.py b/advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong/agents/script_agent.pyindex 11d7ef91..58dfbd2c 100644--- a/advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong/agents/script_agent.py+++ b/advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong/agents/script_agent.py@@ -130,6 +130,6 @@ def podcast_script_agent_run(session_state['stage'] = 'script'SessionService.save_session(session_id, session_state)- if not session_state["generated_script"] and not session_state["generated_script"].get("sections"):+ if not session_state["generated_script"] or not session_state["generated_script"].get("sections"):return "Failed to generate podcast script."return f"Generated podcast script for '{query}' with {len(sources)} confirmed sources."\ No newline at end of file