AS AgentScopeAPI 手册 / API Reference

BundledA2uiSchemaSource

@Component public class BundledA2uiSchemaSource implements A2uiSchemaSource
源码Source io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:31–90

Bundled A 2 ui 模式来源,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.examples.copilotkit.a2ui 包,实现 A2uiSchemaSource。核心成员包括 name、systemPrompt、parse。

Default A2uiSchemaSource: a compact hand-written A2UI v0.9 grammar plus the structural checks in A2uiOperations.

方法摘要Method Summary

方法Method说明Description
public String name()
返回名称。
Returns the name.
public String systemPrompt(Set<String> clientComponents)
设置系统提示词。
Performs the system prompt operation.
public List<Map<String, Object>> parse(String rawModelReply, String surfaceId, Set<String> clientComponents)
执行解析相关操作。
Performs the parse operation.

方法详情Method Detail

name

public String name()

返回名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:39–42

systemPrompt

public String systemPrompt(Set<String> clientComponents)

设置系统提示词。

Performs the system prompt operation.

参数Parameters
名称Name类型Type说明Description
clientComponentsSet<String>客户端 Components(类型 `Set`)。The client components.
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:44–48

parse

public List<Map<String, Object>> parse(String rawModelReply, String surfaceId, Set<String> clientComponents)

执行解析相关操作。

Performs the parse operation.

参数Parameters
名称Name类型Type说明Description
rawModelReplyString原始模型回复(类型 `String`)。The raw model reply.
surfaceIdStringsurface 标识(类型 `String`)。The surface id.
clientComponentsSet<String>客户端 Components(类型 `Set`)。The client components.
返回Returns List<Map<String, Object>>
返回列出>。Returns list.
源码Source io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:50–60
基于官方固定版本源码静态生成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.