Interface TaskDefinition<R>

Type Parameters:
R - The result type produced when the task completes.
All Known Implementing Classes:
Task, TaskTemplate

public sealed interface TaskDefinition<R> permits Task<R>, TaskTemplate<R>
A task definition declares what kind of work an agent can do — a description of the task and the expected result type.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The description of this task — what kind of work it represents.
    The name of this task definition — a stable identifier for the task type.
    The expected result type.
    List<Class<? extends TaskRule<R>>>
    The validation rule classes for this task definition.
  • Method Details

    • name

      String name()
      The name of this task definition — a stable identifier for the task type.
    • description

      String description()
      The description of this task — what kind of work it represents.
    • resultType

      Class<R> resultType()
      The expected result type.
    • ruleClasses

      List<Class<? extends TaskRule<R>>> ruleClasses()
      The validation rule classes for this task definition.