Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(ctx context.Context, qtx *schema.Queries, slackIntegration slack_integration.Integration, channelID string, report UsageReport) []slack.Block
Types ¶
type ChannelUsage ¶
type LLMUsageStats ¶ added in v0.0.9
type ModuleUsage ¶ added in v0.0.8
type UsageReport ¶
type UsageReport struct {
StartTs time.Time
EndTs time.Time
ChannelUsage map[string]ChannelUsage
ModuleUsage map[string]ModuleUsage
LLMUsage map[string]LLMUsageStats
}
func Get ¶
func Get(ctx context.Context, db *schema.Queries, llmClient llm.Client, slackIntegration slack_integration.Integration, channelID string) (UsageReport, error)
Click to show internal directories.
Click to hide internal directories.