ActivityDelta
record ActivityDelta( String threadId, String runId, String messageId, String activityType, List<JsonPatchOperation> patch, Long timestamp, Object rawEvent) implements AguiEvent
io/agentscope/core/agui/event/AguiEvent.java:1513–1566承载 Activity 增量数据的记录类型。位于 io.agentscope.core.agui.event 包,实现 AguiEvent。核心成员包括 threadId、runId、messageId、activityType、patch、timestamp。
Event containing an incremental delta update to activity state. The patch contains a list of JSON Patch operations (RFC 6902) that should be applied to the client-side activity state for the given message.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
threadId | String | 执行会话线程标识相关操作。 Performs the thread id operation. |
runId | String | 运行标识。 Runs the id. |
messageId | String | 执行消息标识相关操作。 Performs the message id operation. |
activityType | String | 执行 `activityType` 方法。 Performs the activity type operation. |
patch | List<JsonPatchOperation> | 执行 `patch` 方法。 Performs the patch operation. |
timestamp | Long | 执行时间戳相关操作。 Performs the timestamp operation. |
rawEvent | Object | 执行原始事件相关操作。 Performs the raw event operation. |
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AguiEventType getType() | 获取类型。 Returns the type. |
public String getThreadId() | 获取会话线程标识。 Returns the thread id. |
public String getRunId() | 获取运行标识。 Returns the run id. |
记录组件详情Record Component Detail
threadId
String threadId执行会话线程标识相关操作。
Performs the thread id operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566runId
String runId运行标识。
Runs the id.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566messageId
String messageId执行消息标识相关操作。
Performs the message id operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566activityType
String activityType执行 activityType 方法。
Performs the activity type operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566patch
List<JsonPatchOperation> patch执行 patch 方法。
Performs the patch operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566timestamp
Long timestamp执行时间戳相关操作。
Performs the timestamp operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566rawEvent
Object rawEvent执行原始事件相关操作。
Performs the raw event operation.
io/agentscope/core/agui/event/AguiEvent.java:1513–1566构造器详情Constructor Detail
ActivityDelta
public ActivityDelta(String threadId, String runId, String messageId, String activityType, List<JsonPatchOperation> patch, Long timestamp, Object rawEvent)
初始化 ActivityDelta 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
messageId | String | 消息标识(类型 `String`)。The message id. |
activityType | String | activity 类型(类型 `String`)。The activity type. |
patch | List<JsonPatchOperation> | patch(类型 `List`)。The patch. |
timestamp | Long | 时间戳(类型 `Long`)。The timestamp. |
rawEvent | Object | 原始事件(类型 `Object`)。The raw event. |
io/agentscope/core/agui/event/AguiEvent.java:1523–1541ActivityDelta
public ActivityDelta(String threadId, String runId, String messageId, String activityType, List<JsonPatchOperation> patch)
初始化 ActivityDelta 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
messageId | String | 消息标识(类型 `String`)。The message id. |
activityType | String | activity 类型(类型 `String`)。The activity type. |
patch | List<JsonPatchOperation> | patch(类型 `List`)。The patch. |
io/agentscope/core/agui/event/AguiEvent.java:1543–1550方法详情Method Detail
getType
public AguiEventType getType()
获取类型。
Returns the type.
AguiEventTypeio/agentscope/core/agui/event/AguiEvent.java:1552–1555getThreadId
public String getThreadId()
获取会话线程标识。
Returns the thread id.
Stringio/agentscope/core/agui/event/AguiEvent.java:1557–1560getRunId
public String getRunId()
获取运行标识。
Returns the run id.
Stringio/agentscope/core/agui/event/AguiEvent.java:1562–1565