haive.agents.research.open_perplexity.examples.run_from_file ============================================================ .. py:module:: haive.agents.research.open_perplexity.examples.run_from_file .. autoapi-nested-parse:: Example script that demonstrates running the open_perplexity research agent. from typing import Any with a research question loaded from a text file. Functions --------- .. autoapisummary:: haive.agents.research.open_perplexity.examples.run_from_file.load_research_question haive.agents.research.open_perplexity.examples.run_from_file.parse_arguments haive.agents.research.open_perplexity.examples.run_from_file.run_research haive.agents.research.open_perplexity.examples.run_from_file.setup_logging Module Contents --------------- .. py:function:: load_research_question(file_path) Load research question from a text file. .. py:function:: parse_arguments() Parse command line arguments. .. py:function:: run_research(question_file, output_dir=None, research_depth=2, max_sources=5) Run research based on a question from a file. :param question_file: Path to file containing the research question :param output_dir: Directory for outputs (default: ./outputs) :param research_depth: Depth of research (1-3) :param max_sources: Maximum number of sources per query :returns: Boolean indicating success or failure .. py:function:: setup_logging(log_file='research_run.log') Set up logging configuration.