public sealed class PythonFunction : IMessage<PythonFunction>, IEquatable<PythonFunction>, IDeepCloneable<PythonFunction>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class PythonFunction.
A Python function tool.
Implements
IMessagePythonFunction, IEquatablePythonFunction, IDeepCloneablePythonFunction, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1Assembly
Google.Cloud.Ces.V1.dll
Constructors
PythonFunction()
public PythonFunction()PythonFunction(PythonFunction)
public PythonFunction(PythonFunction other)| Parameter | |
|---|---|
| Name | Description |
other |
PythonFunction |
Properties
Description
public string Description { get; set; }Output only. The description of the Python function, parsed from the python code's docstring.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Name
public string Name { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
string |
|
PythonCode
public string PythonCode { get; set; }Optional. The Python code to execute for the tool.
| Property Value | |
|---|---|
| Type | Description |
string |
|