Class Parameter
Defines a configurable parameter supported by a model.
Inherited Members
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
public class Parameter
Properties
DefaultValue
Declaration
[JsonProperty(PropertyName = "defaultValue")]
public string DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The default value used when this parameter is not supplied. |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A human-readable description of this parameter. |
Maximum
Declaration
[JsonProperty(PropertyName = "maximum")]
public double Maximum { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The maximum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. |
Minimum
Declaration
[JsonProperty(PropertyName = "minimum")]
public double Minimum { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The minimum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The name of this parameter. |
Remarks
Required
Type
Declaration
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The data type of the parameter (e.g., float, integer, string). |