ResolvedExtractor
An Extractor with function-form instructions/schema resolved to concrete values.
Extends
Section titled “Extends”Omit<Extractor<T>,"instructions"|"schema">
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
|
Properties
Section titled “Properties”includePrevious
Section titled “includePrevious”readonly includePrevious: boolean;Include the previously extracted value in the prompt. Default true.
Inherited from
Section titled “Inherited from”Omit.includePreviousinstructions
Section titled “instructions”instructions: string;readonly name: string;Inherited from
Section titled “Inherited from”Omit.nameonExtracted?
Section titled “onExtracted?”readonly optional onExtracted?: (c) => void | T | Promise<void | T>;Interceptor: returning a value replaces it before persistence; throwing records a per-slug failure.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”void | T | Promise<void | T>
Inherited from
Section titled “Inherited from”Omit.onExtractedpersist
Section titled “persist”readonly persist: boolean;Persist to PersistentMemoryStore. false = emit + run onExtracted only. Default true.
Inherited from
Section titled “Inherited from”Omit.persistschema
Section titled “schema”schema: ZodType<T>;readonly scope: MemoryBlockScope;Inherited from
Section titled “Inherited from”Omit.scopereadonly slug: string;Derived from name via slugifyExtractorName.
Inherited from
Section titled “Inherited from”Omit.slug