AIDocSearchProvider class
AIDocSearchProvider is a class that provides the search functionality and contains the search results. It will contact the AI Doc Search service and return the results.
- Inheritance
-
- Object
- MessageProvider<
AiDocSearchResponse> - AIDocSearchProvider
Constructors
- AIDocSearchProvider.new({String apiEndpoint = "https://api.aidocs.chat", required String apiKey, required String projectId})
Properties
- apiEndpoint → String
-
The API endpoint to contact the AI Doc Search service.
The offical endpoint is
https://api.aidocs.chat
final - apiKey → String
-
The API key to contact the AI Doc Search service.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- projectId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
Map< String, dynamic> config) → Future<Map< String, dynamic> > -
This method will be used to initialize the message provider
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
{required String message, dynamic args}) → Future< AiDocSearchResponse> -
This method will be used to send the message to the external service
and return the message to the application.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited