ask_sdk_model.slu.entityresolution package

Submodules

Note

Canonical imports have been added in the __init__.py of the package. This helps in importing the class directly from the package, than through the module.

For eg: if package a has module b with class C, you can do from a import C instead of from a.b import C.

ask_sdk_model.slu.entityresolution.resolution module

class ask_sdk_model.slu.entityresolution.resolution.Resolution(authority=None, status=None, values=None)

Bases: object

Represents a possible authority for entity resolution

Parameters:
attribute_map = {'authority': 'authority', 'status': 'status', 'values': 'values'}
deserialized_types = {'authority': 'str', 'status': 'ask_sdk_model.slu.entityresolution.status.Status', 'values': 'list[ask_sdk_model.slu.entityresolution.value_wrapper.ValueWrapper]'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_sdk_model.slu.entityresolution.resolutions module

class ask_sdk_model.slu.entityresolution.resolutions.Resolutions(resolutions_per_authority=None)

Bases: object

Represents the results of resolving the words captured from the user's utterance. This is included for slots that use a custom slot type or a built-in slot type that you have extended with your own values. Note that resolutions is not included for built-in slot types that you have not extended.

Parameters:resolutions_per_authority ((optional) list[ask_sdk_model.slu.entityresolution.resolution.Resolution]) –
attribute_map = {'resolutions_per_authority': 'resolutionsPerAuthority'}
deserialized_types = {'resolutions_per_authority': 'list[ask_sdk_model.slu.entityresolution.resolution.Resolution]'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_sdk_model.slu.entityresolution.status module

class ask_sdk_model.slu.entityresolution.status.Status(code=None)

Bases: object

Parameters:code ((optional) ask_sdk_model.slu.entityresolution.status_code.StatusCode) – Indication of the results of attempting to resolve the user utterance against the defined slot types.
attribute_map = {'code': 'code'}
deserialized_types = {'code': 'ask_sdk_model.slu.entityresolution.status_code.StatusCode'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_sdk_model.slu.entityresolution.status_code module

class ask_sdk_model.slu.entityresolution.status_code.StatusCode

Bases: enum.Enum

Indication of the results of attempting to resolve the user utterance against the defined slot types.

Allowed enum values: [ER_SUCCESS_MATCH, ER_SUCCESS_NO_MATCH, ER_ERROR_TIMEOUT, ER_ERROR_EXCEPTION]

ER_ERROR_EXCEPTION = 'ER_ERROR_EXCEPTION'
ER_ERROR_TIMEOUT = 'ER_ERROR_TIMEOUT'
ER_SUCCESS_MATCH = 'ER_SUCCESS_MATCH'
ER_SUCCESS_NO_MATCH = 'ER_SUCCESS_NO_MATCH'
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_sdk_model.slu.entityresolution.value module

class ask_sdk_model.slu.entityresolution.value.Value(name=None, id=None)

Bases: object

Represents the resolved value for the slot, based on the user’s utterance and slot type definition.

Parameters:
  • name ((optional) str) – The name for the resolution value.
  • id ((optional) str) – The id for the resolution value.
attribute_map = {'id': 'id', 'name': 'name'}
deserialized_types = {'id': 'str', 'name': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_sdk_model.slu.entityresolution.value_wrapper module

class ask_sdk_model.slu.entityresolution.value_wrapper.ValueWrapper(value=None)

Bases: object

A wrapper class for an entity resolution value used for JSON serialization.

Parameters:value ((optional) ask_sdk_model.slu.entityresolution.value.Value) –
attribute_map = {'value': 'value'}
deserialized_types = {'value': 'ask_sdk_model.slu.entityresolution.value.Value'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model