Skip to content
Snippets Groups Projects
Select Git revision
  • a877a089421077a47138427c0950f735d6f9ce8a
  • main default protected
2 results

README

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    README 1.12 KiB
    How to set up a convlab-2 server.
    
    ## 1 Implement your own dialogue agent like agent.py.
    
    ## 2 Create your new config or edit your agent path in dialogueServer.cfg.
    
    ## 3 Deploy your server
        python DialogueServer.py --config dialogueServer_rule.cfg
    
    Depending on your setting, logs are printed to console or stored in ./DialogueServer_LOG/
    
    ## 4 to test the server, you can send request using curl or Postman
    
    With Postman
    1) Create Request
    2) In the create request dialogue box, 
        
    a. to start the session
        POST <external_ip>:<port>/init
        body {"sessionID": <some digits>, "userID": "userID", "text":""}
        You will see the dialogue response on the Response box
    
    b. to continue the dialogue
        POST <external_ip>:<port>/next
        body {"sessionID": <some digits>, "userID": "userID", "text":"Hello can you help me find ... "}
       
    c. to end the dialogue
        POST <external_ip>:<port>/next
        body {"sessionID": <some digits>, "userID": "userID", "text":"bye."}
       
    etc.
    
    ## 5 to connect to dialcrowd, use the dialcrowd GUI
    
    1) Add system using the external IP and port number
    
    2) Create task, add the above system into the task