createSession method

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

Creates a conversation and returns its id.

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

Implementation

Future<String> createSession({
  String? systemInstruction,
  List<OnDeviceAiTool>? tools,
  GenerationConfig? config,
}) {
  throw UnimplementedError('createSession() has not been implemented.');
}