A2uiSurface
public record A2uiSurface( String surfaceId, String catalogId, String intent, String generatedBy, int componentCount, List<Map<String, Object>> operations)
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39承载 A 2 ui Surface数据的记录类型。位于 io.agentscope.examples.copilotkit.a2ui 包。核心成员包括 surfaceId、catalogId、intent、generatedBy、componentCount、operations。
A generated A2UI surface, ready to be shipped to the browser.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
surfaceId | String | 执行 `surfaceId` 方法。 the surface identifier shared by every operation in `operations` |
catalogId | String | 执行目录标识相关操作。 the catalog the components come from |
intent | String | 执行 `intent` 方法。 the natural-language request that produced the surface |
generatedBy | String | 执行 `generatedBy` 方法。 which composer produced it (`gemini`, `dashscope`, `
fallback`) |
componentCount | int | 执行 `componentCount` 方法。 number of components in the rendered tree |
operations | List<Map<String, Object>> | 执行 `operations` 方法。 the raw A2UI v0.9 server-to-client messages |
记录组件详情Record Component Detail
surfaceId
String surfaceId执行 surfaceId 方法。
the surface identifier shared by every operation in operations
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39catalogId
String catalogId执行目录标识相关操作。
the catalog the components come from
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39intent
String intent执行 intent 方法。
the natural-language request that produced the surface
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39generatedBy
String generatedBy执行 generatedBy 方法。
which composer produced it (gemini, dashscope, fallback)
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39componentCount
int componentCount执行 componentCount 方法。
number of components in the rendered tree
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39operations
List<Map<String, Object>> operations执行 operations 方法。
the raw A2UI v0.9 server-to-client messages
源码Source
io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39