From 6ddae3426d1ba1d105d6f4996c8ac343996665fc Mon Sep 17 00:00:00 2001 From: John Costa Date: Mon, 14 Apr 2025 10:59:08 +0100 Subject: [PATCH] rollback: not using link functions as they are very problematic --- backend/agents/contact_agent.go | 21 --------------------- backend/agents/event_agent.go | 20 -------------------- backend/agents/location_agent.go | 21 +-------------------- 3 files changed, 1 insertion(+), 61 deletions(-) diff --git a/backend/agents/contact_agent.go b/backend/agents/contact_agent.go index aa81665..7dd45ce 100644 --- a/backend/agents/contact_agent.go +++ b/backend/agents/contact_agent.go @@ -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 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. ` @@ -69,23 +65,6 @@ const contactTools = ` "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", diff --git a/backend/agents/event_agent.go b/backend/agents/event_agent.go index 20dadd3..b170cea 100644 --- a/backend/agents/event_agent.go +++ b/backend/agents/event_agent.go @@ -27,10 +27,6 @@ Lists the users already existing events. createEvent 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 Call when there is nothing else to do. ` @@ -72,22 +68,6 @@ const eventTools = ` "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", diff --git a/backend/agents/location_agent.go b/backend/agents/location_agent.go index 7cf5241..792f1e9 100644 --- a/backend/agents/location_agent.go +++ b/backend/agents/location_agent.go @@ -25,10 +25,7 @@ listLocations Lists the users already existing locations. createLocation -Use this to create a new location, when you don't see a mtching one from listLocations call. - -linkLocation -Use when an image contains a duplicate location the user already has from listLocations. +Use this to create a new location, when you don't see a matching one from listLocations call. finish Call when there is nothing else to do. @@ -66,22 +63,6 @@ const locationTools = ` "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",