AguiEvents
public final class AguiEvents
源码Source
io/agentscope/core/agui/event/AguiEvents.java:23–198AGUI 事件,描述执行过程中的事件。位于 io.agentscope.core.agui.event 包。核心成员包括 withBaseProperties。
Utilities for working with AG-UI events.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static AguiEvent withBaseProperties(AguiEvent event, Long timestamp, Object rawEvent)static | 执行使用基类属性相关操作。 Copies an event while replacing only the AG-UI base event properties. |
方法详情Method Detail
withBaseProperties
public static AguiEvent withBaseProperties(AguiEvent event, Long timestamp, Object rawEvent)
static
执行使用基类属性相关操作。
Copies an event while replacing only the AG-UI base event properties.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
event | AguiEvent | 事件(类型 `AguiEvent`)。The event to copy |
timestamp | Long | 时间戳(类型 `Long`)。The timestamp for the copied event |
rawEvent | Object | 原始事件(类型 `Object`)。The raw source event for the copied event |
AguiEvent返回AguiEvent。A copied event with the supplied base properties
源码Source
io/agentscope/core/agui/event/AguiEvents.java:35–197