Class: Google::Apis::CesV1::ToolFakeConfig

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

Configuration for tool behavior in fake mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ToolFakeConfig

Returns a new instance of ToolFakeConfig.



7100
7101
7102
# File 'lib/google/apis/ces_v1/classes.rb', line 7100

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

Instance Attribute Details

#code_blockGoogle::Apis::CesV1::CodeBlock

A code block to be executed instead of a real tool call. Corresponds to the JSON property codeBlock



7092
7093
7094
# File 'lib/google/apis/ces_v1/classes.rb', line 7092

def code_block
  @code_block
end

#enable_fake_modeBoolean Also known as: enable_fake_mode?

Optional. Whether the tool is using fake mode. Corresponds to the JSON property enableFakeMode

Returns:

  • (Boolean)


7097
7098
7099
# File 'lib/google/apis/ces_v1/classes.rb', line 7097

def enable_fake_mode
  @enable_fake_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7105
7106
7107
7108
# File 'lib/google/apis/ces_v1/classes.rb', line 7105

def update!(**args)
  @code_block = args[:code_block] if args.key?(:code_block)
  @enable_fake_mode = args[:enable_fake_mode] if args.key?(:enable_fake_mode)
end