# Class PythonFunction (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 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. |