Documentation
¶
Index ¶
- Constants
- func BuildACPCommand(provider, model string) (resolvedProvider string, command []string, err error)
- func BuildDiscoveryRunSystemPrompt(workDir, resultDir string) string
- func BuildWorkspaceSystemPrompt(workDir string) string
- func RunAgent(ctx context.Context, config Config, workDir, question string) (string, error)
- func RunAgentWithPrompt(ctx context.Context, config Config, workDir, question, systemPrompt string) (string, error)
- type Config
Constants ¶
View Source
const ( ProviderClaude = "claude" ProviderCodex = "codex" )
Variables ¶
This section is empty.
Functions ¶
func BuildACPCommand ¶
BuildACPCommand resolves provider and builds the ACP launcher command.
func BuildDiscoveryRunSystemPrompt ¶
BuildDiscoveryRunSystemPrompt builds a system prompt for run-scoped discovery results.
func BuildWorkspaceSystemPrompt ¶
BuildWorkspaceSystemPrompt builds a system prompt for the structured workspace layout.
Types ¶
type Config ¶
type Config struct {
Provider string
Model string
// TapePath overrides the default workspace tape file.
TapePath string
// OnProgress, when set, is told "reading" while the agent uses tools and
// "writing" once it starts producing the answer.
OnProgress func(phase string)
// RawQuestion sends the question as the whole user message instead of
// wrapping it in the default "Analyze the log files…" prompt.
RawQuestion bool
}
Config holds configuration for the analyzer.
Click to show internal directories.
Click to hide internal directories.