{"id":25346587,"url":"https://github.com/burnycoder/deep-research-smolagents","last_synced_at":"2025-04-08T17:21:36.350Z","repository":{"id":277421094,"uuid":"932377812","full_name":"BurnyCoder/deep-research-smolagents","owner":"BurnyCoder","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-13T20:21:04.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T21:27:16.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BurnyCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-13T20:17:35.000Z","updated_at":"2025-02-13T20:21:08.000Z","dependencies_parsed_at":"2025-02-13T21:37:44.213Z","dependency_job_id":null,"html_url":"https://github.com/BurnyCoder/deep-research-smolagents","commit_stats":null,"previous_names":["burnycoder/deep-research-smolagents"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fdeep-research-smolagents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fdeep-research-smolagents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fdeep-research-smolagents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fdeep-research-smolagents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BurnyCoder","download_url":"https://codeload.github.com/BurnyCoder/deep-research-smolagents/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247888567,"owners_count":21013002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-14T13:39:03.344Z","updated_at":"2025-04-08T17:21:36.313Z","avatar_url":"https://github.com/BurnyCoder.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Deep Research\n\nThis is edited version of Hugginface's Open Deep Research Agent https://huggingface.co/blog/open-deep-research and dzhng's Deep Research agent https://github.com/dzhng/deep-research combined into one agent.\n\n## Environment Variables\n\nCreate a `.env` file in the root directory with the following variables. You can use the `.envtemplate` file as a reference.\n\n```bash\nHF_TOKEN=your_huggingface_token  # Required for accessing Hugging Face models and resources\nSERPAPI_API_KEY=your_serpapi_key  # Enables web search functionality through SerpAPI\nOPENAI_API_KEY=your_openai_key  # Required for using OpenAI language models\nFIRECRAWL_API_KEY=your_firecrawl_key  # Enables web crawling and content extraction\nPORTKEY_API_BASE=https://api.portkey.ai/v1  # Base URL for Portkey API service\nPORTKEY_API_KEY=your_portkey_key  # Main authentication key for Portkey services\nPORTKEY_VIRTUAL_KEY_GROQ=your_groq_virtual_key  # Virtual key for accessing Groq models via Portkey\nPORTKEY_VIRTUAL_KEY_ANTHROPIC=your_anthropic_virtual_key  # Virtual key for accessing Anthropic models\nPORTKEY_VIRTUAL_KEY_OPENAI=your_openai_virtual_key  # Virtual key for accessing OpenAI models through Portkey\nPORTKEY_VIRTUAL_KEY_GOOGLE=your_google_virtual_key  # Virtual key for accessing Google AI models\nOPENAI_MODEL=\"o3-mini\"  # Specifies which OpenAI model to use by default\nAGENT_TYPE=\"code\" # Determines whether to use tool-based or code-based agent\nMANAGER_AGENT_SYSTEM_PROMPT=system_prompt_here  # Defines the behavior and capabilities of the manager agent\n```\n\n## Installation\n\nClone the repository:\n```bash\ngit clone https://github.com/BurnyCoder/deep-research-smolagents\ncd deep-research-smolagents\n```\n\nOptionally create a virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate\n```\n\nInstall dependencies:\n```bash\npip install -r requirements.txt\nnpm install\n```\n\n## Running the agent\n\nParameters Explained:\n- `--model-id`: Specifies which AI model to use (e.g., \"o3-mini\", \"claude-3-5-sonnet-latest\")\n- `--questions`: When included, enables interactive clarifying questions mode where the agent will ask questions to better understand your research query\n- `--b`: Research breadth parameter (range: 3-10, default: 4)\n- `--d`: Research depth parameter (range: 1-5, default: 2)\n\nTo run smolagents deep research agent with deep reserach TS agent as a tool with optional parameters:\n```bash\npython run_deep_research.py --questions --model-id \"o3-mini\" \"Best practices to build AI agents\" \n```\n- If you don't pass query in the parameter, it will prompt you to enter a question.\n- If you dont pass --questions in the parameter, it will not ask clarifying questions.\n- If you don't pass --model-id in the parameter, it will use o3-mini as the model.\n\nTo run deep research TS agent alone with optional parameters:\n```bash\npython run_deep_research_ts.py --questions --b 2 --d 2 \"Best practices to build AI agents\" \n```\n- If you don't pass query in the parameter, it will prompt you to enter a question.\n- If you dont pass --questions in the parameter, it will not ask clarifying questions.\n- If you don't pass --b and --d (breadth and depth) in the parameter, it will use 2 and 2 as the default values.\n\nTo run smolagents agents with serapi (smolagents's original open deep research agent):\n```bash\npython run_serapi.py --questions --model-id \"claude-3-5-sonnet-latest\" \"Best practices to build AI agents\"\n```\n\nTo run smolagents agents with firecrawl:\n```bash\npython run_firecrawl.py --questions --model-id \"claude-3-5-sonnet-latest\" \"Best practices to build AI agents\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnycoder%2Fdeep-research-smolagents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburnycoder%2Fdeep-research-smolagents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnycoder%2Fdeep-research-smolagents/lists"}