Skip to content

Commit e71b73e

Browse files
committed
refactor doctors in training and single-agent
1 parent f1376a5 commit e71b73e

11 files changed

+155
-43
lines changed

projects/doctors-in-training/notebooks/gmc/Part 3.1 - Initialising the GMC Agent.ipynb

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,18 @@
5454
"import asyncio\n",
5555
"from aries_basic_controller.aries_controller import AriesAgentController\n",
5656
" \n",
57-
"WEBHOOK_HOST = \"0.0.0.0\"\n",
58-
"WEBHOOK_BASE = \"\"\n",
5957
"\n",
60-
"WEBHOOK_PORT = 8032\n",
6158
"ADMIN_URL = \"http://gmc-agent:8031\"\n",
6259
"\n",
6360
"# Based on the aca-py agent you wish to control\n",
64-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
65-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
61+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
62+
"\n",
63+
"WEBHOOK_HOST = \"0.0.0.0\"\n",
64+
"WEBHOOK_BASE = \"\"\n",
65+
"\n",
66+
"WEBHOOK_PORT = 8032\n",
67+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
68+
" webhook_base=WEBHOOK_BASE)\n"
6669
]
6770
},
6871
{
@@ -354,8 +357,17 @@
354357
"nbconvert_exporter": "python",
355358
"pygments_lexer": "ipython3",
356359
"version": "3.7.6"
360+
},
361+
"pycharm": {
362+
"stem_cell": {
363+
"cell_type": "raw",
364+
"source": [],
365+
"metadata": {
366+
"collapsed": false
367+
}
368+
}
357369
}
358370
},
359371
"nbformat": 4,
360372
"nbformat_minor": 4
361-
}
373+
}

projects/doctors-in-training/notebooks/gmc/Part 3.2 - Issue GMC Credential .ipynb

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@
3333
"\n",
3434
"from aries_basic_controller.aries_controller import AriesAgentController\n",
3535
" \n",
36-
"WEBHOOK_HOST = \"0.0.0.0\"\n",
37-
"WEBHOOK_PORT = 8032\n",
38-
"WEBHOOK_BASE = \"\"\n",
3936
"ADMIN_URL = \"http://gmc-agent:8031\"\n",
4037
"\n",
4138
"# Based on the aca-py agent you wish to control\n",
42-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
43-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)\n",
39+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
40+
"\n",
41+
"WEBHOOK_HOST = \"0.0.0.0\"\n",
42+
"WEBHOOK_BASE = \"\"\n",
43+
"\n",
44+
"WEBHOOK_PORT = 8032\n",
45+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
46+
" webhook_base=WEBHOOK_BASE)\n",
4447
" "
4548
]
4649
},
@@ -657,8 +660,17 @@
657660
"nbconvert_exporter": "python",
658661
"pygments_lexer": "ipython3",
659662
"version": "3.7.6"
663+
},
664+
"pycharm": {
665+
"stem_cell": {
666+
"cell_type": "raw",
667+
"source": [],
668+
"metadata": {
669+
"collapsed": false
670+
}
671+
}
660672
}
661673
},
662674
"nbformat": 4,
663675
"nbformat_minor": 1
664-
}
676+
}

projects/doctors-in-training/notebooks/hee/Part 4.1 - Initialising the HEE Agent.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
"ADMIN_URL = \"http://hee-agent:8041\"\n",
4242
"\n",
4343
"# Based on the aca-py agent you wish to control\n",
44-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
45-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
44+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
45+
"\n",
46+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
47+
" webhook_base=WEBHOOK_BASE)\n"
4648
]
4749
},
4850
{
@@ -324,8 +326,17 @@
324326
"nbconvert_exporter": "python",
325327
"pygments_lexer": "ipython3",
326328
"version": "3.7.6"
329+
},
330+
"pycharm": {
331+
"stem_cell": {
332+
"cell_type": "raw",
333+
"source": [],
334+
"metadata": {
335+
"collapsed": false
336+
}
337+
}
327338
}
328339
},
329340
"nbformat": 4,
330341
"nbformat_minor": 4
331-
}
342+
}

projects/doctors-in-training/notebooks/hee/Part 4.2 - Interact with Doctor in Training.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
"ADMIN_URL = \"http://hee-agent:8041\"\n",
4242
"\n",
4343
"# Based on the aca-py agent you wish to control\n",
44-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
45-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)\n",
44+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
45+
"\n",
46+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
47+
" webhook_base=WEBHOOK_BASE)\n",
4648
" "
4749
]
4850
},
@@ -683,8 +685,17 @@
683685
"nbconvert_exporter": "python",
684686
"pygments_lexer": "ipython3",
685687
"version": "3.7.6"
688+
},
689+
"pycharm": {
690+
"stem_cell": {
691+
"cell_type": "raw",
692+
"source": [],
693+
"metadata": {
694+
"collapsed": false
695+
}
696+
}
686697
}
687698
},
688699
"nbformat": 4,
689700
"nbformat_minor": 1
690-
}
701+
}

projects/doctors-in-training/notebooks/id-verifier/Part 1.2 - Initialising the ID Verification Agent.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"ADMIN_URL = \"http://id-verifier-agent:8051\"\n",
5555
"\n",
5656
"# Based on the aca-py agent you wish to control\n",
57-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
58-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
57+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)"
5958
]
6059
},
6160
{
@@ -343,8 +342,17 @@
343342
"nbconvert_exporter": "python",
344343
"pygments_lexer": "ipython3",
345344
"version": "3.7.6"
345+
},
346+
"pycharm": {
347+
"stem_cell": {
348+
"cell_type": "raw",
349+
"source": [],
350+
"metadata": {
351+
"collapsed": false
352+
}
353+
}
346354
}
347355
},
348356
"nbformat": 4,
349357
"nbformat_minor": 4
350-
}
358+
}

projects/doctors-in-training/notebooks/id-verifier/Part 1.3 - Issue Passport Details Credential.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
"ADMIN_URL = \"http://id-verifier-agent:8051\"\n",
3838
"\n",
3939
"# Based on the aca-py agent you wish to control\n",
40-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
41-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)\n",
40+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
41+
"\n",
42+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
43+
" webhook_base=WEBHOOK_BASE)\n",
4244
" "
4345
]
4446
},
@@ -349,8 +351,17 @@
349351
"nbconvert_exporter": "python",
350352
"pygments_lexer": "ipython3",
351353
"version": "3.7.6"
354+
},
355+
"pycharm": {
356+
"stem_cell": {
357+
"cell_type": "raw",
358+
"source": [],
359+
"metadata": {
360+
"collapsed": false
361+
}
362+
}
352363
}
353364
},
354365
"nbformat": 4,
355366
"nbformat_minor": 1
356-
}
367+
}

projects/doctors-in-training/notebooks/lead-employer/Part 5.1 - Initialising the Lead Employer Agent.ipynb

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@
3535
"import asyncio\n",
3636
"from aries_basic_controller.aries_controller import AriesAgentController\n",
3737
" \n",
38-
"WEBHOOK_HOST = \"0.0.0.0\"\n",
39-
"WEBHOOK_BASE = \"\"\n",
40-
"\n",
41-
"WEBHOOK_PORT = 8062\n",
4238
"ADMIN_URL = \"http://lead-employer-agent:8061\"\n",
4339
"\n",
40+
"\n",
41+
"\n",
4442
"# Based on the aca-py agent you wish to control\n",
45-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
46-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
43+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)"
4744
]
4845
},
4946
{
@@ -341,8 +338,17 @@
341338
"nbconvert_exporter": "python",
342339
"pygments_lexer": "ipython3",
343340
"version": "3.7.6"
341+
},
342+
"pycharm": {
343+
"stem_cell": {
344+
"cell_type": "raw",
345+
"source": [],
346+
"metadata": {
347+
"collapsed": false
348+
}
349+
}
344350
}
345351
},
346352
"nbformat": 4,
347353
"nbformat_minor": 4
348-
}
354+
}

projects/doctors-in-training/notebooks/lead-employer/Part 5.2 - Onboard a Doctor in Training.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
"ADMIN_URL = \"http://lead-employer-agent:8061\"\n",
4444
"\n",
4545
"# Based on the aca-py agent you wish to control\n",
46-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
47-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)\n",
46+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
47+
"\n",
48+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
49+
" webhook_base=WEBHOOK_BASE)\n",
4850
" "
4951
]
5052
},
@@ -766,8 +768,17 @@
766768
"nbconvert_exporter": "python",
767769
"pygments_lexer": "ipython3",
768770
"version": "3.7.6"
771+
},
772+
"pycharm": {
773+
"stem_cell": {
774+
"cell_type": "raw",
775+
"source": [],
776+
"metadata": {
777+
"collapsed": false
778+
}
779+
}
769780
}
770781
},
771782
"nbformat": 4,
772783
"nbformat_minor": 1
773-
}
784+
}

projects/doctors-in-training/notebooks/medical-school/Part 2.1 - Initialising the Medical School Agent.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
"ADMIN_URL = \"http://medical-school-agent:8021\"\n",
5858
"\n",
5959
"# Based on the aca-py agent you wish to control\n",
60-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
61-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
60+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)"
6261
]
6362
},
6463
{
@@ -345,8 +344,17 @@
345344
"nbconvert_exporter": "python",
346345
"pygments_lexer": "ipython3",
347346
"version": "3.7.6"
347+
},
348+
"pycharm": {
349+
"stem_cell": {
350+
"cell_type": "raw",
351+
"source": [],
352+
"metadata": {
353+
"collapsed": false
354+
}
355+
}
348356
}
349357
},
350358
"nbformat": 4,
351359
"nbformat_minor": 4
352-
}
360+
}

projects/doctors-in-training/notebooks/medical-school/Part 2.2 - Issue Medical Qualification.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@
3838
"ADMIN_URL = \"http://medical-school-agent:8021\"\n",
3939
"\n",
4040
"# Based on the aca-py agent you wish to control\n",
41-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
42-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)\n",
41+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
42+
"\n",
43+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
44+
" webhook_base=WEBHOOK_BASE)\n",
4345
" "
4446
]
4547
},
@@ -477,8 +479,17 @@
477479
"nbconvert_exporter": "python",
478480
"pygments_lexer": "ipython3",
479481
"version": "3.7.6"
482+
},
483+
"pycharm": {
484+
"stem_cell": {
485+
"cell_type": "raw",
486+
"source": [],
487+
"metadata": {
488+
"collapsed": false
489+
}
490+
}
480491
}
481492
},
482493
"nbformat": 4,
483494
"nbformat_minor": 1
484-
}
495+
}

0 commit comments

Comments
 (0)