This repository has been archived by the owner on May 30, 2023. It is now read-only.
Releases: line/clova-cek-sdk-java
Releases · line/clova-cek-sdk-java
Release v1.2.0
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
Features
- Resolve handler arguments using
CEKRequestHandlerArgumentResolver
Anyone can add customCEKRequestHandlerArgumentResolver
s. - 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
- Handlers can get a slot with the following types:
- Add
CEKHandleCondition
This feature is inspired byRequestCondition
Spring MVC provides.
SDK providesExtensionIdCondition
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 iscek.message.response
. The name of the logger for the request body has also been changed tocek.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