-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialogue.jac
More file actions
30 lines (25 loc) · 984 Bytes
/
dialogue.jac
File metadata and controls
30 lines (25 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
node dialogue_root;
node dialogue_state {
has name;
has response;
}
edge intent_transition {
has intent;
}
#build the graph
graph dialogue_system {
has anchor dialogue_root;
spawn {
dialogue_root = spawn node::dialogue_root;
pricing_state = spawn node::dialogue_state(
name = "ec2_price_method",
response = "EC2 offers five pricing options: On-Demand, Savings Plans, Reserved Instances, Spot price, and Dedicated Hosts pricing. Other costs include egress data transfers, premium support, and block storage costs."
);
ebs_state = spawn node::dialogue_state(
name = "ebs_storage",
response = "An Amazon EBS volume is a durable, block-level storage device that you can attach to your instances."
);
dialogue_root +[intent_transition(intent="pricing categories")]+> pricing_state;
dialogue_root +[intent_transition(intent="ebs storage")]+> ebs_state;
}
}