com um clique
fastapi-backend
FastAPI backend patterns for AI Doctor Assistant
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
FastAPI backend patterns for AI Doctor Assistant
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Generate a structured pre-consultation patient briefing. Use when the physician asks for a briefing, a pre-consultation summary, or sends /briefing.
Search the live web or read a specific web page for recency-sensitive clinical information — drug recalls, newly published guidance, FDA/EMA safety communications — that the local clinical guidelines corpus does not cover. Use when the physician asks to "search the web", "look up the latest", or asks about something the guidelines search returned no results for.
Claude Agent SDK patterns and best practices
Code review and refactoring guidelines
React frontend development patterns for AI Doctor Assistant
Architecture guidance for AI Doctor Assistant
| name | fastapi-backend |
| description | FastAPI backend patterns for AI Doctor Assistant |
# Correct (v2)
obj = MyModel.model_validate(data)
json_str = obj.model_dump_json()
# Wrong (v1 - don't use)
# obj = MyModel.parse_obj(data)
from src.database import get_session
from fastapi import Depends
from sqlalchemy.ext.asyncio import AsyncSession
@app.get("/items")
async def get_items(session: AsyncSession = Depends(get_session)):
result = await session.execute(select(Item))
return result.scalars().all()
from fastapi import HTTPException
if not item:
raise HTTPException(status_code=404, detail="Item not found")
src/
├── __init__.py
├── main.py # FastAPI app entry
├── config.py # Settings from env vars
├── models/ # Pydantic models
├── services/ # Business logic
├── agents/ # Claude Agent SDK agents
│ ├── briefing_agent.py
│ ├── tools.py # @tool definitions
│ └── hooks.py # Langfuse hooks
├── routers/ # API routes
└── database.py # SQLAlchemy setup
# Start server
uv run uvicorn src.main:app --reload
# Run tests
uv run pytest
# Format code
uv run ruff format .
# Lint code
uv run ruff check . --fix
from __future__ import annotations for forward refsasync def for I/O-bound operations