Search Results for

    Show / Hide Table of Contents

    Class Seed

    Random seed for deterministic sampling (when supported):

    • Purpose — Reproduce the same output across runs with identical inputs.
    • Scope — Holds only if provider, model/deployment, version, and all params are unchanged.
    • null — Lets the service choose a random seed (non-deterministic).
    • Range — 0–9,223,372,036,854,775,807 (signed 64-bit long).
    • Support — Some models/services ignore seeds; if unsupported, this has no effect.
    Inheritance
    object
    SerializableNullable<long>
    NullableRangedLong<Seed>
    Seed
    Implements
    INullable
    IEquatable<Seed>
    IComparable<Seed>
    Inherited Members
    NullableRangedLong<Seed>.CompareTo(Seed)
    NullableRangedLong<Seed>.Equals(Seed)
    NullableRangedLong<Seed>.Equals(object)
    NullableRangedLong<Seed>.GetHashCode()
    SerializableNullable<long>.hasValue
    SerializableNullable<long>.value
    SerializableNullable<long>.HasValue
    SerializableNullable<long>.Value
    SerializableNullable<long>.Clear()
    SerializableNullable<long>.ToString()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [Serializable]
    [JsonConverter(typeof(NullableRangedLongConverter<Seed>))]
    public class Seed : NullableRangedLong<Seed>, INullable, IEquatable<Seed>, IComparable<Seed>

    Constructors

    | Edit this page View Source

    Seed()

    Declaration
    public Seed()
    | Edit this page View Source

    Seed(int)

    Declaration
    public Seed(int value)
    Parameters
    Type Name Description
    int value
    | Edit this page View Source

    Seed(long)

    Declaration
    public Seed(long value)
    Parameters
    Type Name Description
    long value

    Properties

    | Edit this page View Source

    Default

    Declaration
    public override long Default { get; }
    Property Value
    Type Description
    long
    Overrides
    NullableRangedLong<Seed>.Default
    | Edit this page View Source

    Max

    Declaration
    public override long Max { get; }
    Property Value
    Type Description
    long
    Overrides
    NullableRangedLong<Seed>.Max
    | Edit this page View Source

    Min

    Declaration
    public override long Min { get; }
    Property Value
    Type Description
    long
    Overrides
    NullableRangedLong<Seed>.Min

    Operators

    | Edit this page View Source

    implicit operator int?(Seed)

    Declaration
    public static implicit operator int?(Seed p)
    Parameters
    Type Name Description
    Seed p
    Returns
    Type Description
    int?
    | Edit this page View Source

    implicit operator long?(Seed)

    Declaration
    public static implicit operator long?(Seed p)
    Parameters
    Type Name Description
    Seed p
    Returns
    Type Description
    long?
    | Edit this page View Source

    implicit operator Seed(int)

    Declaration
    public static implicit operator Seed(int v)
    Parameters
    Type Name Description
    int v
    Returns
    Type Description
    Seed
    | Edit this page View Source

    implicit operator Seed(long)

    Declaration
    public static implicit operator Seed(long v)
    Parameters
    Type Name Description
    long v
    Returns
    Type Description
    Seed

    Implements

    INullable
    IEquatable<T>
    IComparable<T>

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.HasValue(INullable)
    SerializableNullableExtensions.GetValueOrDefault<T>(SerializableNullable<T>, T)
    SerializableNullableExtensions.GetValueOrNull<T>(SerializableNullable<T>)
    SerializableNullableExtensions.HasValue<T>(SerializableNullable<T>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation