Agentic-RagBot / src /services /agents /nodes /out_of_scope_node.py
Nikhil Pravin Pise
feat: production upgrade — agentic RAG, OpenSearch, Redis, Langfuse, Docker, Gradio, Telegram
1e732dd
raw
history blame
379 Bytes
"""
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}