From 38a05176f3872c6748ba1931e3d2f52b87f706b3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 23 Oct 2025 10:40:16 -0300 Subject: [PATCH] docs(readme): small adjustment to example * Add line breaks to make line shorter and avoid horizontal scrolling. * Add `Func` suffix to variable to make it clearer that it's a func. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c50762fb93b5d486cafb3b81d5a707f1b5956bc1..80f5c20ef049e51f3dcbedf88e5d2bb51099a46f 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,11 @@ if err != nil { } // Make your own tools. -cuteDogTool := fantasy.NewAgentTool("cute_dog_tool", "Provide up-to-date info on cute dogs.", fetchCuteDogInfo) +cuteDogTool := fantasy.NewAgentTool( + "cute_dog_tool", + "Provide up-to-date info on cute dogs.", + fetchCuteDogInfoFunc, +) // Equip your agent. agent := fantasy.NewAgent(model, fantasy.WithTools(cuteDogTool))