AS AgentScopeAPI 手册 / API Reference

AguiEvents

public final class AguiEvents
源码Source io/agentscope/core/agui/event/AguiEvents.java:23–198

AGUI 事件,描述执行过程中的事件。位于 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
eventAguiEvent事件(类型 `AguiEvent`)。The event to copy
timestampLong时间戳(类型 `Long`)。The timestamp for the copied event
rawEventObject原始事件(类型 `Object`)。The raw source event for the copied event
返回Returns AguiEvent
返回AguiEvent。A copied event with the supplied base properties
源码Source io/agentscope/core/agui/event/AguiEvents.java:35–197
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.