@plust/datasleuth - v0.2.0
    Preparing search index...

    Interface TransformOptions

    Options for the transform step

    interface TransformOptions {
        transformFn?: (state: ResearchState) => Record<string, any>;
        allowMissingWithDefaults?: boolean;
        skipValidation?: boolean;
        useLLM?: boolean;
        llm?: LanguageModelV1;
        temperature?: number;
        systemPrompt?: string;
        retry?: { maxRetries?: number; baseDelay?: number };
        [key: string]: any;
    }

    Hierarchy

    • StepOptions
      • TransformOptions

    Indexable

    • [key: string]: any
    Index

    Properties

    transformFn?: (state: ResearchState) => Record<string, any>

    Custom transformation function

    allowMissingWithDefaults?: boolean

    Whether to allow missing fields with defaults

    skipValidation?: boolean

    Override output validation (use with caution)

    useLLM?: boolean

    Use LLM to intelligently format output according to schema

    llm?: LanguageModelV1

    Custom LLM to use for transformation (falls back to state.defaultLLM)

    temperature?: number

    Temperature for LLM generation (0.0 to 1.0)

    systemPrompt?: string

    Custom system prompt for the LLM

    retry?: { maxRetries?: number; baseDelay?: number }

    Retry configuration for LLM calls

    Type declaration

    • OptionalmaxRetries?: number

      Maximum number of retries

    • OptionalbaseDelay?: number

      Base delay between retries in ms