ActivitySnapshot
record ActivitySnapshot( String threadId, String runId, String messageId, String activityType, Map<String, Object> content, Boolean replace, Long timestamp, Object rawEvent) implements AguiEvent
io/agentscope/core/agui/event/AguiEvent.java:1438–1506承载 Activity 快照数据的记录类型。位于 io.agentscope.core.agui.event 包,实现 AguiEvent。核心成员包括 threadId、runId、messageId、activityType、content、replace。
Event containing a snapshot of activity state. This event provides structured activity data that replaces the entire 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. |
content | Map<String, Object> | 执行内容相关操作。 Performs the content operation. |
replace | Boolean | 执行 `replace` 方法。 Performs the replace operation. |
timestamp | Long | 执行时间戳相关操作。 Performs the timestamp operation. |
rawEvent | Object | 执行原始事件相关操作。 Performs the raw event operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content, Boolean replace, Long timestamp, Object rawEvent) | 初始化 `ActivitySnapshot` 实例。 Creates a new instance. |
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content, Boolean replace) | 初始化 `ActivitySnapshot` 实例。 Creates a new instance. |
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content) | 初始化 `ActivitySnapshot` 实例。 Creates a new instance. |
方法摘要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:1438–1506runId
String runId运行标识。
Runs the id.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506messageId
String messageId执行消息标识相关操作。
Performs the message id operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506activityType
String activityType执行 activityType 方法。
Performs the activity type operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506content
Map<String, Object> content执行内容相关操作。
Performs the content operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506replace
Boolean replace执行 replace 方法。
Performs the replace operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506timestamp
Long timestamp执行时间戳相关操作。
Performs the timestamp operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506rawEvent
Object rawEvent执行原始事件相关操作。
Performs the raw event operation.
io/agentscope/core/agui/event/AguiEvent.java:1438–1506构造器详情Constructor Detail
ActivitySnapshot
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content, Boolean replace, Long timestamp, Object rawEvent)
初始化 ActivitySnapshot 实例。
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. |
content | Map<String, Object> | 内容(类型 `Map`)。The content. |
replace | Boolean | replace(类型 `Boolean`)。The replace. |
timestamp | Long | 时间戳(类型 `Long`)。The timestamp. |
rawEvent | Object | 原始事件(类型 `Object`)。The raw event. |
io/agentscope/core/agui/event/AguiEvent.java:1449–1471ActivitySnapshot
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content, Boolean replace)
初始化 ActivitySnapshot 实例。
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. |
content | Map<String, Object> | 内容(类型 `Map`)。The content. |
replace | Boolean | replace(类型 `Boolean`)。The replace. |
io/agentscope/core/agui/event/AguiEvent.java:1473–1481ActivitySnapshot
public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String, Object> content)
初始化 ActivitySnapshot 实例。
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. |
content | Map<String, Object> | 内容(类型 `Map`)。The content. |
io/agentscope/core/agui/event/AguiEvent.java:1483–1490方法详情Method Detail
getType
public AguiEventType getType()
获取类型。
Returns the type.
AguiEventTypeio/agentscope/core/agui/event/AguiEvent.java:1492–1495getThreadId
public String getThreadId()
获取会话线程标识。
Returns the thread id.
Stringio/agentscope/core/agui/event/AguiEvent.java:1497–1500getRunId
public String getRunId()
获取运行标识。
Returns the run id.
Stringio/agentscope/core/agui/event/AguiEvent.java:1502–1505