Preserve language and direction for declarative tool descriptions
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- html
- Lĩnh vực
- internationalization
Hướng nghiên cứu
Read declarative-api-explainer.md around the tooldescription and toolparamdescription definitions, then inspect index.bs around the schema-synthesis TODO and the related issues #153, #210, and #273. Decide how authors express language and direction, preserve that metadata in synthesized descriptions, and specify how localized alternatives are handled or deferred.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The declarative API explainer places natural-language tool metadata in the
tooldescription and toolparamdescription HTML attributes, then turns those values into a tool
description and JSON Schema property descriptions. The current proposal does not define how the
language or base direction of those strings is determined or preserved during that conversion.
This is the declarative-markup part of #153, identified while reviewing the checklist in #273.
Current text
tooldescriptionis analogous toModelContextTool.description.toolparamdescriptionbecomes a JSON Schemadescription.- The normative schema-synthesis algorithm is still a TODO, so this can still be resolved before the markup is fixed in place.
Internationalization concern
W3C's Internationalization Best Practices for Spec Developers says that:
- the language and string direction must be determinable for every natural-language string field;
- natural-language text in attribute values should be avoided;
- if user-readable text is defined in attributes, language and direction information must be available separately.
The current explainer does not say:
- whether these new attributes are translatable;
- whether their values use the form control's inherited HTML
langanddir/autocontext; or - how that context is carried into the synthesized tool definition and JSON Schema instead of
being reduced to an unlabelled string.
This matters even when a description is primarily agent-facing: property descriptions and other
schema annotations may be surfaced in confirmation or native UI, and the tool title is explicitly
defined for user interfaces.
Resolution criteria
Before defining the declarative synthesis algorithm in #210, decide whether to:
- represent descriptions as element content (allowing ordinary HTML
lang,dir, and inline
markup), or - keep attributes but normatively define their translation, language, and direction behavior and
preserve that metadata in the synthesized representation.
The solution should also state how authors provide localized alternatives, or explicitly defer that
part to the resolution of #153.
Maintainers: please apply the i18n-tracker label so the Internationalization WG is notified, as
requested by #273. I cannot apply repository labels with my current permissions.
- Ngôn ngữ chính
- Bikeshed
- Star
- 4.7k
- Fork
- 328
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 webmachinelearning/webmcp
-
Say how an agent should weigh annotations that the page wrote about itselfCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
webmachinelearning/webmcp#353 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#343 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Agenda+ i18n-tracker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
webmachinelearning/webmcp#273 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y-tracker Agenda+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#272 · 4 bình luận · 2 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
webmachinelearning/webmcp#234 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của webmachinelearning/webmcp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
openstreetmap/iD#13019 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nxdpro/journeyguard#7 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
excalidraw/excalidraw#12394 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
logancyang/obsidian-copilot#3747 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Riloox/hostkind-open#45 ·