Documentation
¶
Overview ¶
Package insights derives structured observations from sessions and workspaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderText ¶
Types ¶
type PromptSummary ¶
type Report ¶
type Report struct {
Kind string `json:"kind"`
Sessions int `json:"sessions"`
Messages int `json:"messages"`
UserMessages int `json:"user_messages"`
AssistantMessages int `json:"assistant_messages"`
Prompts int `json:"prompts"`
ToolUses int `json:"tool_uses"`
Usage TokenTotals `json:"usage"`
TopTools []ToolCount `json:"top_tools,omitempty"`
RecentSessions []SessionSummary `json:"recent_sessions,omitempty"`
RecentPrompts []PromptSummary `json:"recent_prompts,omitempty"`
}
type SessionSummary ¶
type TokenTotals ¶
type TokenTotals struct {
Input int `json:"input"`
Output int `json:"output"`
CacheCreation int `json:"cache_creation"`
CacheRead int `json:"cache_read"`
}
func (*TokenTotals) Add ¶
func (t *TokenTotals) Add(usage anthropic.Usage)
func (*TokenTotals) Merge ¶
func (t *TokenTotals) Merge(other TokenTotals)
Click to show internal directories.
Click to hide internal directories.