Skip to main content

Module promptflow

Module promptflow 

Source
Expand description

Prompt construction for worker run phases.

Structs§

PromptPolicy

Enums§

RunPhase

Constants§

PHASE1_TASK_REFRESH_DISABLED_INSTRUCTION
PHASE1_TASK_REFRESH_REQUIRED_INSTRUCTION

Functions§

build_merge_conflict_prompt
Build the prompt for merge conflict resolution.
build_phase1_prompt
Build the prompt for Phase 1 (Planning).
build_phase2_handoff_prompt
Build the prompt for Phase 2 handoff (3-phase workflow).
build_phase2_prompt
Build the prompt for Phase 2 (Implementation).
build_phase3_prompt
Build the prompt for Phase 3 (Code Review).
build_single_phase_prompt
Build the prompt for Single Phase (Plan + Implement).
phase2_final_response_cache_path
Path to the cached Phase 2 final response for a given task ID.
plan_cache_path
Path to the cached plan for a given task ID.
read_phase2_final_response_cache
Read the Phase 2 final response from the cache. Fails if missing or empty.
read_plan_cache
Read a plan from the cache. Fails if missing or empty.
write_phase2_final_response_cache
Write the Phase 2 final response to the cache.
write_plan_cache
Write a plan to the cache.