Package akka.javasdk.agent.autonomous
Class AgentState
Object
akka.javasdk.agent.autonomous.AgentState
Summary of an autonomous agent's current state.
Not for user extension or instantiation, returned by the SDK component client.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentState(String phase, boolean suspended, String instructions, AutonomousAgent.TokenUsage totalTokenUsage, Optional<TaskKey> currentTask, List<String> pendingTaskIds) -
Method Summary
Modifier and TypeMethodDescriptionThe task currently being worked on, if any.The agent's current instructions.The ids of tasks that are pending (queued but not yet started).phase()The current phase of the agent (e.g.booleanWhether the agent is currently suspended.Total token usage for this agent instance.
-
Constructor Details
-
AgentState
-
-
Method Details
-
phase
The current phase of the agent (e.g. "idle", "running", "stopped"). -
suspended
public boolean suspended()Whether the agent is currently suspended. -
instructions
The agent's current instructions. -
totalTokenUsage
Total token usage for this agent instance. -
currentTask
The task currently being worked on, if any. -
pendingTaskIds
The ids of tasks that are pending (queued but not yet started).
-