Class: Google::Apis::CesV1::McpToolDefinition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Container for a tool's core definition elements that are snapshot. Schemas in the snapshot are used as-is and cannot be overridden.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ McpToolDefinition

Returns a new instance of McpToolDefinition.



6184
6185
6186
# File 'lib/google/apis/ces_v1/classes.rb', line 6184

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

Instance Attribute Details

#descriptionString

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride. Corresponds to the JSON property description

Returns:

  • (String)


6172
6173
6174
# File 'lib/google/apis/ces_v1/classes.rb', line 6172

def description
  @description
end

#input_schemaGoogle::Apis::CesV1::Schema

Represents a select subset of an OpenAPI 3.0 schema object. Corresponds to the JSON property inputSchema



6177
6178
6179
# File 'lib/google/apis/ces_v1/classes.rb', line 6177

def input_schema
  @input_schema
end

#output_schemaGoogle::Apis::CesV1::Schema

Represents a select subset of an OpenAPI 3.0 schema object. Corresponds to the JSON property outputSchema



6182
6183
6184
# File 'lib/google/apis/ces_v1/classes.rb', line 6182

def output_schema
  @output_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6189
6190
6191
6192
6193
# File 'lib/google/apis/ces_v1/classes.rb', line 6189

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @input_schema = args[:input_schema] if args.key?(:input_schema)
  @output_schema = args[:output_schema] if args.key?(:output_schema)
end