Preserve language and direction for declarative tool descriptions
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- html
- Ambito
- internationalization
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Bikeshed
- Stelle
- 4.7k
- Fork
- 328
- Merge medio
- 2g 15h
- PR unite (30g)
- 16
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webmachinelearning/webmcp
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
webmachinelearning/webmcp#360 ·
I maintainer di solito rispondono entro 1 giorno
-
Say how an agent should weigh annotations that the page wrote about itselfForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
webmachinelearning/webmcp#353 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
webmachinelearning/webmcp#343 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Agenda+ i18n-tracker
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
webmachinelearning/webmcp#273 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
a11y-tracker Agenda+
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
webmachinelearning/webmcp#272 · 4 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webmachinelearning/webmcp
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
endora-commerce/endora-commerce#397 ·
I maintainer di solito rispondono entro 1 giorno
-
bug category:security effort:s priority:p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
LanternOps/breeze#9550 ·
I maintainer di solito rispondono entro 1 giorno
-
REST: Add missing text domain and fix typos in REST API controller stringsForse già presa @devmuhib009 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Add Hindi (hi) locale?Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
hackclub/site#2271 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TencentCloud/TencentDB-Agent-Memory#1759 ·
I maintainer di solito rispondono entro 1 giorno