File size: 676 Bytes
b73eed5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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-режима.")