MethodChannelAppleFoundationFlutter class

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamChannel EventChannel
final

Methods

ask(String prompt, {String? sessionId}) Future<String?>
override
classifyText(String text, {String? sessionId, List<String>? categories}) Future<Map<String, double>>
override
closeSession(String sessionId) Future<void>
override
extractInformation(String text, {String? sessionId, List<String>? fields}) Future<Map<String, dynamic>>
override
generateAlternatives(String prompt, {String? sessionId, int count = 3}) Future<List<String>>
override
generateSuggestions(String context, {String? sessionId, int maxSuggestions = 5}) Future<List<String>>
override
generateText(String prompt, {String? sessionId, int? maxTokens, double? temperature, double? topP}) Future<String?>
override
generateTextStream(String prompt, {String? sessionId, int? maxTokens, double? temperature, double? topP}) Stream<String>
override
getAvailabilityStatus() Future<Map<String, dynamic>>
override
getListOfString(String prompt, {String? sessionId}) Future<List<String>>
override
getModelCapabilities() Future<Map<String, dynamic>>
getPlatformVersion() Future<String?>
override
getStructuredData(String prompt, {String? sessionId}) Future<Map<String, dynamic>>
override
getStructuredDataStream(String prompt, {String? sessionId}) Stream<String>
override
isAvailable() Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSession(String instructions) Future<String>
override
summarizeText(String text, {String? sessionId, SummarizationStyle style = SummarizationStyle.concise}) Future<String?>
override
toString() String
A string representation of this object.
inherited

Operators

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