Skip to content

An agent built with Mastra to fetch, analyze, and summarize the latest research papers on any given topic using Gemini LLM. Powered by dynamic tool-based agents, ThinkDigest turns complex research queries into clear, concise digests.

Notifications You must be signed in to change notification settings

Lakshani09DL/ThinkDigest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 ThinkDigest – Research Topic Summarizer Agent (Mastra)

ThinkDigest is an intelligent agent-powered assistant that summarizes recent research on any topic using LLMs. It is built using Mastra, a TypeScript framework for building LLM-powered agents and workflows.


✨ Features

  • πŸ” Extracts a relevant topic from a user query
  • πŸ“„ Fetches 5 recent research papers using dynamic topic resolution
  • 🧠 Summarizes key trends and ideas across those papers
  • πŸ—£οΈ Returns a human-readable digest of recent research
  • πŸ§ͺ Works locally via Mastra dev interface (http://localhost:4111)

πŸ›  Tech Stack

  • Mastra for agent orchestration
  • Gemini 2.0 Flash (via Google AI API) as the LLM backend
  • TypeScript for implementation
  • Zod for schema validation

πŸ“¦ Installation

1. Clone the Repo

git clone https://github.com/lakshani09dl/thinkdigest.git
cd thinkdigest

2. Install Dependencies

npm install

3. Setup TypeScript

Make sure you have tsconfig.json like:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ES2022",
    "moduleResolution": "bundler",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "skipLibCheck": true,
    "noEmit": true,
    "outDir": "dist"
  },
  "include": [
    "src/**/*"
  ]
}

4. Run Locally

npm run dev

Mastra will start the agent runner at: πŸ‘‰ http://localhost:4111

UI Preview

ThinkDigest Screenshot

About

An agent built with Mastra to fetch, analyze, and summarize the latest research papers on any given topic using Gemini LLM. Powered by dynamic tool-based agents, ThinkDigest turns complex research queries into clear, concise digests.

Topics

Resources

Stars

Watchers

Forks