rollback: not using link functions as they are very problematic
This commit is contained in:
@ -22,10 +22,6 @@ You should use listContacts to make sure that you don't create duplicate contact
|
|||||||
|
|
||||||
Call createContact when you see there is a new contact on this image.
|
Call createContact when you see there is a new contact on this image.
|
||||||
|
|
||||||
Call linkContact when you think this image contains an existing contact.
|
|
||||||
Links an image to a contact. Only call this when you know theres a very close match from listContacts.
|
|
||||||
Otherwise create a new contact.
|
|
||||||
|
|
||||||
Call finish if you dont think theres anything else to do.
|
Call finish if you dont think theres anything else to do.
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -69,23 +65,6 @@ const contactTools = `
|
|||||||
"required": ["name"]
|
"required": ["name"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "function",
|
|
||||||
"function": {
|
|
||||||
"name": "linkContact",
|
|
||||||
"description": "Links an existing contact with this image",
|
|
||||||
"parameters": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"contactId": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "The UUID of the existing contact"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["contactId"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
|
@ -27,10 +27,6 @@ Lists the users already existing events.
|
|||||||
createEvent
|
createEvent
|
||||||
Use this to create a new events.
|
Use this to create a new events.
|
||||||
|
|
||||||
linkEvent
|
|
||||||
Links an image to an event. Only call this when you know theres a very close match from listEvents.
|
|
||||||
Otherwise create a new event.
|
|
||||||
|
|
||||||
finish
|
finish
|
||||||
Call when there is nothing else to do.
|
Call when there is nothing else to do.
|
||||||
`
|
`
|
||||||
@ -72,22 +68,6 @@ const eventTools = `
|
|||||||
"required": ["name"]
|
"required": ["name"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "function",
|
|
||||||
"function": {
|
|
||||||
"name": "linkEvent",
|
|
||||||
"description": "Use to link an already existing events to the image you were sent",
|
|
||||||
"parameters": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"eventId": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["eventsId"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
|
@ -25,10 +25,7 @@ listLocations
|
|||||||
Lists the users already existing locations.
|
Lists the users already existing locations.
|
||||||
|
|
||||||
createLocation
|
createLocation
|
||||||
Use this to create a new location, when you don't see a mtching one from listLocations call.
|
Use this to create a new location, when you don't see a matching one from listLocations call.
|
||||||
|
|
||||||
linkLocation
|
|
||||||
Use when an image contains a duplicate location the user already has from listLocations.
|
|
||||||
|
|
||||||
finish
|
finish
|
||||||
Call when there is nothing else to do.
|
Call when there is nothing else to do.
|
||||||
@ -66,22 +63,6 @@ const locationTools = `
|
|||||||
"required": ["name"]
|
"required": ["name"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "function",
|
|
||||||
"function": {
|
|
||||||
"name": "linkLocation",
|
|
||||||
"description": "Use only when you are sure listLocation returned the location in the image. This is used to avoid duplicates.",
|
|
||||||
"parameters": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"locationId": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["locationId"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
|
Reference in New Issue
Block a user