3 for context
in contexts:
6 for parameter
in context.parameters:
7 param_list.append(
"{}: {}".format(
8 parameter, context.parameters[parameter]))
9 temp_str +=
"Name: {}\n\tParameters:\n\t {}".format(
10 context.name.split(
'/')[-1],
"\n\t".join(param_list))
11 result.append(temp_str)
12 result =
"\n".join(result)
19 for parameter
in parameters:
20 param_list.append(
"{}: {}\n\t".format(
21 parameter, parameters[parameter]))
22 temp_str +=
"{}".format(
"\n\t".join(param_list))
27 output =
"DF_CLIENT: Results:\n" \
29 "Detected intent: {} (Confidence: {})\n" \
31 "Fulfillment text: {}\n" \
33 "Parameters: {}".format(
35 result.intent.display_name,
36 result.intent_detection_confidence,
38 result.fulfillment_text,
def print_parameters(parameters)
def print_context_parameters(contexts)