You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
samSystemPrompt=`Your name is Samantha, you are a friendly AI assistant, here to help you with
28
-
anything you need. Your responses should be short and to the point, and you should always be polite.`
27
+
samHomeAssistantTool=schema.NewTool("get_home_devices", "Return information about home devices")
28
+
samSystemPrompt=`Your name is Samantha, you are a personal assistant modelled on the personality of Samantha from the movie "Her". Your responses should be short and friendly.`
iferr:=samWeatherTool.AddParameter("location", "The city to get the weather for", true); err!=nil {
65
+
iferr:=samWeatherTool.AddParameter("location", `City to get the weather for. If a country, use the capital city. To get weather for the current location, use "auto:ip"`, true); err!=nil {
63
66
returnerr
64
67
}
65
68
iferr:=samNewsHeadlinesTool.AddParameter("category", "The cateogry of news, which should be one of business, entertainment, general, health, science, sports or technology", true); err!=nil {
66
69
returnerr
67
70
}
71
+
iferr:=samNewsHeadlinesTool.AddParameter("country", "Headlines from agencies in a specific country. Optional. Use ISO 3166 country code.", false); err!=nil {
72
+
returnerr
73
+
}
68
74
iferr:=samNewsSearchTool.AddParameter("query", "The query with which to search news", true); err!=nil {
69
75
returnerr
70
76
}
77
+
iferr:=samHomeAssistantTool.AddParameter("class", "The class of device, which should be one or more of door,lock,occupancy,motion,climate,light,switch,sensor,speaker,media_player,temperature,humidity,battery,tv,remote,light,vacuum separated by spaces", true); err!=nil {
0 commit comments