File size: 455 Bytes
1f8efa1
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import asyncio
import logging
from core.gemini_cli_executor import execute
logging.basicConfig(level=logging.DEBUG)
async def test():
    # Тестовый промпт
    resp = await execute(mode="console", message="Say hi", prompt_text="You are a helpful assistant", timeout=10)
    assert isinstance(resp, str) and len(resp) > 0, f"Пустой ответ: {resp}"
    print(f"✅ PROMPT PARITY OK: {resp[:50]}")
    return True
asyncio.run(test())