Class FunctionTool (1.35.0)

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

A Function tool describes the functions to be invoked on the client side.

Attributes

Name Description
input_schema google.protobuf.struct_pb2.Struct
Optional. The JSON schema is encapsulated in a google.protobuf.Struct][google.protobuf.Struct] to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.
output_schema google.protobuf.struct_pb2.Struct
Optional. The JSON schema is encapsulated in a google.protobuf.Struct][google.protobuf.Struct] to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.