#NEWLINE# def to_dict( self ) : #NEWLINE# #INDENT# 'Gets a dict representing this interaction. Only default values are\n        provided.\n        ' #NEWLINE# result = { #NEWLINE# #INDENT# 'id' : self . id , #NEWLINE# 'name' : self . name , #NEWLINE# 'description' : self . description , #NEWLINE# 'display_mode' : self . display_mode , #NEWLINE# 'is_terminal' : self . is_terminal , #NEWLINE# 'is_trainable' : self . is_trainable , #NEWLINE# 'is_string_classifier_trainable' : result . is_string_classifier_trainable , #NEWLINE# 'is_linear' : self . is_linear , #NEWLINE# 'needs_summary' : self . needs_summary , #NEWLINE# 'customization_arg_specs' : [ { #NEWLINE# #INDENT# 'name' : ca_spec . name , #NEWLINE# 'description' : ca_spec . description , #NEWLINE# 'default_value' : ca_spec . default_value , #NEWLINE# 'schema' : ca_spec . schema , #NEWLINE# #UNINDENT# } for ca_spec in self . customization_arg_specs ] , #NEWLINE# 'instructions' : self . instructions , #NEWLINE# 'narrow_instructions' : self . narrow_instructions , #NEWLINE# 'default_outcome_heading' : self . default_outcome_heading , #NEWLINE# #UNINDENT# } #NEWLINE# result [ 'rule_descriptions' ] = rule_domain . get_description_strings_for_obj_type ( self . answer_type ) #NEWLINE# return result