Skip to content

Commit 39d9d44

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add custom session id field to create session v1
feat: Add raw_event field to event proto v1 PiperOrigin-RevId: 880968942
1 parent ba7ab5e commit 39d9d44

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

google/cloud/aiplatform/v1/session.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ message SessionEvent {
131131

132132
// Optional. Metadata relating to this event.
133133
EventMetadata event_metadata = 11 [(google.api.field_behavior) = OPTIONAL];
134+
135+
// Optional. Weakly typed raw event data in proto struct format.
136+
google.protobuf.Struct raw_event = 12
137+
[(google.api.field_behavior) = OPTIONAL];
134138
}
135139

136140
// Metadata relating to a LLM response event.

google/cloud/aiplatform/v1/session_service.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ service SessionService {
4848
body: "session"
4949
};
5050
option (google.api.method_signature) = "parent,session";
51+
option (google.api.method_signature) = "parent,session,session_id";
5152
option (google.longrunning.operation_info) = {
5253
response_type: "Session"
5354
metadata_type: "CreateSessionOperationMetadata"
@@ -127,6 +128,15 @@ message CreateSessionRequest {
127128

128129
// Required. The session to create.
129130
Session session = 2 [(google.api.field_behavior) = REQUIRED];
131+
132+
// Optional. The user defined ID to use for session, which will become the
133+
// final component of the session resource name. If not provided, Vertex AI
134+
// will generate a value for this ID.
135+
//
136+
// This value may be up to 63 characters, and valid characters are
137+
// `[a-z0-9-]`. The first character must be a letter, and the last character
138+
// must be a letter or number.
139+
string session_id = 3 [(google.api.field_behavior) = OPTIONAL];
130140
}
131141

132142
// Metadata associated with the

0 commit comments

Comments
 (0)