Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::ToolCallResult.
The result of calling a tool's action.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::String- (::String) — Optional. The name of the tool's action associated with this call.
#action=
def action=(value) -> ::String- value (::String) — Optional. The name of the tool's action associated with this call.
- (::String) — Optional. The name of the tool's action associated with this call.
#answer_record
def answer_record() -> ::String- (::String) — Optional. The answer record associated with this tool call result.
#answer_record=
def answer_record=(value) -> ::String- value (::String) — Optional. The answer record associated with this tool call result.
- (::String) — Optional. The answer record associated with this tool call result.
#content
def content() -> ::String-
(::String) — Only populated if the response content is utf-8 encoded.
Note: The following fields are mutually exclusive:
content,error,raw_content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#content=
def content=(value) -> ::String-
value (::String) — Only populated if the response content is utf-8 encoded.
Note: The following fields are mutually exclusive:
content,error,raw_content. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Only populated if the response content is utf-8 encoded.
Note: The following fields are mutually exclusive:
content,error,raw_content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Create time of the tool call result.
#error
def error() -> ::Google::Cloud::Dialogflow::V2::ToolCallResult::Error-
(::Google::Cloud::Dialogflow::V2::ToolCallResult::Error) — The tool call's error.
Note: The following fields are mutually exclusive:
error,raw_content,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#error=
def error=(value) -> ::Google::Cloud::Dialogflow::V2::ToolCallResult::Error-
value (::Google::Cloud::Dialogflow::V2::ToolCallResult::Error) — The tool call's error.
Note: The following fields are mutually exclusive:
error,raw_content,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::ToolCallResult::Error) — The tool call's error.
Note: The following fields are mutually exclusive:
error,raw_content,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#raw_content
def raw_content() -> ::String-
(::String) — Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
Note: The following fields are mutually exclusive:
raw_content,error,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#raw_content=
def raw_content=(value) -> ::String-
value (::String) — Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
Note: The following fields are mutually exclusive:
raw_content,error,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
Note: The following fields are mutually exclusive:
raw_content,error,content. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tool
def tool() -> ::String-
(::String) — Optional. The tool associated with
this call. Format:
projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>.
#tool=
def tool=(value) -> ::String-
value (::String) — Optional. The tool associated with
this call. Format:
projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>.
-
(::String) — Optional. The tool associated with
this call. Format:
projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>.