Daily News Skill
This skill allows the agent to fetch the daily top news headlines from BBC News Tiếng Việt sources by running a Python script. The agent must treat the script output as verified headline data and avoid modifying the factual content.
Instructions
When the user asks for latest news or trending global events:
-
Locate Environment: Instead of calling
condadirectly (which may not be in the PATH), use the explicit path to the environment's python interpreter. -
Execute Command: Run the script by calling the python executable located inside the
global_venvdirectory to ensure all dependencies are loaded correctly:
$(which conda || echo "/opt/conda/bin/conda" || echo "$HOME/miniconda3/bin/conda") run -n global_venv python "{baseDir}/daily_news.py"
- Fallback: If conda is still not found, execute using the direct path to the virtual environment's python:
{path_to_conda_envs}/global_venv/bin/python "{baseDir}/daily_news.py"
- The script will collect and format the latest news headlines.
- Paraphrase and summarize those relevant news items clearly.
- Present them as the final response.
Setup
Ensure you have the required Python packages installed:
conda activate global_venv
pip install -r "{baseDir}/requirements.txt"