createSession method

  1. @override
Future<String> createSession({
  1. String? systemInstruction,
  2. List<OnDeviceAiTool>? tools,
  3. GenerationConfig? config,
})
override

Creates a conversation and returns its id.

tools is non-null only when the backend reported native tool calling.

Implementation

@override
Future<String> createSession({
  String? systemInstruction,
  List<OnDeviceAiTool>? tools,
  GenerationConfig? config,
}) => throw const OnDeviceAiUnavailableException(_message);