|
|
"""Verify champion export capabilities."""
|
|
|
import sys
|
|
|
import os
|
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
|
|
|
|
|
|
|
|
import champion_gen42 as champ
|
|
|
|
|
|
print('=== CHAMPION CAPABILITIES ===')
|
|
|
print(f'Quine Hash: {champ._QUINE_HASH}')
|
|
|
print(f'Generation: {champ._GENERATION}')
|
|
|
print(f'Fitness: {champ._FITNESS}')
|
|
|
|
|
|
|
|
|
print('\n=== CAPSULE AGENT ===')
|
|
|
agent = champ.CapsuleAgent()
|
|
|
print(f'Agent type: {type(agent).__name__}')
|
|
|
|
|
|
print('\n=== EXPORT CAPABILITIES ===')
|
|
|
has_pt = hasattr(agent, 'export_pt')
|
|
|
has_onnx = hasattr(agent, 'export_onnx')
|
|
|
has_capsule = hasattr(agent, 'export_capsule')
|
|
|
has_quine = hasattr(agent, 'get_quine_brain')
|
|
|
has_replicate = hasattr(agent, 'replicate_quine')
|
|
|
has_verify = hasattr(agent, 'verify_quine_integrity')
|
|
|
|
|
|
print(f'Has export_pt: {has_pt}')
|
|
|
print(f'Has export_onnx: {has_onnx}')
|
|
|
print(f'Has export_capsule: {has_capsule}')
|
|
|
print(f'Has get_quine_brain: {has_quine}')
|
|
|
print(f'Has replicate_quine: {has_replicate}')
|
|
|
print(f'Has verify_quine_integrity: {has_verify}')
|
|
|
|
|
|
|
|
|
print('\n=== ALL PUBLIC METHODS ===')
|
|
|
methods = [m for m in dir(agent) if not m.startswith('_') and callable(getattr(agent, m, None))]
|
|
|
for m in methods:
|
|
|
print(f' - {m}')
|
|
|
|
|
|
|
|
|
print('\n=== MODULE-LEVEL QUINE FUNCTIONS ===')
|
|
|
print(f'get_quine_brain: {hasattr(champ, "get_quine_brain")}')
|
|
|
print(f'replicate_quine: {hasattr(champ, "replicate_quine")}')
|
|
|
print(f'verify_quine_integrity: {hasattr(champ, "verify_quine_integrity")}')
|
|
|
print(f'load_quine_brain: {hasattr(champ, "load_quine_brain")}')
|
|
|
|