Skip to content

Add interactive patient web app#1

Draft
agr-333 wants to merge 1 commit intomainfrom
codex/create-interactive-agent-web-app
Draft

Add interactive patient web app#1
agr-333 wants to merge 1 commit intomainfrom
codex/create-interactive-agent-web-app

Conversation

@agr-333
Copy link
Copy Markdown
Owner

@agr-333 agr-333 commented Oct 22, 2025

Summary

  • add a FastAPI-powered web API with endpoints for starting sessions, sending doctor messages, and revealing diagnoses
  • implement a lightweight dataset-driven patient conversation session manager
  • provide a single-page interface with styling, client logic, and documentation updates for running the demo

Testing

  • python -m compileall medsim/webapp
  • python - <<'PY'
    from medsim.webapp.session import SessionManager
    manager = SessionManager()
    session = manager.create_session()
    print('Session ID:', session.session_id)
    print('Initial message:', session.history[-1]['content'][:120])
    reply, state = manager.handle_message(session.session_id, 'Can you tell me about the physical exam?')
    print('Reply snippet:', reply[:120])
    print('Shared exam:', state['metadata']['progress']['shared_exam'])
    print('Diagnosis:', manager.reveal(session.session_id))
    PY

https://chatgpt.com/codex/tasks/task_e_68f8d94792e4832d908d4effd63a7f86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant