Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricsSnapshot ¶
type MetricsSnapshot struct {
ByTool []ToolMetric `json:"by_tool"`
ByServer []ServerMetric `json:"by_server"`
TotalSpend int64 `json:"total_spend"`
Top5ExpensiveTools []ToolMetric `json:"top_5_expensive_tools"`
}
func Snapshot ¶
func Snapshot() MetricsSnapshot
type PromptHashEntry ¶
type PromptHashResult ¶
type PromptHashResult struct {
Hashes []PromptHashEntry `json:"hashes"`
Total int64 `json:"total"`
}
func ServerToolPromptHashes ¶
func ServerToolPromptHashes(serverName, toolName string) PromptHashResult
type ServerDrillDown ¶
type ServerDrillDown struct {
ServerName string `json:"server_name"`
Tools []ToolDrillDown `json:"tools"`
TotalTokens int64 `json:"total_tokens"`
}
func ServerDrilldown ¶
func ServerDrilldown(serverName string, since time.Time) ServerDrillDown
type ServerMetric ¶
type ToolDrillDown ¶
type ToolMetric ¶
type ToolServerDrillDown ¶
type ToolServerDrillDown struct {
ToolName string `json:"tool_name"`
Servers []ToolDrillDown `json:"servers"`
TotalTokens int64 `json:"total_tokens"`
}
func ToolDrilldown ¶
func ToolDrilldown(toolName string, since time.Time) ToolServerDrillDown
Click to show internal directories.
Click to hide internal directories.