tock / ai.tock.bot.definition / ParameterKey

ParameterKey

interface ParameterKey (source)

A parameter key - the implementation is usually an enum.

Properties

key

The key of the parameter.

open val key: String

name

Overridden by enum implementation.

abstract val name: String

Functions

get

Create a Parameters with this as key and the value.toString() value.

open operator fun get(value: Any): Parameters

invoke

Create a Parameters with this as key and the value json serialized string.

open operator fun invoke(value: Any): Parameters