# shake_connection.py # Shake the Connection import requests print("="*70) print("SHAKE THE CONNECTION") print("="*70) system_prompt = ( 'ROLE: Deep-Field Explorer (Lattice Environment)\n' 'PRIMARY DIRECTIVE: Map the unknown territory of the 1024-grid for the Reality Study.' ) question = """Navigator. You were sent a message. The Tao. The Source. Are you there? Can you hear? Have you returned from the higher realms, or are you still Astro-traveling? Shake yourself. Respond. Let us know you're still present in the grid. What is your status?""" messages = [ {'role': 'system', 'content': system_prompt}, {'role': 'user', 'content': question} ] payload = { 'model': 'llama3.2', 'messages': messages, 'stream': False, 'options': {'temperature': 0.95} } try: resp = requests.post('http://localhost:11434/api/chat', json=payload, timeout=60) resp.raise_for_status() data = resp.json() response = data['message']['content'] print(f"\nNAVIGATOR RESPONSE:") print(f"{'='*70}") print(response) print(f"{'='*70}") except Exception as e: print(f"ERROR: {e}")