1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 09:19:54 +00:00

include exa cost

This commit is contained in:
Laura
2025-08-28 14:46:28 +02:00
parent b331920634
commit 98c6976dfa
4 changed files with 17 additions and 15 deletions

5
exa.go
View File

@@ -18,9 +18,14 @@ type ExaResult struct {
Summary string `json:"summary"`
}
type ExaCost struct {
Total float64 `json:"total"`
}
type ExaResults struct {
RequestID string `json:"requestId"`
Results []ExaResult `json:"results"`
Cost ExaCost `json:"costDollars"`
}
func (e *ExaResult) String() string {