BundledA2uiSchemaSource
@Component public class BundledA2uiSchemaSource implements A2uiSchemaSource
源码Source
io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:31–90Bundled 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:39–42systemPrompt
public String systemPrompt(Set<String> clientComponents)
设置系统提示词。
Performs the system prompt operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
clientComponents | Set<String> | 客户端 Components(类型 `Set`)。The client components. |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:44–48parse
public List<Map<String, Object>> parse(String rawModelReply, String surfaceId, Set<String> clientComponents)
执行解析相关操作。
Performs the parse operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rawModelReply | String | 原始模型回复(类型 `String`)。The raw model reply. |
surfaceId | String | surface 标识(类型 `String`)。The surface id. |
clientComponents | Set<String> | 客户端 Components(类型 `Set`)。The client components. |
List<Map<String, Object>>返回列出>。Returns list.
源码Source
io/agentscope/examples/copilotkit/a2ui/BundledA2uiSchemaSource.java:50–60