Interface IUserProfile
Attach this interface to your user class to enable AIDevKit features.
This interface is used to provide user-specific context and settings.
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
|
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
Property Value
|
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
|
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
Property Value
|
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
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
|
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
Extension Methods