liveGenerativeModel method

LiveGenerativeModel liveGenerativeModel({
  1. required String model,
  2. LiveGenerationConfig? liveGenerationConfig,
  3. List<Tool>? tools,
  4. Content? systemInstruction,
})

Create a LiveGenerativeModel for real-time interaction.

The optional liveGenerationConfig can be used to control and guide the generation. See LiveGenerationConfig for details.

Implementation

LiveGenerativeModel liveGenerativeModel({
  required String model,
  LiveGenerationConfig? liveGenerationConfig,
  List<Tool>? tools,
  Content? systemInstruction,
}) {
  return createLiveGenerativeModel(
    app: app,
    location: location,
    model: model,
    useVertexBackend: _useVertexBackend,
    liveGenerationConfig: liveGenerationConfig,
    tools: tools,
    systemInstruction: systemInstruction,
    appCheck: appCheck,
    auth: auth,
    useLimitedUseAppCheckTokens: useLimitedUseAppCheckTokens,
  );
}