类 TaskAndHistory.Builder

java.lang.Object
io.github.a2ap.core.model.TaskAndHistory.Builder
封闭类:
TaskAndHistory

public static class TaskAndHistory.Builder extends Object
Builder class for TaskAndHistory.
  • 方法详细资料

    • task

      public TaskAndHistory.Builder task(Task task)
      Sets the task.
      参数:
      task - the task
      返回:
      this builder for chaining
    • history

      public TaskAndHistory.Builder history(List<Message> history)
      Sets the message history.
      参数:
      history - the message history
      返回:
      this builder for chaining
    • build

      public TaskAndHistory build()
      Builds a new TaskAndHistory instance.
      返回:
      the built instance