Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::AssistantMessage.
A message in an assistant session.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attached_gcs_uris
def attached_gcs_uris() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
#attached_gcs_uris=
def attached_gcs_uris=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
Returns
- (::Array<::String>) — Optional. Cloud Storage URIs for files uploaded by the user during this turn. This allows attachments to be persisted and rendered in the session history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
#chunks
def chunks() -> ::Array<::Google::Cloud::Ces::V1beta::AssistantChunk>
Returns
- (::Array<::Google::Cloud::Ces::V1beta::AssistantChunk>) — Optional. Content of the message as chunks.
#chunks=
def chunks=(value) -> ::Array<::Google::Cloud::Ces::V1beta::AssistantChunk>
Parameter
- value (::Array<::Google::Cloud::Ces::V1beta::AssistantChunk>) — Optional. Content of the message as chunks.
Returns
- (::Array<::Google::Cloud::Ces::V1beta::AssistantChunk>) — Optional. Content of the message as chunks.
#event_time
def event_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Required. Timestamp when the message was sent or received.
#event_time=
def event_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Required. Timestamp when the message was sent or received.
Returns
- (::Google::Protobuf::Timestamp) — Required. Timestamp when the message was sent or received.
#role
def role() -> ::String
Returns
- (::String) — Required. Role within the conversation "user" or "model".
#role=
def role=(value) -> ::String
Parameter
- value (::String) — Required. Role within the conversation "user" or "model".
Returns
- (::String) — Required. Role within the conversation "user" or "model".