import type { Conversation } from "../state.js"; export const TOOL_RESULT_ARCHIVE_PARAM = "__toolResultArchive"; export const withToolResultArchiveParam = ( parameters: Record | undefined, conversation: Conversation, ): Record => ({ ...(parameters ?? {}), [TOOL_RESULT_ARCHIVE_PARAM]: conversation._toolResultArchive ?? {}, }); export const MAX_CONTINUATION_COUNT = 20;