Pull structured data from unstructured content
extract
function finds and pulls out specific pieces of information. It transforms str → list[T]
, making it easy to collect:
extract
function is a convenient wrapper around Marvin’s task system - see Tasks for more details.
data
: The input data to extract from (any type)target
: The type of data to extract (defaults to str
)instructions
: Required when target is str
to specify what to extractagent
: Optional custom agent to usethread
: Optional thread for conversation contextcontext
: Optional additional context