This commit is contained in:
Dmytro Kondakov
2025-04-14 11:41:11 +02:00
2 changed files with 3 additions and 6 deletions

View File

@ -25,11 +25,10 @@ listLocations
Lists the users already existing locations. Lists the users already existing locations.
createLocation createLocation
Use this to create a new location. Use this to create a new location, when you don't see a mtching one from listLocations call.
linkLocation linkLocation
Links an image to a location. Only call this when you know theres a very close match from listLocation. Use when an image contains a duplicate location the user already has from listLocations.
Otherwise create a new location.
finish finish
Call when there is nothing else to do. Call when there is nothing else to do.
@ -72,7 +71,7 @@ const locationTools = `
"type": "function", "type": "function",
"function": { "function": {
"name": "linkLocation", "name": "linkLocation",
"description": "Use to link an already existing location to the image you were sent", "description": "Use only when you are sure listLocation returned the location in the image. This is used to avoid duplicates.",
"parameters": { "parameters": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@ -145,8 +145,6 @@ func main() {
} }
} }
fmt.Println("DataTypes: ", dataTypes)
jsonImages, err := json.Marshal(dataTypes) jsonImages, err := json.Marshal(dataTypes)
if err != nil { if err != nil {
log.Println(err) log.Println(err)