REST Resource: projects.locations.collections.engines.sessions.answers
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Answer
JSON representation |
{
"name": string,
"state": enum (State ),
"answerText": string,
"citations": [
{
object (Citation )
}
],
"groundingSupports": [
{
object (GroundingSupport )
}
],
"references": [
{
object (Reference )
}
],
"relatedQuestions": [
string
],
"steps": [
{
object (Step )
}
],
"queryUnderstandingInfo": {
object (QueryUnderstandingInfo )
},
"answerSkippedReasons": [
enum (AnswerSkippedReason )
],
"createTime": string,
"completeTime": string,
"safetyRatings": [
{
object (SafetyRating )
}
],
"groundingScore": number
} |
Fields |
name |
string
Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
|
state |
enum (State )
The state of the answer generation.
|
answerText |
string
The textual answer.
|
citations[] |
object (Citation )
Citations.
|
groundingSupports[] |
object (GroundingSupport )
Optional. Grounding supports.
|
references[] |
object (Reference )
References.
|
relatedQuestions[] |
string
Suggested related questions.
|
steps[] |
object (Step )
Answer generation steps.
|
queryUnderstandingInfo |
object (QueryUnderstandingInfo )
Query understanding information.
|
answerSkippedReasons[] |
enum (AnswerSkippedReason )
Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
|
createTime |
string (Timestamp format)
Output only. Answer creation timestamp. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30" .
|
completeTime |
string (Timestamp format)
Output only. Answer completed timestamp. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30" .
|
safetyRatings[] |
object (SafetyRating )
Optional. Safety ratings.
|
groundingScore |
number
A score in the range of [0, 1] describing how grounded the answer is by the reference chunks.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["This resource defines the structure and attributes of an \"Answer\" within a system, detailing its components and associated metadata."],["The JSON representation of an Answer includes fields like `name`, `state`, `answerText`, `citations`, `groundingSupports`, `references`, `relatedQuestions`, `steps`, `queryUnderstandingInfo`, `answerSkippedReasons`, `createTime`, `completeTime`, `safetyRatings`, and `groundingScore`."],["Answers can have various states during generation, as indicated by the `state` field, and might have associated reasons if they were skipped, as provided in the `answerSkippedReasons` field."],["The `createTime` and `completeTime` fields, presented in a Timestamp format, denote when the answer was created and completed respectively, and are output-only."],["The `groundingScore` field provides a numerical assessment of how well-supported an answer is by the reference material, with a score between 0 and 1, and the method available to get information for an answer is specified."]]],[]]