File size: 297 Bytes
0a40afa
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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}>"