AiAgent / agent /reasoning.py
tarek29910's picture
Upload 22 files
b303183 verified
raw
history blame
323 Bytes
from model.yehia_interface import query_yehia
class Reasoner:
def generate_response(self, user_input, phase):
# You can format the input here, e.g.:
prompt = f"ุงู„ู…ุฑุญู„ุฉ ุงู„ุญุงู„ูŠุฉ: {phase}. ุทู„ุจ ุงู„ู…ุณุชุฎุฏู…: {user_input}"
response = query_yehia(prompt)
return response