Search Results for

    Show / Hide Table of Contents

    Interface IUserProfile

    Attach this interface to your user class to enable AIDevKit features. This interface is used to provide user-specific context and settings.

    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IUserProfile

    Properties

    | Edit this page View Source

    AdditionalInfo

    Additional information about the user that can help AI models provide better responses. This can include interests, values, or preferences.

    Declaration
    Dictionary<string, string> AdditionalInfo { get; }
    Property Value
    Type Description
    Dictionary<string, string>
    | Edit this page View Source

    Id

    Unique identifier for the user. This ID is used to associate the user with their data and settings.

    Declaration
    string Id { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Location

    Used for WebSearch AI features. This property provides the user's location for search context.

    Declaration
    Location Location { get; }
    Property Value
    Type Description
    Location
    | Edit this page View Source

    Name

    AI models will refer to the user by this name. This property is used to personalize interactions with the user.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Occupation

    AI models will refer to the user by this occupation. This property is used to provide context about the user's background.

    Declaration
    string Occupation { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetApiKey(Api)

    If your game/app allows users to use their own API keys, implement this property to provide a dictionary of API keys.

    Declaration
    string GetApiKey(Api api)
    Parameters
    Type Name Description
    Api api
    Returns
    Type Description
    string
    | Edit this page View Source

    GetServiceTier(Api)

    If your game/app allows users to select different service tiers, implement this method to return the selected tier for the given API.

    Declaration
    ServiceTier? GetServiceTier(Api api)
    Parameters
    Type Name Description
    Api api
    Returns
    Type Description
    ServiceTier?

    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)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation