create static method
Future<AppleIntelligenceSession>
create(
- String instructions, {
- Map<
Tool, ToolCallHandler> ? toolHandlers,
Implementation
static Future<AppleIntelligenceSession> create(
String instructions, {
Map<Tool, ToolCallHandler>? toolHandlers,
}) async {
final sessionId = await _foundation.openSession(
instructions,
toolHandlers: toolHandlers,
);
return AppleIntelligenceSession._(sessionId);
}