Documentation
¶
Overview ¶
Package prompts contains domain-specific LLM system prompts for go-code tools.
Index ¶
Constants ¶
const SystemPromptCallTrace = `` /* 526-byte string literal not displayed */
SystemPromptCallTrace is the system prompt for call chain narrative generation.
const SystemPromptClassifyGraphQuery = `` /* 2752-byte string literal not displayed */
SystemPromptClassifyGraphQuery classifies a natural-language query into a graph template. It contains two %s placeholders: (1) graph schema text, (2) template list.
const SystemPromptCodeCompare = `` /* 1955-byte string literal not displayed */
SystemPromptCodeCompare is the system prompt for code comparison queries.
const SystemPromptDeadCode = `` /* 516-byte string literal not displayed */
SystemPromptDeadCode is the system prompt for dead code analysis narrative generation.
const SystemPromptDeep = `` /* 337-byte string literal not displayed */
SystemPromptDeep is the system prompt for deep repository analysis.
const SystemPromptDepGraph = `` /* 337-byte string literal not displayed */
SystemPromptDepGraph is the system prompt for dependency graph analysis.
const SystemPromptGenerateCypher = `` /* 2252-byte string literal not displayed */
SystemPromptGenerateCypher generates a read-only Cypher query from natural language. It contains a single %s placeholder that must be filled with the graph schema text (see codegraph.GraphSchemaText).
const SystemPromptGraphNarrative = `` /* 311-byte string literal not displayed */
SystemPromptGraphNarrative formats raw graph query results into a narrative.
const SystemPromptImpact = `` /* 497-byte string literal not displayed */
SystemPromptImpact is the system prompt for blast radius narrative generation.
const SystemPromptIssuesAnalysis = `You are analyzing GitHub issues/PRs. Summarize the key findings for the query. Focus on what's most relevant. Be concise.`
SystemPromptIssuesAnalysis is the system prompt for GitHub issues/PRs analysis.
const SystemPromptOverview = `` /* 372-byte string literal not displayed */
SystemPromptOverview is the system prompt for high-level repository analysis.
const SystemPromptQuickSearch = `` /* 137-byte string literal not displayed */
SystemPromptQuickSearch is the system prompt for GitHub code search result summarization.
const SystemPromptRepoAnalysis = `` /* 514-byte string literal not displayed */
SystemPromptRepoAnalysis is the system prompt for repository analysis queries.
Variables ¶
This section is empty.
Functions ¶
func SystemPromptForDepth ¶
SystemPromptForDepth returns the appropriate system prompt for the given analysis depth. Depth values match analyze.Depth* constants but are repeated here to avoid a circular import between prompts → analyze.
func SystemPromptForIntent ¶
SystemPromptForIntent returns a system prompt tailored to the classified intent, with depth overrides taking priority.
Types ¶
type Intent ¶
type Intent string
Intent represents the classified intent of a user query.
const ( // IntentArchitecture targets high-level design and structure questions. IntentArchitecture Intent = "architecture" // IntentDebug targets bug-finding, error tracing, and fix-oriented questions. IntentDebug Intent = "debug" IntentNavigate Intent = "navigate" // IntentDependency targets import/dependency graph questions. IntentDependency Intent = "dependency" // IntentGeneral is the fallback for unclassified queries. IntentGeneral Intent = "general" )
func ClassifyIntent ¶
ClassifyIntent determines the intent of a user query by scoring keyword hits. Empty queries return IntentGeneral.