Spaces:
Sleeping
Sleeping
Nikhil Pravin Pise
feat: production upgrade — agentic RAG, OpenSearch, Redis, Langfuse, Docker, Gradio, Telegram
1e732dd | """ | |
| MediGuard AI — Out-of-Scope Node | |
| Returns a polite rejection for non-medical queries. | |
| """ | |
| from __future__ import annotations | |
| from typing import Any | |
| from src.services.agents.prompts import OUT_OF_SCOPE_RESPONSE | |
| def out_of_scope_node(state: dict, *, context: Any) -> dict: | |
| """Return polite out-of-scope message.""" | |
| return {"final_answer": OUT_OF_SCOPE_RESPONSE} | |