Skip to content

Commit b153a91

Browse files
Google APIscopybara-github
authored andcommitted
fix: Include AssistAnswer as a part of the Session
fix: Add labels for additional Sessions identification PiperOrigin-RevId: 820710306
1 parent 59aac0a commit b153a91

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

google/cloud/discoveryengine/v1/session.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/discoveryengine/v1/answer.proto";
22+
import "google/cloud/discoveryengine/v1/assist_answer.proto";
2223
import "google/protobuf/timestamp.proto";
2324

2425
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
@@ -67,6 +68,15 @@ message Session {
6768
// session.
6869
Answer detailed_answer = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
6970

71+
// Output only. In
72+
// [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession]
73+
// API, if
74+
// [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1.GetSessionRequest.include_answer_details]
75+
// is set to true, this field will be populated when getting assistant
76+
// session.
77+
AssistAnswer detailed_assist_answer = 8
78+
[(google.api.field_behavior) = OUTPUT_ONLY];
79+
7080
// Optional. Represents metadata related to the query config, for example
7181
// LLM model and version used, model parameters (temperature, grounding
7282
// parameters, etc.). The prefix "google." is reserved for Google-developed
@@ -103,6 +113,10 @@ message Session {
103113
// Turns.
104114
repeated Turn turns = 4;
105115

116+
// Optional. The labels for the session.
117+
// Can be set as filter in ListSessionsRequest.
118+
repeated string labels = 9 [(google.api.field_behavior) = OPTIONAL];
119+
106120
// Output only. The time the session started.
107121
google.protobuf.Timestamp start_time = 5
108122
[(google.api.field_behavior) = OUTPUT_ONLY];

0 commit comments

Comments
 (0)