Configuration for running artifact extraction. Provides context and options for the extraction process.

interface ArtifactExtractionConfig {
    content: string;
    extractRules: ArtifactExtractRule[];
    throwOnError?: boolean;
    timeout?: number;
    verbose?: boolean;
}

Properties

content: string

The artifact content to extract from. This is typically the Content field from ArtifactVersion.

extractRules: ArtifactExtractRule[]

Array of extract rules to apply. These should be the resolved rules after inheritance from parent types.

throwOnError?: boolean

Whether to throw errors on extraction failures or continue with null values. Default: false (continue on errors)

timeout?: number

Maximum execution time for each extractor function in milliseconds. Default: 5000ms (5 seconds)

verbose?: boolean

Whether to enable verbose logging during extraction. Default: false