Skip to content

4.0.0

Compare
Choose a tag to compare
@YuukanOO YuukanOO released this 14 Mar 13:12
· 82 commits to master since this release

Major release since there are breaking changes on how SlotValue are represented.

  • ✨ Added pytlas.testing namespace containing some utilities to easily unit test your skills, see the documentation for more informations
  • 💥 SlotValue value now not always returns a str. The value property will now contains a more meaningful python representation of the slot (dateutil.relativedelta for durations, pytlas.interpreters.slot.UnitValue for AmountOfMoney and Temperature, float between 0 and 1 for percentages, datetime.datetime for InstantTime, tuple of datetime.datetime for date range and str for anything else). This make the developer stuff easier when retrieving slot with request.intent.slot('my_slot').first().value
  • ♻️ SkillData is now called Meta