Skip to content

build_manual_handover_prompt_package

Public callable

Build copy/paste prompt package for manual handover summary generation.

Parameters:

Name Type Description Default
sample_rows Any

Optional small sample context serialized compactly for prompt ferry usage.

None
business_context str

Static context embedded in prompt text.

''

Returns:

Type Description
dict

Manual package containing reusable prompt text, schema expectations, and notes. Output is advisory and requires human review.

Source code in src/fabricops_kit/ai.py
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
def build_manual_handover_prompt_package(sample_rows=None, business_context="", config: FrameworkConfig | None = None) -> dict:
    """Build copy/paste prompt package for manual handover summary generation.

    Parameters
    ----------
    sample_rows : Any, optional
        Optional small sample context serialized compactly for prompt ferry usage.
    business_context : str, optional
        Static context embedded in prompt text.

    Returns
    -------
    dict
        Manual package containing reusable prompt text, schema expectations, and
        notes. Output is advisory and requires human review.
    """
    prompt = build_handover_summary_prompt(business_context=business_context, config=config)
    compact = _compact_sample_rows(sample_rows)
    return {
        "mode": "manual_prompt_ferry",
        "target_use": "handover_summary",
        "prompt": prompt,
        "full_prompt_text": f"{prompt}\n\nSample rows:\n{compact}" if compact else prompt,
        "expected_output_schema": ["pipeline_summary", "important_transformations", "business_reason", "handover_notes", "risks_or_open_questions"],
        "notes": "Paste prompt into Copilot or another LLM, then review before storing handover summaries.",
        "sample_rows": compact,
    }