Package akka.javasdk.agent.task
package akka.javasdk.agent.task
Typed, durable tasks for autonomous agents:
Task and TaskTemplate definitions, the TaskEntity
that records each task's lifecycle, TaskRule result validation,
and the events and notifications the entity publishes.-
ClassDescriptionTask<R>A typed task definition — describes a kind of work and the expected result type.A serializable reference to content attached to a task.A task definition declares what kind of work an agent can do — a description of the task and the expected result type.The built-in Event Sourced Entity that stores each task's state and lifecycle history.Command to create a task, capturing the fields of the
Taskit was created from.Command to reassign an in-progress task, with context for the new assignee.Command to reject a completion result, naming theTaskRulethat rejected it.Events persisted byTaskEntity, one per lifecycle transition.The task was assigned to an owner.The task was cancelled before execution began.The task completed with a serialized result.The task was created and isPENDING.The task failed during execution.The task was reassigned to a new owner, with context for the handover.ATaskRulerejected the completion result.Work on the task started.Base exception for task terminal states.Thrown when a task reaches theTaskStatus.CANCELLEDstate.Thrown when a task reaches theTaskStatus.FAILEDstate.Thrown when a task result is rejected by a validation rule.Thrown when a task result is retrieved with a mismatched task definition.A reference to a task, holding its ID and name.Notifications published by task entities when they reach a terminal state.TaskRule<R>A rule that validates the result of a task before accepting its completion.TaskSnapshot<R>A point-in-time snapshot of a task's state, with a typed result.State of a task entity.The lifecycle status of aTask.TaskTemplate<R>A task definition with a parameterized instruction template.