← Back to all posts

Structured Output

On this page

Purpose

Structured Output asks a connected language model to extract typed fields from a Message. It can return Data or a one-row-per-record DataFrame.

Structured Output schema table with Name, Description, Type, and As List

When to use it

  • Extract records from unstructured text.
  • Produce fields for Data Operations or a DataFrame workflow.
  • Return a schema-shaped result from a model-backed flow.

Required setup

Connect a compatible Language Model. The model must support structured output.

How to use it

Tool Mode

  1. Connect Language Model and define the fixed Output Schema.
  2. Enable Tool Mode and connect Toolset to Agent Core.
  3. Let the agent supply Input Message while the model, schema, and instructions remain fixed.
  4. Test an input with missing or ambiguous fields.

Normal mode

  1. Connect Language Model to Language Model.
  2. Connect the source text to Input Message.
  3. Define field names, descriptions, types, and As List behavior in Output Schema.
  4. Choose the active Structured Output port for Data or DataFrame.

Configuration

SettingWhat it controlsRecommended starting point
Language ModelThe model used for extraction.Connect a model that supports structured output.
Input MessageSource text for extraction.Keep the input focused on one extraction task.
Output SchemaField definitions for the result.Start with one or two simple fields.
Field TypeSelects str, int, float, bool, or dict.Use the narrowest useful type.
As ListMakes one field a list of its selected type.Use for values such as tags or phone numbers.
Format InstructionsAdds extraction instructions for the model.Change only when domain rules need to be explicit.
Schema NameNames the generated outer model.Leave blank unless clearer traces are needed.

Expected result

A single extracted record becomes Data. Multiple records are wrapped under results. DataFrame output uses one row per extracted record. As List changes one field's type, not the number of extracted records.

The Builder activates one of the two output ports at a time: structured_output for Data or dataframe_output for DataFrame. The component can fail when the model lacks structured-output support, the schema is empty, or the final result is empty or unexpected.

Reference details

The prompt asks for nulls and duplicate removal, but those are model instructions, not guaranteed post-processing.

Provider credentials and credits

Structured Output has no credential of its own. Its provider credentials and credit behavior come from the connected Language Model. Do not put keys in the message, schema, or format instructions.

← Back to all posts