Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Semantic Kernel does not expose the raw OpenAPI schema to the model. It converts it into function definitions, and during that transformation a lot of structural context (DTO shape, discriminators, type descriptors) is lost. Because of this, the model often fails to construct valid JSON payloads even for simple DTOs.
So the issue is not your OpenAPI spec — it’s the lossy abstraction layer SK introduces.
Your intuition is correct @Florin Bugan : LLMs perform better when they can reason over the actual schema, not a flattened function signature. If your API relies on polymorphism or type-descriptor patterns, SK’s OpenAPI integration will be fragile.
For now, either:
simplify the API contract to be LLM-friendly, or
move to an agent-style approach where the schema is provided as context and outputs are validated before execution.