prompts

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package prompts holds the prompt modules for the github-update-go-agent's two domain agents. build-fix planning gets a diagnosis prompt; the spec writer and chain emission live in Go (deterministic, no LLM).

Package prompts provides embedded prompt modules for the Claude-backed phases: planning (inspect + classify) and execution (update + repair). The ai_review phase is pure Go and has no prompt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFixDiagnosisPrompt added in v0.12.0

func BuildFixDiagnosisPrompt(repo, episodeSHA, logEvidence string) string

BuildFixDiagnosisPrompt builds the planning-phase diagnosis prompt for a build-fix task: given the repo, episode SHA, and failing-workflow/log evidence, the LLM classifies the failure into exactly one of the four fix verdicts and returns a marshaled FixPlanOutput JSON.

The verdict grammar is enforced deterministically by the Go step (parseFixPlan) — the prompt only ever asks the model to pick one value.

func ExecutionPrompt added in v0.2.0

func ExecutionPrompt() string

ExecutionPrompt returns the execution-phase prompt module. The execution step appends the workdir, target Go version, and ## Plan JSON as context sections.

func PlanningPrompt added in v0.2.0

func PlanningPrompt() string

PlanningPrompt returns the planning-phase prompt module. The planning step appends the workdir, target Go version, and task content as context sections.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL