AISearch class

AI Search

Constructors

AISearch(String token, {Client? client})
Create an instance of AISearch

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The token to use for authentication
final

Methods

ask(String query) Future<ClearResponse<AIAnswer?, ClearErrorResponse?>>
Ask a question to an AI across spaces that is accessible by the currently authenticated target.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPreviousQueries() → void
Reset the previous queries
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

previousQueries List<String>
The previous queries that have been made to the AI This is to save queries to reuse them in the future
getter/setter pair