Class: Google::Apis::CesV1::MockConfig
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::MockConfig
- 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
Mock tool calls configuration for the session.
Instance Attribute Summary collapse
-
#mocked_tool_calls ⇒ Array<Google::Apis::CesV1::MockedToolCall>
Optional.
-
#unmatched_tool_call_behavior ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MockConfig
constructor
A new instance of MockConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MockConfig
Returns a new instance of MockConfig.
5388 5389 5390 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mocked_tool_calls ⇒ Array<Google::Apis::CesV1::MockedToolCall>
Optional. All tool calls to mock for the duration of the session.
Corresponds to the JSON property mockedToolCalls
5380 5381 5382 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5380 def mocked_tool_calls @mocked_tool_calls end |
#unmatched_tool_call_behavior ⇒ String
Required. Beavhior for tool calls that don't match any args patterns in
mocked_tool_calls.
Corresponds to the JSON property unmatchedToolCallBehavior
5386 5387 5388 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5386 def unmatched_tool_call_behavior @unmatched_tool_call_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5393 5394 5395 5396 |
# File 'lib/google/apis/ces_v1/classes.rb', line 5393 def update!(**args) @mocked_tool_calls = args[:mocked_tool_calls] if args.key?(:mocked_tool_calls) @unmatched_tool_call_behavior = args[:unmatched_tool_call_behavior] if args.key?(:unmatched_tool_call_behavior) end |