conversationForTest function

Conversation conversationForTest(
  1. ConversationHandle handle, {
  2. ConversationConfig? config,
  3. bool engineClosed()?,
})

A conversation over handle, for tests that drive it with a fake.

Implementation

Conversation conversationForTest(
  ConversationHandle handle, {
  ConversationConfig? config,
  bool Function()? engineClosed,
}) => Conversation._(
  handle,
  config: config ?? ConversationConfig(),
  thinkingTokenBudgetCapsNothing: () {},
  engineClosed: engineClosed ?? () => false,
);