Class AIAsset
public abstract class AIAsset : ScriptableObject, IData
- Inheritance
-
objectAIAsset
- Implements
-
IData
- Derived
- Extension Methods
Fields
api
protected SerializableString<Api> api
Field Value
- SerializableString<Api>
custom
protected bool custom
Field Value
- bool
deprecated
protected bool deprecated
Field Value
- bool
displayName
protected string displayName
Field Value
- string
id
protected string id
Field Value
- string
locked
protected bool locked
Field Value
- bool
Properties
Api
The API service this asset uses (e.g., OpenAI, Google). This information is used to route requests to the correct AIClient.
public Api Api { get; }
Property Value
Id
The unique identifier of the asset If it's a model: "gpt-3.5-turbo", "gemini-pro-vision" If it's a voice: "alloy"(OpenAI), "21m00Tcm4TlvDq8ikWAM"(ElevenLabs)
public string Id { get; }
Property Value
- string
IsCustom
Indicates whether the asset is user-customized or not. If it's a model, it means the model is a fine-tuned version of a base model. If it's a voice, it means the voice is a custom voice created by the user.
public bool IsCustom { get; }
Property Value
- bool
IsDeprecated
Indicates whether the asset is deprecated and should not be used in production. CRUDService will throw an exception if a deprecated asset is used.
public bool IsDeprecated { get; }
Property Value
- bool
Name
The name of the asset If it's a model: "gpt-3.5-turbo", "gemini-pro-vision" If it's a voice: "alloy"(OpenAI), "rachel"(ElevenLabs) This is a human-readable name for the model that can be displayed in the UI or logs.
public virtual string Name { get; }
Property Value
- string
Methods
Equals(AIAsset)
public bool Equals(AIAsset other)
Parameters
otherAIAsset
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(AIAsset, AIAsset)
public static bool operator ==(AIAsset a, AIAsset b)
Parameters
Returns
- bool
implicit operator string(AIAsset)
public static implicit operator string(AIAsset asset)
Parameters
assetAIAsset
Returns
- string
operator !=(AIAsset, AIAsset)
public static bool operator !=(AIAsset a, AIAsset b)
Parameters
Returns
- bool