Code Monkey home page Code Monkey logo

Comments (6)

timothyaaron avatar timothyaaron commented on June 6, 2024 1

You're quick. Thought for sure I'd beat you to this one, @nikhilym. :)

Definitely the JSON (didn't mean for that to sound negative).

from alexa-skills-kit-sdk-for-python.

nikhilym avatar nikhilym commented on June 6, 2024

Hey @cnpants , the entity resolution status code is not directly under the slots['slot_name']. It is under the resolutions attribute. Specifically under slots['slot_name'].resolutions.resolutions_per_authority[0].status.code. You can look at an example intent request in the developer docs here for the exact Request JSON structure.

Since the status code value is an enumeration, I would suggest you do a check with ask_sdk_model.slu.entityresolution.StatusCode.ER_SUCCESS_NO_MATCH.

The Pet Match sample also showcases on the dialog management and entity resolution usage. Have a look at that example too.

Let us know if this is what you are looking for!!

from alexa-skills-kit-sdk-for-python.

timothyaaron avatar timothyaaron commented on June 6, 2024

It's a lot more complicated than that, I'm afraid... in the Python SDK it's:

handler_input.request_envelope.request.intent.slots[slot_name].resolutions.resolutions_per_authority[0].status.code

from alexa-skills-kit-sdk-for-python.

nikhilym avatar nikhilym commented on June 6, 2024

It's a lot more complicated than that, I'm afraid... in the Python SDK it's:

handler_input.request_envelope.request.intent.slots[slot_name].resolutions.resolutions_per_authority[0].status.code

Thanks Timothy!! Just to be clear, the complication is from the Request JSON itself and not from the Python SDK 😄

from alexa-skills-kit-sdk-for-python.

nikkopante avatar nikkopante commented on June 6, 2024

Thanks for the suggestions. I'll reply as soon as I test them. 😀

from alexa-skills-kit-sdk-for-python.

nikkopante avatar nikkopante commented on June 6, 2024

Nice it works! Thanks!

from alexa-skills-kit-sdk-for-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.