a2ui-project / a2ui-project/a2ui
Allow agent and client codebases to have a shared Catalog API source of truth e.g. catalog.json
- Vorherrschende Sprache
- TypeScript
- Sterne
- 16.4k
- Forks
- 1.3k
- Ø Merge
- 3 T. 15 Std.
- Gemergte PRs (30 T.)
- 134
Beschreibung
From @zeroasterisk in https://github.com/a2ui-project/a2ui/issues/825:
> 3. No shared catalog schema
> Client and agent must independently define component names/properties. No way to auto-generate agent prompts from client catalog.
>
> Suggestion: A catalog.json schema file consumed by both sides.
Filing this issue specifically about this part.
Some ideas:
- Have developer programmatically define the catalog API in client code, then "export" it somehow to JSON document that gets pasted into the server codebase, perhaps through some NPM tooling
- Have a way to codegen the catalog implementation stubs from a JSON file, which is used by both server and client codebases.
Beitragsleitfaden
Rechercherichtung
Suche in den Codebasen von client und agent nach vorhandenen Katalogdefinitionen, um die derzeitige Duplizierung zu verstehen. Untersuche, wie die catalog API derzeit definiert und verwendet wird. Bestimme eine Methode, um ein einziges Schema (catalog.json) zu generieren oder gemeinsam zu nutzen, das beide Seiten verwenden können, möglicherweise mithilfe von Codegenerierungstools. Ziel ist eine gemeinsame Quelle der Wahrheit, die unabhängige Definitionen eliminiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- json, typescript
- Bereich
- api, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100