doctorecord / src /agents /semantic_reasoner.py
levalencia's picture
Update Dockerfile to use new app entry point and enhance requirements.txt with additional dependencies. Remove obsolete streamlit_app.py file.
0a40afa
raw
history blame
297 Bytes
from typing import Dict, Any
from .base_agent import BaseAgent
class SemanticReasonerAgent(BaseAgent):
def execute(self, ctx: Dict[str, Any]):
field = ctx.get("current_field")
candidate = ctx.get("candidates", {}).get(field)
return candidate or f"<unresolved {field}>"