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.



6560
6561
6562
# File 'lib/google/apis/ces_v1/classes.rb', line 6560

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



6552
6553
6554
# File 'lib/google/apis/ces_v1/classes.rb', line 6552

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)


6557
6558
6559
# File 'lib/google/apis/ces_v1/classes.rb', line 6557

def enable_fake_mode
  @enable_fake_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6565
6566
6567
6568
# File 'lib/google/apis/ces_v1/classes.rb', line 6565

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