Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServer
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServer
- 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
-
#allowed_tools ⇒ Array<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools>
The allowed tools.
-
#headers ⇒ Hash<String,String>
Optional: Fields for authentication headers, timeouts, etc., if needed.
-
#name ⇒ String
The name of the MCPServer.
-
#url ⇒ String
The full URL for the MCPServer endpoint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1McpServer
constructor
A new instance of GenaiVertexV1beta1McpServer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1McpServer
Returns a new instance of GenaiVertexV1beta1McpServer.
3498 3499 3500 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_tools ⇒ Array<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AllowedTools>
The allowed tools.
Corresponds to the JSON property allowed_tools
3481 3482 3483 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3481 def allowed_tools @allowed_tools end |
#headers ⇒ Hash<String,String>
Optional: Fields for authentication headers, timeouts, etc., if needed.
Corresponds to the JSON property headers
3486 3487 3488 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3486 def headers @headers end |
#name ⇒ String
The name of the MCPServer.
Corresponds to the JSON property name
3491 3492 3493 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3491 def name @name end |
#url ⇒ String
The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp"
Corresponds to the JSON property url
3496 3497 3498 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3496 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3503 3504 3505 3506 3507 3508 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3503 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 |