# TypedData

sealed class TypedData

A type-safe hierarchy for agent state variables, ensuring primitives don't collapse.

#### Inheritors

NullValue
IntValue
LongValue
StringValue
BooleanValue
DoubleValue
ListValue
MapValue

## Types

BooleanValue
Link copied to clipboard
data class BooleanValue(val value: Boolean) : TypedData

Represents a boolean value in the agent state.

DoubleValue
Link copied to clipboard
data class DoubleValue(val value: Double) : TypedData

Represents a double value in the agent state.

IntValue
Link copied to clipboard
data class IntValue(val value: Int) : TypedData

Represents an integer value in the agent state.

ListValue
Link copied to clipboard
data class ListValue(val elements: List<TypedData>) : TypedData

Represents a list of state values.

LongValue
Link copied to clipboard
data class LongValue(val value: Long) : TypedData

Represents a long value in the agent state.

MapValue
Link copied to clipboard
data class MapValue(val fields: Map<String, TypedData>) : TypedData

Represents a map of state values.

NullValue
Link copied to clipboard
data object NullValue : TypedData

Represents a null value in the agent state.

StringValue
Link copied to clipboard
data class StringValue(val value: String) : TypedData

Represents a string value in the agent state.