Class ModelConfigInfo
Information about a single model configuration option.
Inherited Members
Namespace: Unity.Ai.Assistant.Protocol.Model
Assembly: Unity.AI.Assistant.Runtime.dll
Syntax
[DataContract(Name = "ModelConfigInfo")]
public class ModelConfigInfo
Constructors
ModelConfigInfo()
Initializes a new instance of the ModelConfigInfo class.
Declaration
[JsonConstructor]
protected ModelConfigInfo()
ModelConfigInfo(string, ModelConfigType)
Initializes a new instance of the ModelConfigInfo class.
Declaration
public ModelConfigInfo(string name, ModelConfigType type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name to use in the model_settings field of chat requests. |
| ModelConfigType | type | Type of the model configuration. |
Properties
Id
Identifier for the model option.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name to use in the model_settings field of chat requests.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The name to use in the model_settings field of chat requests. |
Type
Gets or Sets Type
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
public ModelConfigType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelConfigType |
Methods
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |