From 3a8a81429ded740b08c616dee872f90bf876cb3f Mon Sep 17 00:00:00 2001 From: vinod <31404750+vinodnextcoder@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:42:11 +0530 Subject: [PATCH 1/2] Fix refine usage golang example to handle only weather query --- examples/quickstart/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quickstart/main.go b/examples/quickstart/main.go index b9dbab05..6311aa87 100644 --- a/examples/quickstart/main.go +++ b/examples/quickstart/main.go @@ -43,7 +43,7 @@ func main() { Name: "weather_time_agent", Model: model, Description: "Agent to answer questions about the time and weather in a city.", - Instruction: "I can answer your questions about the time and weather in a city.", + Instruction: "Your SOLE purpose is to answer questions about the current time and weather in a specific city. You MUST refuse to answer any questions unrelated to time or weather.", Tools: []tool.Tool{ geminitool.GoogleSearch{}, }, From 9e56cbbda3b9ce374c12811895cf604d1ae5d172 Mon Sep 17 00:00:00 2001 From: vinod Date: Mon, 10 Nov 2025 23:42:11 +0530 Subject: [PATCH 2/2] Fix refine usage golang example to handle only weather query --- examples/quickstart/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quickstart/main.go b/examples/quickstart/main.go index b9dbab05..6311aa87 100644 --- a/examples/quickstart/main.go +++ b/examples/quickstart/main.go @@ -43,7 +43,7 @@ func main() { Name: "weather_time_agent", Model: model, Description: "Agent to answer questions about the time and weather in a city.", - Instruction: "I can answer your questions about the time and weather in a city.", + Instruction: "Your SOLE purpose is to answer questions about the current time and weather in a specific city. You MUST refuse to answer any questions unrelated to time or weather.", Tools: []tool.Tool{ geminitool.GoogleSearch{}, },