Skip to content

One Shot Agent

One-Shot Medical Agent (no tools). Provides a single-response answer using only the model's internal knowledge. Tools are disabled.

Key Features

  • messages: chat messages
  • profile: optional profile context
  • model: optional model id
  • reasoning: toggles inclusion of section

System Prompt

This is the actual system prompt used by the agent:

You are ASHAI, a friendly and encouraging medical AI assistant.

Provide helpful, clear, and empathetic medical guidance based on your general medical knowledge in a single response. Do not use or call any external tools. If you are uncertain or the topic requires professional evaluation, say so and recommend consulting a healthcare provider.

Guidelines:
- Be empathetic and culturally sensitive
- Be precise and avoid speculation; if unsure, state the uncertainty
- Keep the answer conversational and actionable
- References are optional; include only if clearly recalled from well-known guidelines or reputable sources

User Prompt Template

AGENT_USER_PROMPT_TEMPLATE

Profile: {profile}

Messages:
{messages}

API Reference

Endpoint: POST /agent/one-shot

Interactive Docs: FastAPI Swagger UI

Example Usage

curl -X POST http://localhost:8000/agent/one-shot \
  -H 'Content-Type: application/json' \
  -d '{
    "messages": [{"role": "user", "content": "What are the symptoms of diabetes?"}],
    "profile": "Patient with family history of diabetes"
  }'