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