Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator distills past sessions into a markdown report: which workflows repeat often enough to deserve a skill, and which tool calls keep failing the same way. Counts and error strings are computed here; the model only interprets them, because a model asked to both count and interpret will confidently invent the counts.
func New ¶
func New(client sdk.Client, cfg *config.Config, store storage.ConversationStorage, models convdomain.ModelService) *Generator
func (*Generator) Available ¶
Available reports whether the generator has everything it needs. The metadata registry builds shortcuts with nil dependencies and storage can be disabled.
func (*Generator) Generate ¶
func (g *Generator) Generate(ctx context.Context, since time.Time, progress io.Writer) (markdown, path string, err error)
Generate reads the sessions, asks the model to interpret them, and writes the report to ~/.infer/insights. Each step is announced on progress as it starts, because the model call alone can run for minutes.