类 InMemoryTaskManager

java.lang.Object
io.github.a2ap.core.server.impl.InMemoryTaskManager
所有已实现的接口:
TaskManager

public class InMemoryTaskManager extends Object implements TaskManager
In-memory implementation of the TaskManager interface. This implementation stores all tasks in memory and is suitable for testing and demonstration purposes.
  • 构造器详细资料

    • InMemoryTaskManager

      public InMemoryTaskManager(TaskStore taskStore)
  • 方法详细资料

    • loadOrCreateContext

      public RequestContext loadOrCreateContext(MessageSendParams params)
      从接口复制的说明: TaskManager
      Load or create a new task.
      指定者:
      loadOrCreateContext 在接口中 TaskManager
      参数:
      params - The task param to create
      返回:
      The created task with a generated ID
    • getTask

      public Task getTask(String taskId)
      从接口复制的说明: TaskManager
      Gets a task by its ID.
      指定者:
      getTask 在接口中 TaskManager
      参数:
      taskId - The ID of the task
      返回:
      The task with the specified ID, or null if not found
    • applyTaskUpdate

      public reactor.core.publisher.Mono<Task> applyTaskUpdate(Task task, List<TaskUpdate> taskUpdates)
      从接口复制的说明: TaskManager
      apply take update for task
      指定者:
      applyTaskUpdate 在接口中 TaskManager
      参数:
      task - TaskContext
      taskUpdates - taskUpdate TaskStatus or Artifact update
      返回:
      mono of task
    • applyTaskUpdate

      public reactor.core.publisher.Mono<Task> applyTaskUpdate(Task task, TaskUpdate update)
      从接口复制的说明: TaskManager
      apply task update for task
      指定者:
      applyTaskUpdate 在接口中 TaskManager
      参数:
      task - TaskContext
      update - tash update TaskStatus or Artifact update
      返回:
      mono of task
    • applyStatusUpdate

      public reactor.core.publisher.Mono<Task> applyStatusUpdate(Task task, TaskStatusUpdateEvent event)
      从接口复制的说明: TaskManager
      Apply status update with append support from TaskStatusUpdateEvent
      指定者:
      applyStatusUpdate 在接口中 TaskManager
      参数:
      task - The task to update
      event - The TaskStatusUpdateEvent containing status information
      返回:
      Updated task
    • applyArtifactUpdate

      public reactor.core.publisher.Mono<Task> applyArtifactUpdate(Task task, TaskArtifactUpdateEvent event)
      Apply artifact update with append support from TaskArtifactUpdateEvent
      指定者:
      applyArtifactUpdate 在接口中 TaskManager
      参数:
      task - The task to update
      event - The TaskArtifactUpdateEvent containing artifact and append information
      返回:
      Updated task
    • registerTaskNotification

      public void registerTaskNotification(TaskPushNotificationConfig config)
      从接口复制的说明: TaskManager
      register task notification config
      指定者:
      registerTaskNotification 在接口中 TaskManager
      参数:
      config - notification config
    • getTaskNotification

      public TaskPushNotificationConfig getTaskNotification(String taskId)
      从接口复制的说明: TaskManager
      get task notification config
      指定者:
      getTaskNotification 在接口中 TaskManager
      参数:
      taskId - task id
      返回:
      notification config