# LoopAgentState

data class LoopAgentState(val currentSubAgent: String, val timesLooped: Int) : AgentState

Persistent state of a LoopAgent.

## Constructors

LoopAgentState
Link copied to clipboard
constructor(currentSubAgent: String, timesLooped: Int)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

currentSubAgent
Link copied to clipboard
val currentSubAgent: String

Name of the current or next sub-agent.

timesLooped
Link copied to clipboard
val timesLooped: Int

Number of completed loop iterations.

## Functions

toStateValue
Link copied to clipboard
open override fun toStateValue(): TypedData.MapValue

Converts the state into an TypedData.MapValue.