conversationForTest function
Conversation
conversationForTest(
- ConversationHandle handle, {
- ConversationConfig? config,
- 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,
);