import requests

BASE_URL = "http://localhost:5005/api/agent/chat-dev"

def test_query(query, description):
    print(f"\nTEST: {description}")
    print(f"QUERY: '{query}'")
    try:
        response = requests.post(BASE_URL, json={"user_query": query}, timeout=60)
        print("Status code:", response.status_code)
    except Exception as e:
        print(f"Connection failed: {e}")

if __name__ == "__main__":
    test_query("Tìm quần âu nam mặc đi làm công sở", "Test Tag")
