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: State.NotStarted, State.Running, State.Finished, or State.Failed.

Return

The current state of the AI agent.