createOwnConversation function

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

A conversation of engine with a native conversation of its own whatever the engine's backing: what flutter_edge_ai_litertlm's singleton createSession always had, also where the engine's other conversations share one (one live conversation runs on every backend).

defaultSamplerConfig is as createConversationWithDefault's.

Implementation

Future<Conversation> createOwnConversation(
  Engine engine, [
  ConversationConfig? config,
  SamplerConfig? defaultSamplerConfig,
]) => engine._createConversation(
  config,
  own: true,
  defaultSamplerConfig: defaultSamplerConfig,
);