Skip to content

fallback_copilot_lineage_prompt

Public callable

Build a fallback Copilot prompt for manual lineage enrichment.

Parameters:

Name Type Description Default
lineage_steps list of dict of str to Any

Deterministic lineage steps produced by the scanner.

required

Returns:

Type Description
str

Prompt text instructing an AI helper to refine only reasoning fields.

Source code in src/fabricops_kit/lineage.py
113
114
115
116
117
118
119
120
121
122
123
124
125
126
def fallback_copilot_lineage_prompt(lineage_steps: list[dict[str, Any]]) -> str:
    """Build a fallback Copilot prompt for manual lineage enrichment.

    Parameters
    ----------
    lineage_steps : list of dict of str to Any
        Deterministic lineage steps produced by the scanner.

    Returns
    -------
    str
        Prompt text instructing an AI helper to refine only reasoning fields.
    """
    return "Review these deterministic lineage steps and improve reasons/notes only; do not change structure. steps=" + str(lineage_steps)