Struct ServiceTier
The service tier to use for the request. "auto" lets the system choose the appropriate tier based on context. Different providers may have different tier names and meanings. See provider documentation for details.
[Serializable]
public readonly struct ServiceTier : IStringWrapper, IEquatable<ServiceTier>
- Implements
-
IStringWrapperIEquatable<ServiceTier>
Constructors
ServiceTier(string)
public ServiceTier(string value)
Parameters
valuestring
Fields
Anthropic_StandardOnly
public const string Anthropic_StandardOnly = "standard_only"
Field Value
- string
Auto
public const string Auto = "auto"
Field Value
- string
GroqCloud_Flex
public const string GroqCloud_Flex = "flex"
Field Value
- string
GroqCloud_OnDemand
public const string GroqCloud_OnDemand = "on_demand"
Field Value
- string
GroqCloud_Performance
public const string GroqCloud_Performance = "performance"
Field Value
- string
OpenAI_Default
public const string OpenAI_Default = "default"
Field Value
- string
OpenAI_Flex
public const string OpenAI_Flex = "flex"
Field Value
- string
Properties
Value
public string Value { get; }
Property Value
- string
Methods
Equals(ServiceTier)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ServiceTier other)
Parameters
otherServiceTierAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetInspectorName()
public string GetInspectorName()
Returns
- string
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator string(ServiceTier)
public static implicit operator string(ServiceTier size)
Parameters
sizeServiceTier
Returns
- string
implicit operator ServiceTier(string)
public static implicit operator ServiceTier(string value)
Parameters
valuestring