a2ui-project / a2ui-project/a2ui
feat(skill): consider supporting InferenceFormatFactory in SkillGenerator
- Langage dominant
- TypeScript
- Étoiles
- 16.4k
- Forks
- 1.3k
- Merge moyen
- 2 j 13 h
- PR mergées (30 j)
- 134
Description
### 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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, typescript
- Domaine
- backend-api-design, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100