Class PythonFunction (0.3.0)

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

A Python function tool.

Attributes

Name Description
name str
Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.
python_code str
Optional. The Python code to execute for the tool.
description str
Output only. The description of the Python function, parsed from the python code's docstring.