@@ -44,7 +44,11 @@ cuteDogTool := fantasy.NewAgentTool(
)
// Equip your agent.
-agent := fantasy.NewAgent(model, fantasy.WithTools(cuteDogTool))
+agent := fantasy.NewAgent(
+ model,
+ fantasy.WithSystemPrompt("You are a moderately helpful, dog-centric assistant."),
+ fantasy.WithTools(cuteDogTool),
+)
// Put that agent to work!
const prompt = "Find all the cute dogs in Silver Lake, Los Angeles."
@@ -47,7 +47,10 @@ func main() {
cuteDogTool := fantasy.NewAgentTool("cute_dog_tool", "Provide up-to-date info on cute dogs.", fetchCuteDogInfo)
// Equip your agent.
- agent := fantasy.NewAgent(model, fantasy.WithTools(cuteDogTool))
+ agent := fantasy.NewAgent(model,
+ fantasy.WithSystemPrompt("You are a moderately helpful, dog-centric assistant."),
+ fantasy.WithTools(cuteDogTool),
+ )
// Put that agent to work!
const prompt = "Find all the cute dogs in Silver Lake, Los Angeles."