@ -88,15 +88,20 @@ def main():
print ( f " Response: { response } " )
print ( f " Response: { response } " )
print ( " - " * 50 )
print ( " - " * 50 )
else :
else :
try :
response = super_agent . run ( user_input )
response = super_agent . run ( user_input )
print ( " \n Super Agent Response: " )
print ( " \n Super Agent Response: " )
print ( " - " * 50 )
print ( " - " * 50 )
if isinstance ( response , dict ) :
if isinstance ( response , dict ) :
result = response . get ( ' result ' , response )
result = response . get ( ' result ' , response )
print ( f " Calculation Result: { result } " )
print ( f " Result: { result } " )
elif hasattr ( response , ' content ' ) :
print ( f " Result: { response . content } " )
else :
else :
print ( f " Calculation Result: { response } " )
print ( f " Result: { response } " )
print ( " - " * 50 )
print ( " - " * 50 )
except Exception as e :
print ( f " Error processing calculation: { str ( e ) } " )
except KeyboardInterrupt :
except KeyboardInterrupt :
print ( " \n Exiting gracefully... " )
print ( " \n Exiting gracefully... " )