create static method

Future<AppleIntelligenceSession> create(
  1. String instructions, {
  2. 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);
}