0.3.1 (latest) 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::PythonFunction.

A Python function tool.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

- (::String) --- Output only. The description of the Python function, parsed from the python code's docstring.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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

    def python_code() -> ::String

**Returns**

- (::String) --- Optional. The Python code to execute for the tool.

### #python_code=

    def python_code=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The Python code to execute for the tool.
**Returns**

- (::String) --- Optional. The Python code to execute for the tool.

### #service_directory_config

    def service_directory_config() -> ::Google::Cloud::Ces::V1beta::ServiceDirectoryConfig

**Returns**

- ([::Google::Cloud::Ces::V1beta::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-ces-v1beta/latest/Google-Cloud-Ces-V1beta-ServiceDirectoryConfig)) --- Optional. Service Directory configuration for the tool.

### #service_directory_config=

    def service_directory_config=(value) -> ::Google::Cloud::Ces::V1beta::ServiceDirectoryConfig

**Parameter**

- **value** ([::Google::Cloud::Ces::V1beta::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-ces-v1beta/latest/Google-Cloud-Ces-V1beta-ServiceDirectoryConfig)) --- Optional. Service Directory configuration for the tool.
**Returns**

- ([::Google::Cloud::Ces::V1beta::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-ces-v1beta/latest/Google-Cloud-Ces-V1beta-ServiceDirectoryConfig)) --- Optional. Service Directory configuration for the tool.