CoolFace
Apppublic

Agents-MCP-Hackathon/medication-interaction-agent

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

πŸ’Š Medication Interaction Checker

An intelligent assistant that helps users check for potential drug-drug interactions from free-form natural language descriptions. Built using smolagents and powered exclusively by Anthropic’s Claude Opus 4, this app demonstrates how Claude’s high reasoning ability can support clinical safety tasks in real-time.

🧠 How It Works

Users enter messages like:

  • β€”"I'm taking warfarin and metformin. Is there any interaction?"

Claude Opus 4 handles everything:

  • β€”medication names from natural text
  • β€”Identifies active ingredients
  • β€”Queries the RxNav API to get known interactions
  • β€”Summarizes the clinical relevance in clear, human-readable language

πŸ” Multi-Agent Architecture

  • β€”Manager Agent: Plans, delegates, and summarizes
  • β€”Sub-Agent: Handles ingredient extraction and interaction checking

All tools and agents are built on Claude Opus 4, showing its versatility across planning, extraction, API interpretation, and summarization

πŸ› οΈ Tech Stack

  • β€”πŸ€– smolagents framework
  • β€”πŸ§  anthropic/claude-opus-4-20250514 (via LiteLLM)
  • β€”πŸŒ RxNav drug interaction API
  • β€”πŸ–ΌοΈ Gradio UI with a conversational agent interface (gr.ChatInterface)

πŸš€ Why Claude Opus 4?

I was captivated by this statement from Anthropic:

Claude Opus 4 is our most intelligent model to date, pushing the frontier in coding, agentic search, and creative writing.

In high-stakes domains like healthcare, Claude's reliability and interpretability make it the ideal choice.

πŸŽ₯ Video Overview

Watch the video overview here β€” explains how the app works, key features, and real-world use cases.

🏁 Try It

Enter any natural sentence describing your medications and check for potential interactions instantly.

πŸ‘¨β€βš•οΈ Example Prompts

"I take amlodipine in the morning and ibuprofen sometimes. Should I worry?"

"Prescribed metformin and glipizide. Safe combo?"