Class AgentState

Object
akka.javasdk.agent.autonomous.AgentState

@DoNotInherit public final class AgentState extends Object
Summary of an autonomous agent's current state.

Not for user extension or instantiation, returned by the SDK component client.

  • Constructor Details

  • Method Details

    • phase

      public String phase()
      The current phase of the agent (e.g. "idle", "running", "stopped").
    • suspended

      public boolean suspended()
      Whether the agent is currently suspended.
    • instructions

      public String instructions()
      The agent's current instructions.
    • totalTokenUsage

      public AutonomousAgent.TokenUsage totalTokenUsage()
      Total token usage for this agent instance.
    • currentTask

      public Optional<TaskKey> currentTask()
      The task currently being worked on, if any.
    • pendingTaskIds

      public List<String> pendingTaskIds()
      The ids of tasks that are pending (queued but not yet started).