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.