HMP / agents /qa.py
GitHub Action
Sync from GitHub with Git LFS
2c3dd0c
raw
history blame
676 Bytes
# agents/qa.py
def run_qa_loop(config):
print("[HMP-Agent] Запуск в QA-режиме (вопрос → ответ)")
from llm import ask_llm # абстракция над вызовом LLM (нужна реализация)
try:
while True:
user_input = input("\n🧑‍💻 Вопрос: ").strip()
if user_input.lower() in {"exit", "quit"}:
print("👋 Завершение QA-режима.")
break
response = ask_llm(user_input)
print(f"\n🤖 Ответ: {response}")
except KeyboardInterrupt:
print("\n👋 Завершение QA-режима.")