AppleIntelligenceSession class

Properties

hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String
no setter

Methods

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

Operators

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

Static Methods

create(String instructions, {Map<Tool, ToolCallHandler>? toolHandlers}) → Future<AppleIntelligenceSession>