Skip to content

Commit 3998f50

Browse files
committed
refactor opus
1 parent e71b73e commit 3998f50

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

projects/opus/demo/alice/Opus User Method 2.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@
3535
"WEBHOOK_BASE = \"\"\n",
3636
"ADMIN_URL = \"http://alice-agent:8021\"\n",
3737
"\n",
38-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
39-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL, connections=True)"
38+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL, connections=True)\n",
39+
"\n",
40+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
41+
" webhook_base=WEBHOOK_BASE)"
4042
]
4143
},
4244
{
@@ -255,8 +257,17 @@
255257
"nbconvert_exporter": "python",
256258
"pygments_lexer": "ipython3",
257259
"version": "3.7.6"
260+
},
261+
"pycharm": {
262+
"stem_cell": {
263+
"cell_type": "raw",
264+
"source": [],
265+
"metadata": {
266+
"collapsed": false
267+
}
268+
}
258269
}
259270
},
260271
"nbformat": 4,
261272
"nbformat_minor": 4
262-
}
273+
}

projects/opus/demo/opus/Opus Method 2.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
"ADMIN_URL = \"http://bob-agent:8051\"\n",
4545
"\n",
4646
"# Based on the aca-py agent you wish to control\n",
47-
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
48-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL)"
47+
"agent_controller = AriesAgentController(admin_url=ADMIN_URL)\n",
48+
"\n",
49+
"agent_controller.init_webhook_server(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
50+
" webhook_base=WEBHOOK_BASE)"
4951
]
5052
},
5153
{
@@ -424,8 +426,17 @@
424426
"nbconvert_exporter": "python",
425427
"pygments_lexer": "ipython3",
426428
"version": "3.7.6"
429+
},
430+
"pycharm": {
431+
"stem_cell": {
432+
"cell_type": "raw",
433+
"source": [],
434+
"metadata": {
435+
"collapsed": false
436+
}
437+
}
427438
}
428439
},
429440
"nbformat": 4,
430441
"nbformat_minor": 4
431-
}
442+
}

0 commit comments

Comments
 (0)