# Rasa core sdk tracker.latest\_message.entities

**URL:** <https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373>\
**Category:** Rasa Open Source\
**Created:** [November 1, 2018, 10:52pm UTC](https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373 "2018-11-01T22:52:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neel17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/neel17/32/298_2.png) [@neel17](https://forum.rasa.com/u/neel17)\
**Post date:** [November 1, 2018, 10:52pm UTC](https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373/1 "2018-11-01T22:52:07Z")

</div>

Hi,

I am trying to get the duckling whole output but while retriving the entity in custom file it is only giving me entity value as a consequence of which I am not able to find other relevant information earlier I was getting the values using this code

```auto
next((e for e in tracker.latest_message.entities if
                                 e['entity'] == 'time'), None)

```

Now I am forced to use

```auto

next(tracker.get_latest_entity_values('time'), None)

```

as a result of which I am loosing all the other important information of the duckling.

Kindly help me how can I handle this situation. The above code is not working with the latest rasa version

Any help would be really appreciated.

Thanks,

Neel

---

<div class="post-metadata">

**Author:** ![neel17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/neel17/32/298_2.png) [@neel17](https://forum.rasa.com/u/neel17)\
**Post date:** [November 1, 2018, 10:52pm UTC](https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373/2 "2018-11-01T22:52:29Z")

</div>

@akelad Kindly help

---

<div class="post-metadata">

**Author:** ![neel17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/neel17/32/298_2.png) [@neel17](https://forum.rasa.com/u/neel17)\
**Post date:** [November 2, 2018, 5:37am UTC](https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373/3 "2018-11-02T05:37:01Z")

</div>

@souvikg10 Kindly help

---

<div class="post-metadata">

**Author:** ![neel17](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/neel17/32/298_2.png) [@neel17](https://forum.rasa.com/u/neel17)\
**Post date:** [November 2, 2018, 9:15am UTC](https://forum.rasa.com/t/rasa-core-sdk-tracker-latest-message-entities/2373/4 "2018-11-02T09:15:40Z")

</div>

I got the issue resolved!

```auto

next((e for e in tracker.latest_message.entities if
                                 e['entity'] == 'time'), None)

```

instead of this I need to change it to

```auto
next((e for e in tracker.latest_message["entities"] if
                                e['entity'] == 'time'), None)

```

this would give me a list of dictionary and I am iterating in the dictionary to find the relevant entity.

I got the help from the github [https://github.com/RasaHQ/rasa\_core/issues/889](https://github.com/RasaHQ/rasa_core/issues/889)

Thanks,

Neel
