Enha: agentclient log

This commit is contained in:
Grail Finder
2025-12-19 12:46:22 +03:00
parent 67ea1aef0d
commit a875abcf19
2 changed files with 8 additions and 6 deletions

View File

@@ -26,6 +26,10 @@ func NewAgentClient(cfg *config.Config, log slog.Logger, gt func() string) *Agen
}
}
func (ag *AgentClient) Log() *slog.Logger {
return &ag.log
}
func (ag *AgentClient) FormMsg(sysprompt, msg string) (io.Reader, error) {
agentConvo := []models.RoleMsg{
{Role: "system", Content: sysprompt},