# 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. |
| `service_directory_config` | `https://docs-0cloud-0google-0com.linkedin.net.nz/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ServiceDirectoryConfig` Optional. Service Directory configuration for the tool. |