Subdomain 1.1: Configure typed inputs and outputs, system and task prompts, variable injection, tools, blocks, conditionals, and loops.
1.A developer wants a Use LLM block to extract a shipment's carrier name, tracking number, and estimated delivery date as three related fields in a single, well-defined output object, rather than as three separate loose outputs. Which output type best fits this requirement?
- A.Struct
- B.Array
- C.Object list
- D.Boolean
Show answer & explanation
Correct answer: A — Struct
- A. A struct output lets the developer define a composite of named, typed fields such as carrier name, tracking number, and delivery date, bundling related values into a single structured result.
- B. An array is a homogeneous, ordered collection of values of one type and does not naturally represent three differently-typed named fields grouped together.
- C. An object list represents a collection of Ontology objects, which is not appropriate here since the shipment fields are not references to existing Ontology object instances.
- D. A boolean output can only represent a true or false value, which cannot capture carrier name, tracking number, and delivery date together.