Table of Contents

Interface IUserProfile

Namespace
Glitch9.AIDevKit

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

public interface IUserProfile

Properties

AdditionalInfo

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

Dictionary<string, string> AdditionalInfo { get; }

Property Value

Dictionary<string, string>

Id

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

string Id { get; }

Property Value

string

Location

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

Location Location { get; }

Property Value

Location

Name

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

string Name { get; }

Property Value

string

Occupation

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

string Occupation { get; }

Property Value

string

Methods

GetApiKey(Api)

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

string GetApiKey(Api api)

Parameters

api Api

Returns

string

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.

ServiceTier? GetServiceTier(Api api)

Parameters

api Api

Returns

ServiceTier?