Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidAgents = map[string]bool{ "claude": true, "codex": true, "copilot": true, "gemini": true, }
ValidAgents lists the supported agent names.
Functions ¶
func BuildPrompt ¶
BuildPrompt queries sessions for the given date and assembles a prompt for the AI agent.
Types ¶
type GenerateFunc ¶
GenerateFunc is the signature for insight generation, allowing tests to substitute a stub.
type GenerateRequest ¶
type GenerateRequest struct {
Type string
DateFrom string
DateTo string
Project string
Prompt string
}
GenerateRequest describes what insight to generate.
type GenerateStreamFunc ¶ added in v0.10.0
type GenerateStreamFunc func( ctx context.Context, agent, prompt string, onLog LogFunc, ) (Result, error)
GenerateStreamFunc is like GenerateFunc but includes a log callback for streaming stdout/stderr events.
type LogEvent ¶ added in v0.10.0
LogEvent represents one log line emitted by an insight agent process.
type LogFunc ¶ added in v0.10.0
type LogFunc func(LogEvent)
LogFunc receives real-time log events from the agent subprocess.
Click to show internal directories.
Click to hide internal directories.