NCModelConfig

Model configuration container.

See also:
Companion:
object
Source:
NCModelConfig.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

Gets unique, immutable, global model ID.

Gets unique, immutable, global model ID.

Source:
NCModelConfig.scala

Gets readable model name. Note that unlike model ID the model name can be changed.

Gets readable model name. Note that unlike model ID the model name can be changed.

Source:
NCModelConfig.scala

Gets model version.

Gets model version.

Source:
NCModelConfig.scala

Concrete methods

Gets maximum depth of the conversation (i.e. number of subsequent individual user requests) after which the older requests will be "forgotten" and removed from the conversation context.

Gets maximum depth of the conversation (i.e. number of subsequent individual user requests) after which the older requests will be "forgotten" and removed from the conversation context.

Source:
NCModelConfig.scala

Gets timeout in millis after which the current conversation for a given user will be "forgotten" and its context removed from the STM.

Gets timeout in millis after which the current conversation for a given user will be "forgotten" and its context removed from the STM.

Source:
NCModelConfig.scala

Gets optional model description. Default value is None.

Gets optional model description. Default value is None.

Source:
NCModelConfig.scala

Gets optional model origin. Default value is None.

Gets optional model origin. Default value is None.

Source:
NCModelConfig.scala

Inherited methods

def apply[T](key: String): T

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Value parameters:
key

The key whose associated value is to be returned.

Returns:

The value to which the specified key is mapped, or null if this map contains no mapping for the key.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def clear(): Unit

Removes all of the mappings from this map. The map will be empty after this call returns.

Removes all of the mappings from this map. The map will be empty after this call returns.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala

Returns true if this map contains a mapping for the specified key.

Returns true if this map contains a mapping for the specified key.

Returns:

true if this map contains a mapping for the specified key.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def get[T](key: String): Option[T]

Returns the value to which the specified key is mapped.

Returns the value to which the specified key is mapped.

Value parameters:
key

The key whose associated value is to be returned.

Returns:

The value to which the specified key is mapped as an optional.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala

Returns a set view of the keys contained in this map.

Returns a set view of the keys contained in this map.

Returns:

A set view of the keys contained in this map.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def put[T](key: String, obj: Any): T

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.

Value parameters:
key

Key with which the specified value is to be associated.

obj

Value to be associated with the specified key.

Returns:

The previous value associated with key, or null if there was no mapping for key.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def putIfAbsent[T](key: String, obj: T): T

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

Value parameters:
key

Key with which the specified value is to be associate

obj

Value to be associated with the specified key

Returns:

The previous value associated with the specified key, or null if there was no mapping for the key.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def remove(key: String, obj: Any): Boolean

Removes the entry for the specified key only if it is currently mapped to the specified value.

Removes the entry for the specified key only if it is currently mapped to the specified value.

Value parameters:
key

Key with which the specified value is associated value.

obj

Value expected to be associated with the specified key.

Returns:

true if the value was removed.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala
def remove[T](key: String): T

Removes the mapping for a key from this map if it is present.

Removes the mapping for a key from this map if it is present.

Value parameters:
key

Key whose mapping is to be removed from the map.

Returns:

The previous value associated with key, or null if there was no mapping for key.

Inherited from:
NCPropertyMap
Source:
NCPropertyMap.scala