Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServer

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

A MCPServer is a server that can be called by the model to perform actions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1McpServer

Returns a new instance of GenaiVertexV1beta1McpServer.



3760
3761
3762
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3760

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

Instance Attribute Details

#allowed_toolsArray<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools>

The allowed tools. Corresponds to the JSON property allowed_tools



3743
3744
3745
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3743

def allowed_tools
  @allowed_tools
end

#headersHash<String,String>

Optional: Fields for authentication headers, timeouts, etc., if needed. Corresponds to the JSON property headers

Returns:

  • (Hash<String,String>)


3748
3749
3750
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3748

def headers
  @headers
end

#nameString

The name of the MCPServer. Corresponds to the JSON property name

Returns:

  • (String)


3753
3754
3755
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3753

def name
  @name
end

#urlString

The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" Corresponds to the JSON property url

Returns:

  • (String)


3758
3759
3760
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3758

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3765
3766
3767
3768
3769
3770
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3765

def update!(**args)
  @allowed_tools = args[:allowed_tools] if args.key?(:allowed_tools)
  @headers = args[:headers] if args.key?(:headers)
  @name = args[:name] if args.key?(:name)
  @url = args[:url] if args.key?(:url)
end