a2ui-project / a2ui-project/a2ui

feat(skill): consider supporting InferenceFormatFactory in SkillGenerator

Đang mở
#2,574 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
status: needs-triage
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, typescript
Lĩnh vực
backend-api-design, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.