TuulClient class
The core client for the Tuul AI SDK.
Use this class to manage authentication via an apiKey and access various AI modules like Gen, History, and LiteGen.
Constructors
- TuulClient(String apiKey)
-
Creates a TuulClient with the required
apiKey.
Properties
- apiKey → String
-
The API key used to authenticate requests for all child modules.
final
- gen → Gen
-
Provides access to the main Generation module.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- history → History
-
Provides access to the conversation history management module.
no setter
- liteGen → LiteGen
-
Provides access to the Lightweight Generation module (LiteGen).
no setter
- liveFunctions → LiveFunctions
-
Provides access to the real-time tool calling and function execution module.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
agentUI(
) → Future< void> - Accesses the Agent UI components for building interactive AI agent interfaces.
-
genUi(
) → Future< void> - Accesses the Generation UI components for rendering AI responses in the UI.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persistence(
) → Future< void> - Initializes the local persistence layer for storing SDK data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited