IntentParameterValue
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Reprezentuje wartość parametru intencji.
Zapis JSON |
{
"original": string,
"resolved": value
} |
Pola |
original |
string
Wymagane. Oryginalna wartość tekstowa wyodrębniona z wypowiedzi użytkownika.
|
resolved |
value (Value format)
Wymagane. Wartość strukturalna parametru wyodrębniona z danych wejściowych użytkownika. Pole będzie wypełniane tylko wtedy, gdy parametr jest zdefiniowany w dopasowanej intencji, a jego wartość można zidentyfikować podczas dopasowywania intencji.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eJSON representation showcases the intent parameter's value with \u003ccode\u003eoriginal\u003c/code\u003e indicating the user's input and \u003ccode\u003eresolved\u003c/code\u003e displaying the structured, extracted value.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoriginal\u003c/code\u003e is a required string field containing the raw user utterance, while \u003ccode\u003eresolved\u003c/code\u003e is a required field providing the structured data in \u003ca href=\"https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value\"\u003eValue\u003c/a\u003e format, but only if the parameter is defined within the intent and a value is identified during matching.\u003c/p\u003e\n"]]],[],null,["# IntentParameterValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a value for intent parameter.\n\n| JSON representation ||\n|---------------------------------------------------|---|\n| ``` { \"original\": string, \"resolved\": value } ``` |\n\n| Fields ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `original` | `string` Required. Original text value extracted from user utterance. |\n| `resolved` | `value (`[Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value)` format)` Required. Structured value for parameter extracted from user input. This will only be populated if the parameter is defined in the matched intent and the value of the parameter could be identified during intent matching. |"]]