docs(readme,examples): add system prompt to simple example (#60)

Christian Rocha created

Change summary

README.md               | 6 +++++-
examples/simple/main.go | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)

Detailed changes

README.md 🔗

@@ -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."

examples/simple/main.go 🔗

@@ -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."