Running

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

This state provides access to the root context of the agent via the rootContext property, allowing interaction with the overall execution environment, configuration, and state management facilities.

The rootContext is marked with the @InternalAgentsApi annotation, meaning its usage is intended for internal agent-related implementations and may not maintain backwards compatibility.

Constructors

Link copied to clipboard
constructor(rootContext: AIAgentContext)

Properties

Link copied to clipboard

Provides access to the root context of the agent, facilitating operations such as state management, feature retrieval, and context-based workflows. This allows the agent to perform actions and manage its execution lifecycle within the given context.

Functions

Link copied to clipboard
open override fun copy(): AIAgent.Companion.State<Output>

Creates and returns a copy of the current state object.