Uppsats
LLM-Defined BlackBoxFunction in JavaScript/TypeScript : A Prompt-Driven Framework for Automated Validation and Iterative Improvement
Kandidat-uppsats
Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
Publicerad: 2025
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
This thesis explores the reliability of code generated by large language models (LLMs) in dynamically typed programming environments, with a focus on JavaScript and TypeScript. While LLMs are increasingly used to automate coding tasks, their outputs often lack robustness and fail to handle edge cases, especially in one-shot generation scenarios. To address this problem, we propose and implement a framework called BlackBoxFunction, which integrates prompt-driven code generation with automated validation and iterative self-healing. The framework constructs functions via GPT-4.1, validates them using schema-based tests, and automatically regenerates invalid outputs until they pass or reach a retry limit. A controlled experiment was conducted across 20 diverse programming tasks grouped into algorithms, data transformations, and text processing. The results show that self-healing significantly improves functional correctness, raising accuracy from an average of 63% to nearly 100% across all categories, while also reducing the need for manual intervention. These findings highlight the potential of lightweight feedback loops to improve LLM reliability in real-world development workflows.
Information
- Författare
- Issa, Bareal, Alit, Majid
- Lärosäte / institution
- Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
- Publiceringsdatum
- 2025
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Kandidat-uppsats, Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
Lindberg, Leia, Hugosson, Ester
Publicerad: 2026
Kandidat-uppsats, Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
Kozak, Ivanna
Publicerad: 2026
Kandidat-uppsats, KTH/Hälsoinformatik och logistik
Youssef, Alan, Nabizada, Ali
Publicerad: 2025
Kandidat-uppsats, Högskolan i Borås/Akademin för bibliotek, information, pedagogik och IT
Hazza, Kothar, Diban, Shahed, Al-Umari, Sumaija
Publicerad: 2025
Kandidat-uppsats, Uppsala universitet/Institutionen för informatik och media
Appelberg, Benjamin
Publicerad: 2025
Kandidat-uppsats, Stockholms universitet/Institutionen för data- och systemvetenskap
Karlin, Katarina, Amin, Diana
Publicerad: 2025