Member Junction
    Preparing search index...

    Type Alias FieldRuleValueSource

    FieldRuleValueSource:
        | { Kind: "static"; Value: unknown }
        | { Field: string; Kind: "field" }
        | { Expression: string; Kind: "formula" }
        | { Kind: "lookup"; Lookup: FieldRuleLookup }
        | { Kind: "prompt"; Prompt: FieldRulePrompt }
        | { EntityDocument?: FieldRuleEntityDocument; Kind: "entityDocument" }

    How a field rule produces its base value (before any transform pipeline runs):

    • static — a literal constant
    • field — copy another field's current value
    • formula — a JS value expression over the record (fields.X), e.g. fields.FirstName + ' ' + fields.LastName
    • lookup — resolve a value from another entity by matching a key (requires a LookupResolver)
    • prompt — run an AI prompt over the record and use its output (requires a PromptResolver). By default the WHOLE record is passed as the prompt's data; supply Data to send a narrower / shaped context (e.g. a rendered entity-document of the record). Powerful but one model call PER record — use the dry-run preview + bounded concurrency, and prefer it for enrichment/summarization fields.