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.
4652 4653 4654 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4652 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
4644 4645 4646 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4644 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
4650 4651 4652 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4650 def unmatched_tool_call_behavior @unmatched_tool_call_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4657 4658 4659 4660 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4657 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 |