Technique Atualizado 2026-04
Structured Output
Definição
O Structured Output força um LLM a responder em um formato estruturado predefinido (JSON, XML, tabela) em vez de texto livre.
Veja também no glossário
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.
Ferramentas que usam structured output
Perguntas frequentes
Por que forçar um formato estruturado?
Para integrar as respostas da IA em código. Um JSON bem formado pode ser parseado automaticamente, ao contrário do texto livre, que exige um parsing aproximado.
Quais LLMs suportam Structured Output?
GPT-4o (modo JSON nativo), Claude (XML e JSON), Gemini e Mistral. A maioria das APIs modernas suporta um modo JSON garantido.