Abstract
API flexibility is a key enabler of Service-based Architectures, yet achieving it comes with pitfalls. Metadata is a well-established mechanism for increasing system reusability due to the flexibility it provides. Still, service APIs require their clients to adhere to the metadata in the communication, which comes as a challenge. This work proposes an architecture model consisting of a communication interceptor that leverages Generative AI to infer missing metadata. It prompts a Large Language Model (LLM) with the payload as the inference object and the service capabilities’ descriptions as context, acting as a dynamic adapter. This model also addresses the arguably long response times of LLMs using structural hashing caches. Preliminary empirical validation shows the artifact correctly deduces business intent with zero latency overhead on subsequent requests.