Resource: FeedbackEntry
FeedbackEntry is a resource that represents a user's feedback on a conversation with an agent.
namestring
Identifier. The resource name. Assigned by the server on create.
Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}/feedbackEntries/{feedbackEntry}
sessionIdstring
Required. The id of the session that the feedback relates to.
eventIdstring
Required. The id of the event within the session that the feedback relates to.
Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than FEEDBACK_TYPE_UNSPECIFIED.
feedbackLabels[]string
feedbackTextstring
Optional. Qualitative free-form comments provided by the user.
userIdstring
Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of this field (for example whether it is an opaque token, a hashed value, or a user-visible identifier) are determined by the calling application.
sourcestring
Optional. The surface that the feedback originated from.
customMetadatamap (key: string, value: string)
Optional. Additional key-value metadata associated with the feedback.
Output only. The time at which the entry was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
Output only. The time at which the entry was most recently updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
| JSON representation |
|---|
{
"name": string,
"sessionId": string,
"eventId": string,
"feedbackType": enum ( |
FeedbackType
The coarse-grained type of feedback provided by the user.
The enum is not frozen; additional values may be added in the future, so clients should treat unknown values gracefully.
| Enums | |
|---|---|
FEEDBACK_TYPE_UNSPECIFIED |
This is the default value meaning the type has not been set. |
THUMBS_UP |
Indicates positive feedback. |
THUMBS_DOWN |
Indicates negative feedback. |
Methods |
|
|---|---|
|
Creates a new FeedbackEntry. |
|
Deletes a FeedbackEntry and its associated FeedbackContext. |
|
Retrieves a single FeedbackEntry by its resource name. |
|
Retrieves the FeedbackContext associated with a FeedbackEntry. |
|
Lists FeedbackEntries in a ReasoningEngine. |
|
Updates an existing FeedbackEntry. |
|
Updates the FeedbackContext associated with a FeedbackEntry. |