Class ToolCallResult (2.43.0)

ToolCallResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The result of calling a tool's action.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
tool str
Optional. The tool associated with this call. Format: projects/. This field is a member of oneof_ source.
action str
Optional. The name of the tool's action associated with this call.
error google.cloud.dialogflow_v2beta1.types.ToolCallResult.Error
The tool call's error. This field is a member of oneof_ result.
raw_content bytes
Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded). This field is a member of oneof_ result.
content str
Only populated if the response content is utf-8 encoded. This field is a member of oneof_ result.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Create time of the tool call result.
answer_record str
Optional. The answer record associated with this tool call result.

Classes

Error

Error(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An error produced by the tool call.