OptionalenableWhen true, includes citation metadata locating each extracted value in the source.
OptionalenableWhen true, includes a per-field confidence score in the response.
OptionalinstructionsGlobal description of the task and domain, passed to the model to improve extraction quality.
OptionalmodeThe extraction mode. Defaults to standard extraction when unspecified.
OptionalschemaThe extraction schema defining the fields to extract, as a JSON string. Either an array of field names (e.g. ["company", "valuation"]) or an object mapping each field name to a type and an optional description. Supported types are string, integer, number, boolean, enum, object, and array; all fields are optional.
OptionalversionThe ai_extract function version to invoke (for example, 2.1).
Configuration for a task that runs the
ai_extractfunction.The fields to extract come from exactly one of two places: an existing AI Extract agent, named by
agent_id, or the inlineschemaandinstructions. Setagent_idor the inline fields, not both.