From 2a28d41e358aed5dbe5dc79a5d2a3fc29fd9950c Mon Sep 17 00:00:00 2001 From: 2xd7 Date: Sun, 22 Feb 2026 16:44:20 +0400 Subject: [PATCH 1/3] fix(docs): correct Tools field assignment in README chat example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b1bb86a..798d504 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ toolList.Add(tool) c := chat.Chat{ Messages: chat.NewMessages(), - Tools: &toolList, + Tools: toolList, } for event := range c.SendUserStream(ctx, &client, "What's the weather in Berlin?") { From 93d285191b9cd8116cd31b84601ef208b79dbe3e Mon Sep 17 00:00:00 2001 From: 2xd7 Date: Sun, 22 Feb 2026 16:47:52 +0400 Subject: [PATCH 2/3] fix(examples): remove pointer references to tools in Chat struct --- examples/approval-flow.go | 2 +- examples/simple-chat.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/approval-flow.go b/examples/approval-flow.go index e02ef4c..4f2922d 100644 --- a/examples/approval-flow.go +++ b/examples/approval-flow.go @@ -78,7 +78,7 @@ func main() { c := chat.Chat{ Messages: chat.NewMessages(), - Tools: &toolList, + Tools: toolList, } // Prime the model with a concrete tool usage example before the real prompt diff --git a/examples/simple-chat.go b/examples/simple-chat.go index d48077e..9ff7308 100644 --- a/examples/simple-chat.go +++ b/examples/simple-chat.go @@ -39,7 +39,7 @@ func main() { t := tools.NewTools() c := chat.Chat{ Messages: chat.NewMessages(), - Tools: &t, + Tools: t, } fmt.Println(colorize(dim, "Type your message and press Enter. Ctrl+C or Ctrl+D to exit.")) From 279ac5967edb5c19191cacc99ead24cecf6be340 Mon Sep 17 00:00:00 2001 From: 2xd7 Date: Sun, 22 Feb 2026 16:48:28 +0400 Subject: [PATCH 3/3] refactor(examples): remove tools from simple-chat example --- examples/simple-chat.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/simple-chat.go b/examples/simple-chat.go index 9ff7308..288fd95 100644 --- a/examples/simple-chat.go +++ b/examples/simple-chat.go @@ -36,10 +36,8 @@ func main() { Model: os.Getenv("OPENROUTER_MODEL"), } - t := tools.NewTools() c := chat.Chat{ Messages: chat.NewMessages(), - Tools: t, } fmt.Println(colorize(dim, "Type your message and press Enter. Ctrl+C or Ctrl+D to exit."))