Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Content
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Content
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
The content of the response.
Instance Attribute Summary collapse
-
#audio ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent
An audio content block.
-
#document ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent
A document content block.
-
#image ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent
An image content block.
-
#text ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1TextContent
A text content block.
-
#thought ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ThoughtContent
A thought content block.
-
#tool_call ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolCallContent
Tool call content.
-
#tool_result ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolResultContent
Tool result content.
-
#video ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1VideoContent
A video content block.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1Content
constructor
A new instance of GenaiVertexV1beta1Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1Content
Returns a new instance of GenaiVertexV1beta1Content.
1459 1460 1461 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent
An audio content block.
Corresponds to the JSON property audio
1422 1423 1424 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1422 def audio @audio end |
#document ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent
A document content block.
Corresponds to the JSON property document
1427 1428 1429 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1427 def document @document end |
#image ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent
An image content block.
Corresponds to the JSON property image
1432 1433 1434 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1432 def image @image end |
#text ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1TextContent
A text content block.
Corresponds to the JSON property text
1437 1438 1439 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1437 def text @text end |
#thought ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ThoughtContent
A thought content block.
Corresponds to the JSON property thought
1442 1443 1444 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1442 def thought @thought end |
#tool_call ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolCallContent
Tool call content.
Corresponds to the JSON property toolCall
1447 1448 1449 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1447 def tool_call @tool_call end |
#tool_result ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolResultContent
Tool result content.
Corresponds to the JSON property toolResult
1452 1453 1454 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1452 def tool_result @tool_result end |
#video ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1VideoContent
A video content block.
Corresponds to the JSON property video
1457 1458 1459 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1457 def video @video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1464 def update!(**args) @audio = args[:audio] if args.key?(:audio) @document = args[:document] if args.key?(:document) @image = args[:image] if args.key?(:image) @text = args[:text] if args.key?(:text) @thought = args[:thought] if args.key?(:thought) @tool_call = args[:tool_call] if args.key?(:tool_call) @tool_result = args[:tool_result] if args.key?(:tool_result) @video = args[:video] if args.key?(:video) end |