feat: Add custom session id field to create session v1

feat: Add raw_event field to event proto v1

PiperOrigin-RevId: 880968942
This commit is contained in:
Google APIs 2026-03-09 11:58:51 -07:00 committed by Copybara-Service
parent ba7ab5e522
commit 39d9d44b07
2 changed files with 14 additions and 0 deletions

View file

@ -131,6 +131,10 @@ message SessionEvent {
// Optional. Metadata relating to this event.
EventMetadata event_metadata = 11 [(google.api.field_behavior) = OPTIONAL];
// Optional. Weakly typed raw event data in proto struct format.
google.protobuf.Struct raw_event = 12
[(google.api.field_behavior) = OPTIONAL];
}
// Metadata relating to a LLM response event.

View file

@ -48,6 +48,7 @@ service SessionService {
body: "session"
};
option (google.api.method_signature) = "parent,session";
option (google.api.method_signature) = "parent,session,session_id";
option (google.longrunning.operation_info) = {
response_type: "Session"
metadata_type: "CreateSessionOperationMetadata"
@ -127,6 +128,15 @@ message CreateSessionRequest {
// Required. The session to create.
Session session = 2 [(google.api.field_behavior) = REQUIRED];
// Optional. The user defined ID to use for session, which will become the
// final component of the session resource name. If not provided, Vertex AI
// will generate a value for this ID.
//
// This value may be up to 63 characters, and valid characters are
// `[a-z0-9-]`. The first character must be a letter, and the last character
// must be a letter or number.
string session_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Metadata associated with the