Technique Actualizado 2026-04
Structured Output
Definición
El Structured Output obliga a un LLM a responder en un formato estructurado predefinido (JSON, XML, tabla) en lugar de texto libre.
Ver también en el glosario
L
LLM (Large Language Model)
An LLM is an AI model trained on billions of texts, capable of understanding and generating human language.
A
AI API
An AI API allows developers to integrate artificial intelligence capabilities into their applications.
P
Prompt Engineering
Prompt engineering is the art of crafting precise instructions to get the best results from an AI model.
F
Function Calling
Function Calling enables an LLM to call external functions or APIs in a structured way to execute concrete actions.
Herramientas que usan structured output
Preguntas frecuentes
¿Por qué forzar un formato estructurado?
Para integrar las respuestas de la IA en código. Un JSON bien formado puede parsearse automáticamente, a diferencia del texto libre, que requiere un parsing aproximado.
¿Qué LLM admiten el Structured Output?
GPT-4o (modo JSON nativo), Claude (XML y JSON), Gemini y Mistral. La mayoría de las API modernas admiten un modo JSON garantizado.