Enha: models toolcall into answer

This commit is contained in:
Grail Finder
2025-09-05 12:30:30 +03:00
parent 57b808cb31
commit 8b88d2d824
2 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,12 @@ type Answer struct {
Answer string `json:"answer"`
Model string `json:"model"`
// resp time?
ToolCall ToolCall `json:"tool_call"`
}
type ToolCall struct {
Name string `json:"name"`
Args map[string]ToolArgProps `json:"args"`
}
// type OpenRouterResp struct {

View File

@@ -7,7 +7,7 @@ import (
func sendEmail(args map[string]string) []byte {
logger.Info("send-email is used", "args", args)
return nil
return []byte("email was sent")
}
func getCurrentTimestamp(args map[string]string) []byte {