diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-12-19 12:46:22 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-12-19 12:46:22 +0300 |
| commit | a875abcf198dd2f85c518f8bf2c599db66d3e69f (patch) | |
| tree | ddf43281a7eb19aadf6366247e3059aa775b75ef /agent/request.go | |
| parent | 67ea1aef0dafb9dc6f82e009cc1ecc613f71e520 (diff) | |
Enha: agentclient log
Diffstat (limited to 'agent/request.go')
| -rw-r--r-- | agent/request.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/request.go b/agent/request.go index e10f03f..2d557ac 100644 --- a/agent/request.go +++ b/agent/request.go @@ -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}, |
