Class RemoteAgentEvent
java.lang.Object
io.agentscope.harness.agent.subagent.protocol.RemoteAgentEvent
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Name of the sourceAgentEventType, e.g.The sourceAgentEventas JSON, ornullfor events the server synthesizes itself (STATUS,RUN_ERROR) and for events whose serialization failed.longgetSeq()getText()getType()voidsetAgentId(String agentId) voidvoidsetEventType(String eventType) voidsetPayload(String payload) voidsetPendingConfirms(List<RemotePendingConfirm> pendingConfirms) voidsetSeq(long seq) voidvoidvoidvoidsetTimestamp(String timestamp) voidsetToolCallId(String toolCallId) voidsetToolInput(String toolInput) voidsetToolName(String toolName) voidsetType(RemoteEventType type)
-
Constructor Details
-
RemoteAgentEvent
public RemoteAgentEvent()
-
-
Method Details
-
getSeq
public long getSeq() -
setSeq
public void setSeq(long seq) -
getType
-
setType
-
getTaskId
-
setTaskId
-
getAgentId
-
setAgentId
-
getTimestamp
-
setTimestamp
-
getText
-
setText
-
getToolCallId
-
setToolCallId
-
getToolName
-
setToolName
-
getToolInput
-
setToolInput
-
getPendingConfirms
-
setPendingConfirms
-
getStatus
-
setStatus
-
getError
-
setError
-
getEventType
Name of the sourceAgentEventType, e.g.MODEL_CALL_END. Lets a client filter or log events without deserializinggetPayload(). -
setEventType
-
getPayload
The sourceAgentEventas JSON, ornullfor events the server synthesizes itself (STATUS,RUN_ERROR) and for events whose serialization failed. -
setPayload
-