From 6afbd6c875fe4b269fa173f2ded40a33bab8797d Mon Sep 17 00:00:00 2001 From: PratikDhanave Date: Tue, 22 Sep 2026 08:42:45 +0530 Subject: [PATCH] Fix toolautocall.New godoc: it returns middleware, not a chat client New takes only a Config and returns an agent.Middleware; the doc comment was leftover .NET FunctionInvokingChatClient wording naming a client parameter and chat-client return that do not exist. --- agent/harness/toolautocall/autocall.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/harness/toolautocall/autocall.go b/agent/harness/toolautocall/autocall.go index a0611b0a..8f2022e4 100644 --- a/agent/harness/toolautocall/autocall.go +++ b/agent/harness/toolautocall/autocall.go @@ -127,7 +127,7 @@ type autocall struct { disableApprovalNotRequiredBypassing bool } -// New creates a new function-invoking chat client that wraps the provided client. +// New creates automatic tool-invocation middleware configured by cfg. func New(cfg Config) agent.Middleware { if cfg.NewID == nil { cfg.NewID = uuid.NewString