a2ui-project / a2ui-project/a2ui

feat(skill): consider supporting InferenceFormatFactory in SkillGenerator

未关闭
#2,574 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
status: needs-triage
主要语言
TypeScript
星标
16.4k
派生
1.3k
平均合并
2 天 13 小时
30 天内合并 PR
134

描述

### Background

Currently in PR #2516, `SkillGenerator` wraps an instantiated `InferenceFormat` strategy instance:

```python
generator = SkillGenerator(fmt)
skill = generator.generate_skill() # defaults to catalogs in fmt
```

In the Agent SDK module blueprint (`blueprints/modules/a2ui_agent.blueprint.md` §4.E), format construction is planned to be abstracted through `InferenceFormatFactory` for the upcoming `a2ui.processor` facade:

```python
factory: InferenceFormatFactory
fmt = factory.create(catalog, capabilities)
```

### Proposed Enhancement

Once `InferenceFormatFactory` is implemented in the Python Agent SDK and multi-language core SDKs, evaluate whether `SkillGenerator` should accept an `InferenceFormatFactory` directly, allowing catalogs and format options to be synthesized on the fly without pre-bound format instances.

贡献指南

打开贡献指南

调研方向

Review the SkillGenerator class and the InferenceFormat interface in the codebase, likely in the Python Agent SDK. Examine the blueprint at blueprints/modules/a2ui_agent.blueprint.md section 4.E to understand the planned InferenceFormatFactory. Determine how catalogs and capabilities are currently passed and how a factory would change the flow. Check for existing tests of SkillGenerator to understand the expected behavior.

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

评估

技术栈
python, typescript
领域
backend-api-design, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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