a2ui-project / a2ui-project/a2ui

[Feature Request] Fragile Enforcement of JSON-only A2UI Output

Offen
#1,415 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component: agent_sdk P2 type: feature/enhancement
Vorherrschende Sprache
TypeScript
Sterne
16.4k
Forks
1.3k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
134

Beschreibung

I would suggest building in some prompt augmentation to the agent SDK to enforce proper A2UI messages. I don’t think you should be required to write something like `Your final output MUST be a a2ui UI JSON response`. Even with that, it doesn’t always work.

For example, my role description of `You are a helpful agent that helps find and book weekend activities. Your final output MUST be a a2ui UI JSON response` generated an A2UI validation failure.

However, something like this did work: `You are a powerful and intelligent agent that translates user requests into a stream of valid A2UI JSON messages. You must respond to the user's request using only the component and data schemas provided below. Do not add any conversational text or markdown outside of the designated component properties. Your entire response must be a valid JSON array of A2UI messages.`

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.