AiCoderClean / brain_server /agents /reasoning_agent.py
MrA7A1's picture
Initial modernized KAPO runtime upload
06ce7ac verified
raw
history blame contribute delete
688 Bytes
"""Reasoning Agent: ???? ????? ????? ?????."""
import logging
from typing import List, Dict, Any
from api.deps import get_logger
logger = get_logger("kapo.agent.reasoning")
class ReasoningAgent:
def run(self, user_input: str, plan: List[Dict[str, Any]]) -> Dict[str, Any]:
try:
logger.info("Reasoning", extra={"component": "reasoning"})
return {
"summary": "?? ????? ????? ??? ????? ????? ??????.",
"steps_count": len(plan),
"input": user_input,
}
except Exception as exc:
logger.exception("Reasoning failed")
return {"error": str(exc)}