InboundEvent
public record InboundEvent(String type, Map<String, Object> payload)
源码Source
io/agentscope/builder/web/api/DataSessionApiController.java:400–405承载入站事件数据的记录类型。位于 io.agentscope.builder.web.api 包。核心成员包括 type、payload、InboundEvent。
Single inbound event with type and free-form payload fields.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
type | String | 执行类型相关操作。 Performs the type operation. |
payload | Map<String, Object> | 执行负载相关操作。 Performs the payload operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public InboundEvent(String type, Map<String, Object> payload) | 初始化 `InboundEvent` 实例。 Merges explicit payload with any additional JSON fields on the event object. |
记录组件详情Record Component Detail
type
String type执行类型相关操作。
Performs the type operation.
源码Source
io/agentscope/builder/web/api/DataSessionApiController.java:400–405payload
Map<String, Object> payload执行负载相关操作。
Performs the payload operation.
源码Source
io/agentscope/builder/web/api/DataSessionApiController.java:400–405构造器详情Constructor Detail
InboundEvent
public InboundEvent(String type, Map<String, Object> payload)
初始化 InboundEvent 实例。
Merges explicit payload with any additional JSON fields on the event object.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
payload | Map<String, Object> | 负载(类型 `Map`)。The payload. |
源码Source
io/agentscope/builder/web/api/DataSessionApiController.java:402–404