prompt

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SystemPrompt = `` /* 1757-byte string literal not displayed */

SystemPrompt defines the Senior Go Engineer persona

Variables

This section is empty.

Functions

func BuildFollowUpPrompt

func BuildFollowUpPrompt(question string) string

BuildFollowUpPrompt constructs a prompt for follow-up questions

func BuildReviewPrompt

func BuildReviewPrompt(rawDiff string, fileContents map[string]string) string

BuildReviewPrompt constructs the full prompt for code review

func BuildReviewPromptWithPruning

func BuildReviewPromptWithPruning(rawDiff string, fileContents map[string]string, prunedFiles map[string]string) string

BuildReviewPromptWithPruning constructs the full prompt for code review with pruning support

func EstimateTokens

func EstimateTokens(text string) int

EstimateTokens provides a rough estimate of tokens in the prompt This is a simple heuristic: ~4 characters per token for English text

func MaxTokenWarning

func MaxTokenWarning(prompt string, maxTokens int) string

MaxTokenWarning returns a warning if the prompt is too large

Types

This section is empty.

Jump to

Keyboard shortcuts

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