Raw
record Raw( String threadId, String runId, Object event, String source, Long timestamp, Object rawEvent) implements AguiEvent
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776承载原始数据的记录类型。位于 io.agentscope.core.agui.event 包,实现 AguiEvent。核心成员包括 threadId、runId、event、source、timestamp、rawEvent。
Event containing raw/custom data. This event type allows passing through custom data that doesn't fit into the standard AG-UI event types.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
threadId | String | 执行会话线程标识相关操作。 Performs the thread id operation. |
runId | String | 运行标识。 Runs the id. |
event | Object | 执行事件相关操作。 Performs the event operation. |
source | String | 执行来源相关操作。 Performs the source operation. |
timestamp | Long | 执行时间戳相关操作。 Performs the timestamp operation. |
rawEvent | Object | 执行原始事件相关操作。 Performs the raw event operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public Raw(String threadId, String runId, Object event, String source, Long timestamp, Object rawEvent) | 初始化 `Raw` 实例。 Creates a new instance. |
public Raw(String threadId, String runId, Object event, String source) | 初始化 `Raw` 实例。 Creates a new instance. |
public Raw(String threadId, String runId, Object event) | 初始化 `Raw` 实例。 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.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776runId
String runId运行标识。
Runs the id.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776event
Object event执行事件相关操作。
Performs the event operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776source
String source执行来源相关操作。
Performs the source operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776timestamp
Long timestamp执行时间戳相关操作。
Performs the timestamp operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776rawEvent
Object rawEvent执行原始事件相关操作。
Performs the raw event operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:729–776构造器详情Constructor Detail
Raw
public Raw(String threadId, String runId, Object event, String source, Long timestamp, Object rawEvent)
初始化 Raw 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
event | Object | 事件(类型 `Object`)。The event. |
source | String | 来源(类型 `String`)。The source. |
timestamp | Long | 时间戳(类型 `Long`)。The timestamp. |
rawEvent | Object | 原始事件(类型 `Object`)。The raw event. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:738–752Raw
public Raw(String threadId, String runId, Object event, String source)
初始化 Raw 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
event | Object | 事件(类型 `Object`)。The event. |
source | String | 来源(类型 `String`)。The source. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:754–756Raw
public Raw(String threadId, String runId, Object event)
初始化 Raw 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
runId | String | 运行标识(类型 `String`)。The run id. |
event | Object | 事件(类型 `Object`)。The event. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:758–760方法详情Method Detail
getType
public AguiEventType getType()
获取类型。
Returns the type.
AguiEventType返回AguiEventType。Returns agui event type.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:762–765getThreadId
public String getThreadId()
获取会话线程标识。
Returns the thread id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:767–770getRunId
public String getRunId()
获取运行标识。
Returns the run id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:772–775