[Client] Fill elicitation defaults when accepting (SEP-1034)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Bắt đầu với ElicitationSchema và năm loại định nghĩa schema cung cấp các giá trị mặc định, sau đó kiểm tra tests/Conformance/client.php và scenario elicitation-sep1034-client-defaults. Thêm coverage kiểm thử unit cho extractDefaults và cập nhật ví dụ để sử dụng helper; hoàn tất khi cả năm loại đều được bao phủ và scenario Conformance chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
SEP-1034 adds client-side default handling for elicitation/create. When a client accepts an elicitation request without explicit field values, the response content should be auto-populated from default fields declared in the request's requestedSchema. Schemas already expose default on StringSchemaDefinition, NumberSchemaDefinition, EnumSchemaDefinition, TitledEnumSchemaDefinition, and BooleanSchemaDefinition.
Scope
- Add helper
ElicitationSchema::extractDefaults(): array<string, mixed>returning afield => defaultmap for all properties that declare one. - Document the helper as the canonical "accept-with-defaults" path; update the example in
tests/Conformance/client.phpto use it forelicitation-sep1034-client-defaults. - Optional convenience:
ElicitResult::accepted(ElicitationSchema $schema)factory that pre-fills defaults.
Conformance scenarios unblocked
elicitation-sep1034-client-defaults.
Dependencies
Independent.
Acceptance
- Unit test on
ElicitationSchema::extractDefaultscovering all 5 definition types. - Conformance: scenario passes (after #328 wiring lands, see below).
cc @soyuka
- Ngôn ngữ chính
- PHP
- Star
- 1.6k
- Fork
- 173
- Merge trung bình
- 19 giờ 19 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/php-sdk
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/php-sdk#516 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStanĐang mởServer
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/php-sdk#468 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs confirmation needs maintainer action Server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modelcontextprotocol/php-sdk#398 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modelcontextprotocol/php-sdk#370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
modelcontextprotocol/php-sdk#524 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/php-sdk
Issue tương tự
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Form
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
symfony/symfony-docs#23159 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug component: bulk editor support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Yoast/wordpress-seo#23669 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
php/frankenphp#2688 ·
Maintainer thường phản hồi trong vòng 1 ngày