createConversationWithDefault function

Future<Conversation> createConversationWithDefault(
  1. Engine engine,
  2. ConversationConfig config,
  3. SamplerConfig? defaultSamplerConfig
)

Engine.createConversation with the model's sampler default when the config sets none, as natively: values the Flutter adapter resolves, which never count as the caller's choice for LiteRT-LM#2080's warning.

Implementation

Future<Conversation> createConversationWithDefault(
  Engine engine,
  ConversationConfig config,
  SamplerConfig? defaultSamplerConfig,
) => engine._createConversation(
  config,
  defaultSamplerConfig: defaultSamplerConfig,
);