Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SuggestionInput (v1.13.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SuggestionInput.

Represents the action to take for a tool call that requires confirmation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

def action() -> ::Google::Cloud::Dialogflow::V2::SuggestionInput::Action
Returns

#action=

def action=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestionInput::Action
Parameter
Returns

#answer_record

def answer_record() -> ::String
Returns
  • (::String) — Required. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> The answer record associated with the tool call.

#answer_record=

def answer_record=(value) -> ::String
Parameter
  • value (::String) — Required. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> The answer record associated with the tool call.
Returns
  • (::String) — Required. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> The answer record associated with the tool call.

#parameters

def parameters() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) — Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.

#parameters=

def parameters=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) — Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
Returns
  • (::Google::Protobuf::Struct) — Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.

#send_time

def send_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.

#send_time=

def send_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
Returns
  • (::Google::Protobuf::Timestamp) — Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.