a2ui-project / a2ui-project/a2ui

Finalize A2UI template schema and data-binding syntax

未关闭
#721 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
component: agent_sdk P2 sprint ready type: feature/enhancement
主要语言
TypeScript
星标
16.4k
派生
1.3k
平均合并
2 天 13 小时
30 天内合并 PR
134

描述

Establish the formal technical contract for how templates are stored and validated to ensure interoperability between the Composer and the Agent SDK.

While https://github.com/google/A2UI/pull/365/ provides an initial [A2UI_COMPONENT_CATALOG](https://github.com/maxkorp/A2UI/blob/72fd136002d24aa786e773744236fad3283e0bb1/a2ui-composer/src/app/api/copilotkit/a2ui-prompt.ts#L4-L39), we need a reusable specification for the Template.

The schema can be stored in the `template` sub-package of the Agent SDK.

Proposed tasks:
- [ ] Define the template schema in the Agent SDK
- [ ] Formalize the syntax for dynamic placeholders using `{{}}`
- [ ] Document the template schema to standardize how the LLM returns selected template names and populated data
- [ ] Provide a catalog of 3-5 reference templates as examples.

贡献指南

打开贡献指南

调研方向

Look at the existing A2UI_COMPONENT_CATALOG in the composer's a2ui-prompt.ts file. The work is in the Agent SDK's 'template' sub-package. Define a JSON schema for templates, specify the {{}} placeholder syntax, and create example templates. Check linked PR #365 for context.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
backend-api-design, documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。