LLM Agents for Generating Microservice-based Applications: how complex is your specification?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Yellin, Daniel M.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909870577418240
author Yellin, Daniel M.
author_facet Yellin, Daniel M.
contents In this paper we evaluate the capabilities of LLM Agents in generating code for real-world problems. Specifically, we explore code synthesis for microservice-based applications, a widely used architectural pattern for building applications. We define a standard template for specifying these applications, and we propose a metric for scoring the difficulty of a specification. The higher the score, the more difficult it is to generate code for the specification. Our experimental results show that agents using strong LLMs (like GPT-3o-mini) do fairly well on medium difficulty specifications but do poorly on those of higher difficulty levels. This is due to more intricate business logic, a greater use of external services, database integration and inclusion of non-functional capabilities such as authentication. We analyzed the errors in LLM-synthesized code and report on the key challenges LLM Agents face in generating code for these specifications. Finally, we show that using a fine-grained approach to code generation improves the correctness of the generated code.
format Preprint
id arxiv_https___arxiv_org_abs_2508_20119
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Agents for Generating Microservice-based Applications: how complex is your specification?
Yellin, Daniel M.
Software Engineering
Machine Learning
68T42
I.2.6; I.2.2; D.2.2
In this paper we evaluate the capabilities of LLM Agents in generating code for real-world problems. Specifically, we explore code synthesis for microservice-based applications, a widely used architectural pattern for building applications. We define a standard template for specifying these applications, and we propose a metric for scoring the difficulty of a specification. The higher the score, the more difficult it is to generate code for the specification. Our experimental results show that agents using strong LLMs (like GPT-3o-mini) do fairly well on medium difficulty specifications but do poorly on those of higher difficulty levels. This is due to more intricate business logic, a greater use of external services, database integration and inclusion of non-functional capabilities such as authentication. We analyzed the errors in LLM-synthesized code and report on the key challenges LLM Agents face in generating code for these specifications. Finally, we show that using a fine-grained approach to code generation improves the correctness of the generated code.
title LLM Agents for Generating Microservice-based Applications: how complex is your specification?
topic Software Engineering
Machine Learning
68T42
I.2.6; I.2.2; D.2.2
url https://arxiv.org/abs/2508.20119