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

View File

@@ -116,6 +116,8 @@ func HandleSearchWebTool(ctx context.Context, tool *ToolCall) error {
return nil
}
tool.Cost = results.Cost.Total
if len(results.Results) == 0 {
tool.Result = "error: no search results"
@@ -146,6 +148,8 @@ func HandleFetchContentsTool(ctx context.Context, tool *ToolCall) error {
return nil
}
tool.Cost = results.Cost.Total
if len(results.Results) == 0 {
tool.Result = "error: no search results"