Skip to main content

A Python package for creating a research brief agent

Project description

Research Brief Agent

Supported Python Versions License Actively Maintained Latest Version Project Status Monthly Downloads Total Downloads

A Python library for an AI agent that generates concise research briefs from web searches using LangChain, Anthropic's Claude, and Tavily search.

Overview

The ResearchBriefAgent automates the process of researching a topic and producing a structured brief, including key points and sources. Built with LangChain's ecosystem, it leverages Anthropic's Claude model for reasoning and Tavily for web search, with SQLite-backed memory for context persistence.

Features

  • Topic-Based Research: Generate briefs on any topic with a single function call.
  • Structured Output: Receive formatted briefs with key points and cited sources.
  • Memory Persistence: Retain conversation context across queries using SQLite checkpointing.
  • Extensible: Built on LangChain, allowing integration with additional tools and models.

Installation

Install the library via PyPI:

pip install researchbriefagent

Usage

from researchbriefagent import ResearchBriefAgent
agent = ResearchBriefAgent(anthropic_api_key="your_anthropic_api_key", tavily_api_key="your_tavily_api_key")
brief = agent.generate_brief("Impact of renewable energy on climate change")
print(brief)

Example Output:

Research Brief: Impact of renewable energy on climate change

Key Points

  • Reduces greenhouse gas emissions by replacing fossil fuels.
  • Solar and wind power adoption has surged globally.
  • Critical for limiting warming to 1.5°C.

Sources

Requirements

Python: 3.8 or higher Dependencies: langchain-community, langgraph, langchain-anthropic, tavily-python, langgraph-checkpoint-sqlite API Keys: Obtain from Anthropic and Tavily Setup Clone the repo:

git clone https://github.com/yourusername/researchbriefagent.git
cd researchbriefagent

Install dependencies:

pip install -r requirements.txt

Or install from PyPI:

pip install researchbriefagent

Contributing

Contributions are welcome! Fork the repo, create a feature branch, commit changes, and open a pull request. See CONTRIBUTING.md for details (to be added).

License

MIT License - see LICENSE for details.

Contact

Email: vikhrams@saveetha.ac.in

Issues: GitHub

Acknowledgments

Built with LangChain and Anthropic. Search powered by Tavily.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

researchbriefagent-0.1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

researchbriefagent-0.1.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file researchbriefagent-0.1.3.tar.gz.

File metadata

  • Download URL: researchbriefagent-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for researchbriefagent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3629af5cb488c6bfb436ef51e50d7245485a9a6984192d49d9b27f6a182fdaee
MD5 198c6d5c56384245629583820db584c4
BLAKE2b-256 7df5bcb8457573efab9d8b2e9832e2a7fdee8c087ac2f435f191abf74bc9471d

See more details on using hashes here.

File details

Details for the file researchbriefagent-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for researchbriefagent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 951fc6947ea768177c930ee844fb773e338cbffa184c23c5ef8fe831a2d0e8ce
MD5 9927cf28f4b1cad526219d3dc3d845ec
BLAKE2b-256 358ab8a7a4731efcfee8d602228ba7090d43c2ed40d5dddbd43693c57d75155a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page