Interface IApiUser
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: .dll
Syntax
public interface IApiUser
Properties
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 |
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 |
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.
Declaration
string GetApiKey(Api api)
Parameters
Type | Name | Description |
---|---|---|
Api | api |
Returns
Type | Description |
---|---|
string |