Skip to content

amadad/civic-agentcy

Repository files navigation

Civic Agentcy 🗳️

Public Policy Researcher & Analysis

GitHub Contributors GitHub Last Commit GitHub Repo Size GitHub Stars GitHub Forks Github License Twitter


OverviewUser InputCustom AgentsTaskToolsRoadmapContributingLicense


Public Policy Researcher & Analysis that uses crewAI powered by LangChain to define agents and tasks that automate the analysis and reporting process.


📖 Overview

The process of analyzing public policies, engaging stakeholders, and generating actionable insights is often complex and time-consuming, lacking efficiency and clarity. Civic Agentcy is a comprehensive framework designed to automate the process of analyzing public policies, engaging stakeholders, preparing legislative briefings, developing policy recommendations, and compiling detailed reports. Utilizing a combination of advanced language models and realtime retrieval tools, this project aims to provide in-depth insights that guide policy formulation, refinement, and implementation planning.

Civic Agentcy is a sophisticated framework designed for public policy analysis and development.

  • Automated Policy Analysis: Utilizes advanced language models to analyze and evaluate policies.
  • Stakeholder Engagement: Streamlines the process of identifying and engaging key stakeholders.
  • Legislative Briefing Preparation: Facilitates the creation of briefings for policymakers.
  • Policy Recommendations: Generates actionable, evidence-based recommendations.
  • Report Compilation: Compiles in-depth reports, enhancing policy formulation and implementation.

User Input

Through a streamlit app, users can input the following information:

  1. What is the policy area of interest? (E.g., Solar energy policy in Michigan)
  2. What specific research questions should the policy analysis address? (E.g., What are the current barriers to solar energy adoption?)
  3. Provide a summary of your policy recommendations. (E.g., Incentives for solar installation, streamlined permitting process)
  4. What external factors should be considered in the policy analysis? (E.g., Federal energy policies, technological advancements in solar panels)

There are three main components to the this project: agents, tasks, and tools. The agents are designed to interact with the user and provide insights and recommendations based on the policy area of interest. The tasks are designed to automate the process of analyzing and evaluating policies, while the tools are used to gather and summarize information from various sources.

Custom Agents

The Civic Agentcy framework is equipped with a suite of custom agents designed to streamline and enhance the policy analysis and development process. Each agent is specialized in a specific aspect of policy work, leveraging advanced tools and methodologies to deliver high-quality outcomes.

  • Policy Researcher: This agent is tasked with investigating current policy issues, trends, and evidence through comprehensive web and database searches. It gathers relevant data and insights, utilizing tools like you_search to navigate complex policy landscapes.
  • Policy Writer: The Policy Writer agent is skilled in crafting detailed, engaging, and impactful policy briefs. It uses insights from the Policy Researcher and employs tools such as perplexity_search, search_internet, and file_read_tool to articulate insights, key trends, and evidence-based recommendations.
  • Policy Brief Reviewer: This agent critically reviews draft policy briefs for coherence, alignment with policy objectives, evidence strength, and persuasive clarity. It refines content to ensure high-quality, impactful communication, utilizing search_internet and file_read_tool to verify information and ensure accuracy.

Tasks

The Civic Agentcy framework is designed to automate and streamline various tasks related to public policy analysis and development. These tasks are crucial for comprehensive policy formulation, refinement, and implementation planning.

  • Research Policy Issues: Investigates the current status, debates, and evidence related to a specified policy topic, focusing on specific research questions. This task collects and analyzes relevant data and insights to provide a robust evidence base for policy brief formulation.
  • Decision Making and Legislation: Evaluates how external factors affect the legislative process and decision-making for a policy topic. It examines the policy's main legislative challenges and opportunities, suggesting strategies for navigating the legislative landscape.
  • Analyze Policy Options: Based on the research conducted, analyzes potential policy options for a policy topic. This task evaluates the pros and cons of each option, considering effectiveness, feasibility, and potential impact.
  • Draft Policy Brief: Drafts a policy brief for a policy topic using the research findings and policy recommendations. The brief includes an executive summary, context analysis, and evidence-based recommendations, aiming to be concise, engaging, and persuasive.
  • Review and Refine Policy Brief: Reviews the draft policy brief, ensuring the document is coherent, concise, and effectively communicates the policy analysis and recommendations. This task involves refining the brief to enhance persuasiveness and impact, incorporating feedback for final revisions.

Tools

Current tools include:

  • SerpApi: Leverages serpapi for in-depth searches across the web, targeting specific policy areas.
  • Perplexity: Applies perplexity_search for advanced, context-aware searches to uncover nuanced policy insights.
  • You Search: Uses you_search for targeted information retrieval, honing in on specific policy-related queries.
  • Exa Search: Employs exa_search for comprehensive searches, focusing on detailed information within policy sectors.
  • File Tools: Accesses and reads policy brief documents via the file_read_tool, facilitating direct analysis of policy texts.

This project utilizes the CrewAI powered by LangChain to define agents and tasks that automate the analysis and reporting process.

Roadmap

  • Integrate Exa Search for enhanced realtime search capabilities
  • Embeddings and vector search for improved policy analysis
  • Enable PDF/text document uploads for policy references.
  • Link user accounts for easy access to documents via Google Drive Integration.
  • Incorporate real-time notes and collaboration features with Meeting Notes Integration.
  • Distinguish between public and internal documents for clarity with Context Balancing

--

Contributing

Contributions to the Civic Agentcy are welcome. Please ensure to follow the project's code standards and submit pull requests for review. Contact Ali Madad for any questions or issues.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Public policy multi-agent research with CrewAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages