Class RemoteAgentEvent

java.lang.Object
io.agentscope.harness.agent.subagent.protocol.RemoteAgentEvent

public class RemoteAgentEvent extends Object
Stable Protocol DTO for remote subagent event streaming.

Fields are optional per event type; unknown fields are ignored for forward compatibility.

Besides the flat per-type fields, an event may carry getPayload() — the source AgentEvent serialized in full. Clients that understand it restore the original event (ids, timestamps, metadata and all); older ones keep reading the flat fields.

  • Constructor Details

    • RemoteAgentEvent

      public RemoteAgentEvent()
  • Method Details

    • getSeq

      public long getSeq()
    • setSeq

      public void setSeq(long seq)
    • getType

      public RemoteEventType getType()
    • setType

      public void setType(RemoteEventType type)
    • getTaskId

      public String getTaskId()
    • setTaskId

      public void setTaskId(String taskId)
    • getAgentId

      public String getAgentId()
    • setAgentId

      public void setAgentId(String agentId)
    • getTimestamp

      public String getTimestamp()
    • setTimestamp

      public void setTimestamp(String timestamp)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getToolCallId

      public String getToolCallId()
    • setToolCallId

      public void setToolCallId(String toolCallId)
    • getToolName

      public String getToolName()
    • setToolName

      public void setToolName(String toolName)
    • getToolInput

      public String getToolInput()
    • setToolInput

      public void setToolInput(String toolInput)
    • getPendingConfirms

      public List<RemotePendingConfirm> getPendingConfirms()
    • setPendingConfirms

      public void setPendingConfirms(List<RemotePendingConfirm> pendingConfirms)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getError

      public String getError()
    • setError

      public void setError(String error)
    • getEventType

      public String getEventType()
      Name of the source AgentEventType, e.g. MODEL_CALL_END. Lets a client filter or log events without deserializing getPayload().
    • setEventType

      public void setEventType(String eventType)
    • getPayload

      public String getPayload()
      The source AgentEvent as JSON, or null for events the server synthesizes itself (STATUS, RUN_ERROR) and for events whose serialization failed.
    • setPayload

      public void setPayload(String payload)