answers
Creates, updates, deletes, gets or lists a answers
resource.
Overview
Name | answers |
Type | Resource |
Id | google.discoveryengine.answers |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/* |
answerSkippedReasons | array | Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. |
answerText | string | The textual answer. |
citations | array | Citations. |
completeTime | string | Output only. Answer completed timestamp. |
createTime | string | Output only. Answer creation timestamp. |
queryUnderstandingInfo | object | Query understanding information. |
references | array | References. |
relatedQuestions | array | Suggested related questions. |
state | string | The state of the answer generation. |
steps | array | Answer generation steps. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_collections_data_stores_sessions_answers_get | SELECT | answersId, collectionsId, dataStoresId, locationsId, projectsId, sessionsId | Gets a Answer. |
projects_locations_collections_engines_sessions_answers_get | SELECT | answersId, collectionsId, enginesId, locationsId, projectsId, sessionsId | Gets a Answer. |
projects_locations_data_stores_sessions_answers_get | SELECT | answersId, dataStoresId, locationsId, projectsId, sessionsId | Gets a Answer. |
SELECT
examples
Gets a Answer.
SELECT
name,
answerSkippedReasons,
answerText,
citations,
completeTime,
createTime,
queryUnderstandingInfo,
references,
relatedQuestions,
state,
steps
FROM google.discoveryengine.answers
WHERE answersId = '{{ answersId }}'
AND dataStoresId = '{{ dataStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sessionsId = '{{ sessionsId }}';