Skip to main content
extract(data, target) returns a list of values of the target type.
For structured values, use a dataclass or Pydantic model:
instructions describes what to find and how to interpret it. It is required when the target is str; a type such as Contact already supplies a schema. Use cast for a single interpreted value. extract_async is the async counterpart. See the API reference for optional arguments.