Interface ProtocolTaskRepository

All Known Implementing Classes:
WorkspaceProtocolTaskRepository

public interface ProtocolTaskRepository
Control-plane persistence for Agent Protocol TaskRecords.

This store is not an execution agent's workspace. Task HTTP endpoints need a global task_id lookup independent of which HarnessAgent ran the task; records therefore live under a dedicated protocol bucket (see AgentProtocolConstants.PROTOCOL_AGENT_ID). Each agent's own WorkspaceManager continues to own MEMORY / sessions / skills for that agent only.

  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<io.agentscope.harness.agent.subagent.task.TaskRecord>
    find(String taskId)
    Returns the task with the given id, or empty if unknown.
    void
    save(io.agentscope.harness.agent.subagent.task.TaskRecord record)
    Upserts the given task record.
  • Method Details

    • save

      void save(io.agentscope.harness.agent.subagent.task.TaskRecord record)
      Upserts the given task record.
    • find

      Optional<io.agentscope.harness.agent.subagent.task.TaskRecord> find(String taskId)
      Returns the task with the given id, or empty if unknown.