Fig 3.6.1 Router utility setup of "Pizza Bot".
+```json
+{
+ "id": "8970b1e5-d260-4e2c-90b1-f1415a257c18",
+ "name": "Pizza Bot",
+ "description": "AI assistant that can help customer place pizza order.",
+ "type": "routing",
+ "inheritAgentId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a",
+ "createdDateTime": "2023-08-18T10:39:32.2349685Z",
+ "updatedDateTime": "2023-08-18T14:39:32.2349686Z",
+ "iconUrl": "https://cdn-icons-png.flaticon.com/512/6978/6978255.png",
+ "disabled": false,
+ "isPublic": true,
+ "profiles": [ "pizza" ],
+ "utilities": [
+ {
+ "name": "http_handler",
+ "functions": [
+ { "name": "handle_http_request" }
+ ],
+ "templates": [
+ { "name": "handle_http_request.fn" }
+ ]
+ }
+ ],
+ "routingRules": [
+ {
+ "type": "reasoner",
+ "field": "NaiveReasoner"
+ }
+ ]
+}
+```
+
-
-
Fig 3.6.2 Utility inheritance of "Order Inquery" agent.
-
(left: agent file, right: agent detail ui)
+```json
+{
+ "name": "Order Inquiry",
+ "description": "Check the order status like payment, delivery or baking.",
+ "createdDateTime": "2023-08-18T14:39:32.2349685Z",
+ "updatedDateTime": "2023-08-18T14:39:32.2349686Z",
+ "id": "b284db86-e9c2-4c25-a59e-4649797dd130",
+ "disabled": false,
+ "isPublic": true,
+ "mergeUtility": true,
+ "profiles": [ "pizza" ]
+}
+```
+
+
+
+
@@ -381,11 +419,10 @@ public class HttpHandlerPlugin : IBotSharpPlugin
}
```
-[Fig 4.1.2](#register-assembly) shows the utility assembly registration in “appsettings.json”. It is important to note that we are required to add the project reference to the Startup project, e.g., WebStarter. Moreover, we are required to add any new custom agent utility in the “Plugin” folder instead of the “BotSharp” folder.
+[Fig 4.1.2](#register-assembly) demonstrates the utility assembly registration in “appsettings.json”. It is important to note that we are required to add the project reference to the Startup project, e.g., WebStarter. Moreover, we are required to add any new custom agent utility in the “Plugin” folder instead of the “BotSharp” folder.

-
Fig 4.1.2 Register assembly.
@@ -395,7 +432,6 @@ In this section, we demonstrate an http utility. After we set up and integrate t

-
Fig 5.1.1 Add http utility in Chatbot.
@@ -403,7 +439,6 @@ Once we add the utility, we can initialize a conversation by clicking the bot ic

-
Fig 5.1.2 Chat window with Chatbot and http utility.
@@ -411,7 +446,6 @@ Here we use dummy rest APIs (source: https://dummy.restapiexample.com/) for the

-
Fig 5.1.3 Send dummy http requests.