AS AgentScopeAPI 手册 / API Reference

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
surfaceIdString
执行 `surfaceId` 方法。
the surface identifier shared by every operation in `operations`
catalogIdString
执行目录标识相关操作。
the catalog the components come from
intentString
执行 `intent` 方法。
the natural-language request that produced the surface
generatedByString
执行 `generatedBy` 方法。
which composer produced it (`gemini`, `dashscope`, ` fallback`)
componentCountint
执行 `componentCount` 方法。
number of components in the rendered tree
operationsList<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–39

catalogId

String catalogId

执行目录标识相关操作。

the catalog the components come from

源码Source io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39

intent

String intent

执行 intent 方法。

the natural-language request that produced the surface

源码Source io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39

generatedBy

String generatedBy

执行 generatedBy 方法。

which composer produced it (gemini, dashscope, fallback)

源码Source io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39

componentCount

int componentCount

执行 componentCount 方法。

number of components in the rendered tree

源码Source io/agentscope/examples/copilotkit/a2ui/A2uiSurface.java:33–39

operations

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
基于官方固定版本源码静态生成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.