Strukturierte Ausgabe von UI-Agents
- Zuletzt aktualisiert2026/03/25
Beispiele für das Prompten eines UI Agents für strukturierte Ausgaben.
Definieren Sie Ihre erforderliche Ausgabestruktur im Ziel.
Beispiel 1: Lassen Sie den Agent die Ausgabestruktur selbst bestimmen.
Create a new invoice with the data: <data>. Return the Reference Number as a JSON.
Beispiel 2: Geben Sie das Schema im Prompt an und der Agent formatiert die Ausgabe entsprechend.
Open the product pricing page for “Pro Plan” in the web app. Extract pricing into the JSON schema below.
{
"plan_name": "",
"currency": "",
"price": {
"monthly": "",
"annual": ""
},
"included_limits": [
{"name": "", "value": ""}
]
}
Beispiel 3: Geben Sie den Ausgabetyp des Formats in der Ausführen-Aktion an.
Goal: get current weather in San Francisco
Output format JSON: {"temperature": "int", "unit": "str", "rain": "bool"}
Anmerkung: Das Ausgabeformat JSON unterstützt keine verschachtelten JSON-Strukturen.