Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Releases: line/clova-cek-sdk-java

Release v1.2.0

24 Jun 04:36
5765908
Compare
Choose a tag to compare

Features

  • Supports Slot unit
"slots": {
    "temperature": {
        "name": "temperature",
        "value": "26.5",
        "unit": "°C"
    }
}
@IntentMapping("SlotValueUnit")
CEKResponse handleSlotValueUnit(SlotValueUnit<Double, Temperature.Unit> temperature) {
  System.out.println(temperature); // value: 26.5 unit: Unit.C
  return CEKResponse.empty();
}

see SlotUnitHandlerTest.java more details

Release v1.1.0

20 Dec 11:09
22361af
Compare
Choose a tag to compare

Features

  • Resolve handler arguments using CEKRequestHandlerArgumentResolver
    Anyone can add custom CEKRequestHandlerArgumentResolvers.
  • Change the way to handle the slot of type CLOVA.DATETIME
    • Handlers can get a slot with the following types:
      • String
      • Slot
      • SlotValueInterval
      • LocalTime
      • LocalDate
      • OffsetDateTime
      • Above as java.util.Optional
  • Add CEKHandleCondition
    This feature is inspired by RequestCondition Spring MVC provides.
    SDK provides ExtensionIdCondition as one of implementation.
  • Support wildcard Intent/Event name handling
    e.g. ) @IntentMapping("*")
    NOTE: Handlers for other names can't be added when using this.
  • Add a logger for the response body
    The logger name is cek.message.response. The name of the logger for the request body has also been changed to cek.message.reqeust.
  • When using CEKRequestGenerator it is no longer necessary to specify the json template's file path and settings for serialization

Bugfixes

  • Fix a bug that LoggingRequestResopnseInterceptor changes response character encoding