command/bin/bash -lc "sed -n '1,330p' backend/agent_endpoints.py"
exit code 0
Output: """ API Endpoints for LangChain AI Agents """ from fastapi import APIRouter, HTTPException, status, Depends from pydantic import BaseModel, Field from typing import List, Optional, Dict, Any from datetime import datetime, timezone import uuid from auth import get_current_user from langchain_agents import ( get_routing_agent, get_triage_agent, get_prescription_agent, get_followup_agent, get_monitoring_agent, get_medication_agent ) router = APIRouter(prefix="/api/agents", tags=["AI Agents"]) # ============================================================================ # REQUEST/RESPONSE MODELS # ============================================================================ class RoutingRequest(BaseModel): symptoms: str = Field(min_length=10) patient_age: Optional[int] = Field(None, ge=0, le=150) medical_history: Optional[str] = None class TriageRequest(BaseModel): symptoms: str = Field(min_