State

sealed interface State<Output>(source)

Represents the state of an AI agent during its lifecycle.

This sealed interface provides different states to reflect whether the agent has not started, is currently running, has completed its task successfully with a result, or has failed with an exception.

Inheritors

Types

Link copied to clipboard

Represents a state indicating an operation has failed.

Link copied to clipboard

Represents the final state of a computation or process with its resulting output.

Link copied to clipboard

Represents a state that indicates an action or process has not yet started.

Link copied to clipboard

Represents the Running state of an AI agent, indicating that the agent is actively executing its tasks.

Link copied to clipboard

Represents the starting state of an operation or process.

Functions

Link copied to clipboard

Creates and returns a copy of the current state object.