AS AgentScopeAPI 手册 / API Reference

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
typeString
执行类型相关操作。
Performs the type operation.
payloadMap<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–405

payload

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
typeString类型(类型 `String`)。The type.
payloadMap<String, Object>负载(类型 `Map`)。The payload.
源码Source io/agentscope/builder/web/api/DataSessionApiController.java:402–404
基于官方固定版本源码静态生成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.