getState

suspend override fun getState(): AIAgent.Companion.State<Output>(source)

Retrieves the current state of the AI agent during its lifecycle.

This method provides the current State of the agent, which can be one of the defined states: NotStarted, Running, Finished, or Failed.

Return

The current state of the AI agent.