RemoteAgentEvent
@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class RemoteAgentEvent
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:31–173远程智能体事件,描述执行过程中的事件。位于 io.agentscope.harness.agent.subagent.protocol 包。核心成员包括 getSeq、setSeq、getType、setType、getTaskId、setTaskId。
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 io.agentscope.core.event.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
| 构造器Constructor | 说明Description |
|---|---|
public RemoteAgentEvent() | 初始化 `RemoteAgentEvent` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
RemoteAgentEvent
public RemoteAgentEvent()
初始化 RemoteAgentEvent 实例。
Creates a new instance.
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:50方法详情Method Detail
getSeq
public long getSeq()
获取 getSeq。
Returns the seq.
longio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:52–54setSeq
public void setSeq(long seq)
设置 setSeq。
Sets the seq.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seq | long | seq(类型 `long`)。The seq. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:56–58getType
public RemoteEventType getType()
获取类型。
Returns the type.
RemoteEventTypeio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:60–62setType
public void setType(RemoteEventType type)
设置类型。
Sets the type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | RemoteEventType | 类型(类型 `RemoteEventType`)。The type. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:64–66getTaskId
public String getTaskId()
获取任务标识。
Returns the task id.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:68–70setTaskId
public void setTaskId(String taskId)
设置任务标识。
Sets the task id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
taskId | String | 任务标识(类型 `String`)。The task id. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:72–74getAgentId
public String getAgentId()
获取智能体标识。
Returns the agent id.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:76–78setAgentId
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:80–82getTimestamp
public String getTimestamp()
获取时间戳。
Returns the timestamp.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:84–86setTimestamp
public void setTimestamp(String timestamp)
设置时间戳。
Sets the timestamp.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timestamp | String | 时间戳(类型 `String`)。The timestamp. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:88–90getText
public String getText()
获取文本。
Returns the text.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:92–94setText
public void setText(String text)
设置文本。
Sets the text.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
text | String | 文本(类型 `String`)。The text. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:96–98getToolCallId
public String getToolCallId()
获取工具调用标识。
Returns the tool call id.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:100–102setToolCallId
public void setToolCallId(String toolCallId)
设置工具调用标识。
Sets the tool call id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:104–106getToolName
public String getToolName()
获取工具名称。
Returns the tool name.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:108–110setToolName
public void setToolName(String toolName)
设置工具名称。
Sets the tool name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolName | String | 工具名称(类型 `String`)。The tool name. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:112–114getToolInput
public String getToolInput()
获取工具输入。
Returns the tool input.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:116–118setToolInput
public void setToolInput(String toolInput)
设置工具输入。
Sets the tool input.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolInput | String | 工具输入(类型 `String`)。The tool input. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:120–122getPendingConfirms
public List<RemotePendingConfirm> getPendingConfirms()
获取 getPendingConfirms。
Returns the pending confirms.
List<RemotePendingConfirm>io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:124–126setPendingConfirms
public void setPendingConfirms(List<RemotePendingConfirm> pendingConfirms)
设置 setPendingConfirms。
Sets the pending confirms.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
pendingConfirms | List<RemotePendingConfirm> | 待处理 Confirms(类型 `List`)。The pending confirms. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:128–130getStatus
public String getStatus()
获取状态。
Returns the status.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:132–134setStatus
public void setStatus(String status)
设置状态。
Sets the status.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:136–138getError
public String getError()
获取错误。
Returns the error.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:140–142setError
public void setError(String error)
设置错误。
Sets the error.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
error | String | 错误(类型 `String`)。The error. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:144–146getEventType
public String getEventType()
获取事件类型。
Name of the source io.agentscope.core.event.AgentEventType, e.g.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:153–155setEventType
public void setEventType(String eventType)
设置事件类型。
Sets the event type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventType | String | 事件类型(类型 `String`)。The event type. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:157–159getPayload
public String getPayload()
获取负载。
The source io.agentscope.core.event.AgentEvent as JSON, or null for events the server synthesizes itself (STATUS, RUN_ERROR) and for events whose serialization failed.
Stringio/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:166–168setPayload
public void setPayload(String payload)
设置负载。
Sets the payload.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
payload | String | 负载(类型 `String`)。The payload. |
io/agentscope/harness/agent/subagent/protocol/RemoteAgentEvent.java:170–172