docs(readme): small adjustment to example

Andrey Nering created

* 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.

Change summary

README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Detailed changes

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))