Skip to content

feat: add Medical Research Summarizer agent - #560

Open
adityajoshi18vk-art wants to merge 2 commits into
AditthyaSS:mainfrom
adityajoshi18vk-art:feat/medical-research-summarizer-agent
Open

feat: add Medical Research Summarizer agent#560
adityajoshi18vk-art wants to merge 2 commits into
AditthyaSS:mainfrom
adityajoshi18vk-art:feat/medical-research-summarizer-agent

Conversation

@adityajoshi18vk-art

@adityajoshi18vk-art adityajoshi18vk-art commented Jun 18, 2026

Copy link
Copy Markdown

What this PR does

Adds a new Medical Research Summarizer agent to the Healthcare category.

This agent turns dense medical research abstracts or full papers into plain-English summaries with:

  • Plain English Summary — an accessible overview of the study
  • Key Findings — bullet-pointed results with effect sizes explained in plain terms
  • Methodology — study design, sample size, and measurement approach
  • Limitations — author-stated and inferred caveats
  • What This Means — separate practical takeaways for patients and practitioners

Implementation details

  • Single config file: \src/agents/definitions/medical-research-summarizer.js\
  • Uses the existing \Healthcare\ category — no changes to \categories.js\
  • Auto-registered via \import.meta.glob\ in
    egistry.js\ — no registry edits needed
  • Icon: \Stethoscope\ from lucide-react
  • Inputs: textarea (paper text) + select dropdown (audience: Patient / Healthcare Practitioner / Both)

Closes #69

Summary by CodeRabbit

  • Updates
    • Added targeted audience options for the medical research summarizer: Patient, Healthcare Practitioner, or Both
    • Improved Markdown output formatting with a stricter, consistent structure and required ending disclaimer line
    • Refined how abstracts vs full papers are summarized, including audience-dependent section depth
    • Updated input naming to use paper_text and made the audience selection optional

Copilot AI review requested due to automatic review settings June 18, 2026 06:56
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@adityajoshi18vk-art is attempting to deploy a commit to the aditthyass' projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "issues"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 320b9dfd-a507-4e04-9017-5881d83b0a35

📥 Commits

Reviewing files that changed from the base of the PR and between 5ee4c74 and 5b5e810.

📒 Files selected for processing (1)
  • src/agents/definitions/medical-research-summarizer.js
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/agents/definitions/medical-research-summarizer.js

Walkthrough

The medical-research-summarizer agent definition is refactored to use an inline default export. Metadata fields (description, category, icon) are updated, the paper text input field is renamed, audience options are narrowed to three choices and made optional, and the system prompt is rewritten with a strict five-section Markdown output contract including a required disclaimer.

Changes

Medical Research Summarizer Agent Refactor

Layer / File(s) Summary
Export form, metadata, and input schema
src/agents/definitions/medical-research-summarizer.js
Converts const medicalResearchSummarizer = ...; export default medicalResearchSummarizer to an inline export default { ... }. Updates description, changes category from Research to Healthcare, updates icon, and adds a provider comment. Renames researchTextpaper_text and replaces audience selector options with Patient, Healthcare Practitioner, Both; removes the field's default value and makes it optional.
System prompt and output contract
src/agents/definitions/medical-research-summarizer.js
Replaces the system prompt with a stricter version mandating a fixed five-section Markdown structure (## Plain English Summary, ## Key Findings, ## Methodology, ## Limitations, ## What This Means), rules against inventing results, abstract-only text handling, audience-conditional section depth, and a required ending disclaimer line. Retains outputType: 'markdown'.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • AditthyaSS/iloveAgents#531: This is the original PR that added the medical-research-summarizer agent; the current PR is a direct refactor of that same file's export form, input schema, and system prompt.

Suggested labels

healthcare, agent-update

Suggested reviewers

  • AditthyaSS
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add Medical Research Summarizer agent' directly and clearly describes the main change—adding a new agent. It is concise, specific, and accurately reflects the core objective of the PR.
Linked Issues check ✅ Passed The PR fully implements the requirements from issue #69: a Medical Research Summarizer agent that accepts medical research text, generates plain English summaries with key findings, methodology, limitations, and audience-specific takeaways, and is added to the Healthcare domain.
Out of Scope Changes check ✅ Passed All changes are contained within the single configuration file for the Medical Research Summarizer agent. No modifications to categories.js or manual registry updates were required, keeping changes tightly scoped to the agent definition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@mergify

mergify Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Hey @adityajoshi18vk-art! 👋
Wow — your first contribution to iloveAgents! This is a big deal and I want you to know it means a lot. 🎊
Every agent on this platform started exactly like this — someone like you deciding to spend their time building something useful for everyone. That is something to be proud of.
A few things while you wait for the review:

  • Star the repo if you haven't already. Star it here
  • 📖 Check the Contributing Guide
  • 💬 Drop a comment if you get stuck — I reply within 24 hours
    Can't wait to ship this with you. 🚀
    Welcome to the iloveAgents family. 🙏
    @AditthyaSS

@mergify

mergify Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

hey @adityajoshi18vk-art! 👋
Your PR title doesn't follow our required format.
Please update it to:
type: short description
Valid types: feat, fix, docs, style, refactor, test, chore
Example: feat: add sales discovery agent
@AditthyaSS

@mergify mergify Bot added the needs-fix label Jun 18, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jun 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates/adds the Medical Research Summarizer agent definition so it appears under the Healthcare category and produces a more structured, safety-conscious plain-English summary of medical research text (abstracts or full papers), aligning with Issue #69.

Changes:

  • Reworked the agent config to export default { ... }, moved the agent to the Healthcare category, and updated the icon to Stethoscope.
  • Updated inputs to accept paper text plus an optional audience selector (Patient / Healthcare Practitioner / Both).
  • Replaced the system prompt with a stricter Markdown output structure, stronger “don’t invent results” rules, and an explicit informational-not-advice closing note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 23 to +26
type: 'select',
options: [
'General Public',
'Patients',
'Healthcare Professionals',
'Researchers',
],
defaultValue: 'General Public',
required: true,
options: ['Patient', 'Healthcare Practitioner', 'Both'],
placeholder: 'Choose who this summary is for',
required: false,
Comment thread src/agents/definitions/medical-research-summarizer.js Outdated
@adityajoshi18vk-art adityajoshi18vk-art changed the title Add Medical Research Summarizer agent (Healthcare domain) feat: add Medical Research Summarizer agent Jun 18, 2026
@adityajoshi18vk-art

Copy link
Copy Markdown
Author

Hi @AditthyaSS, I hope the changes look good. Please let me know if there is anything else left to fix, or if it's ready for your approval!

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add agent: Medical Research Summarizer

2 participants