Spaces:
Runtime error
Runtime error
File size: 446 Bytes
3696fe2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from tools.dialog_handler import handle_message
print('--- Payment commitment flow ---')
msg = 'I can pay ¥25000 by 2025-10-10'
out = handle_message(msg)
print('User:', msg)
print('Assistant:', out['response'])
print('Created request:', out['request'])
print('\n--- Request human operator flow ---')
msg2 = 'I want to talk to an operator tomorrow morning'
out2 = handle_message(msg2)
print('User:', msg2)
print('Assistant:', out2['response'])
|