tock / ai.tock.bot.api.model.context / Entity

Entity

data class Entity (source)

Constructors

<init>

Entity(type: String, role: String, content: String?, value: Value? = null, evaluated: Boolean = false, subEntities: List<Entity> = emptyList(), new: Boolean)

Properties

content

Text content if any.

var content: String?

evaluated

Is the value has been evaluated?

val evaluated: Boolean

new

Is it a entity evaluated now?

val new: Boolean

role

Role of the entity.

val role: String

subEntities

Sub entity values if any.

val subEntities: List<Entity>

type

Type of the entity.

val type: String

value

Value if any.

var value: Value?