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?") { 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..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."))