Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServerToolCallContent

Inherits:
Object
  • Object
show all
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

MCPServer tool call content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1McpServerToolCallContent

Returns a new instance of GenaiVertexV1beta1McpServerToolCallContent.



4123
4124
4125
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4123

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argumentsGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1Struct

Struct represents a structured data value, consisting of fields which map to dynamically typed values. Corresponds to the JSON property arguments



4111
4112
4113
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4111

def arguments
  @arguments
end

#nameString

Required. The name of the tool which was called. Corresponds to the JSON property name

Returns:

  • (String)


4116
4117
4118
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4116

def name
  @name
end

#server_nameString

Required. The name of the used MCP server. Corresponds to the JSON property serverName

Returns:

  • (String)


4121
4122
4123
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4121

def server_name
  @server_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4128
4129
4130
4131
4132
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4128

def update!(**args)
  @arguments = args[:arguments] if args.key?(:arguments)
  @name = args[:name] if args.key?(:name)
  @server_name = args[:server_name] if args.key?(:server_name)
end