Spaces:
Sleeping
Sleeping
File size: 688 Bytes
06ce7ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """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)}
|